111fccf17Sopenharmony_ci# Copyright (C) 2021 Huawei Device Co., Ltd.
211fccf17Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
311fccf17Sopenharmony_ci# you may not use this file except in compliance with the License.
411fccf17Sopenharmony_ci# You may obtain a copy of the License at
511fccf17Sopenharmony_ci#
611fccf17Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
711fccf17Sopenharmony_ci#
811fccf17Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
911fccf17Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1011fccf17Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1111fccf17Sopenharmony_ci# See the License for the specific language governing permissions and
1211fccf17Sopenharmony_ci# limitations under the License.
1311fccf17Sopenharmony_ci
1411fccf17Sopenharmony_ci#import("//build/test.gni")
1511fccf17Sopenharmony_ciimport("//build/ohos.gni")
1611fccf17Sopenharmony_ciRIL_ADAPTER = "../../"
1711fccf17Sopenharmony_ci
1811fccf17Sopenharmony_ciohos_executable("ril_adapter_test") {
1911fccf17Sopenharmony_ci  install_enable = true
2011fccf17Sopenharmony_ci  sources = [
2111fccf17Sopenharmony_ci    "ril_callback_test.cpp",
2211fccf17Sopenharmony_ci    "ril_interface_test.cpp",
2311fccf17Sopenharmony_ci  ]
2411fccf17Sopenharmony_ci  include_dirs = [ "include" ]
2511fccf17Sopenharmony_ci  configs = [ "$RIL_ADAPTER/utils:utils_config" ]
2611fccf17Sopenharmony_ci  defines = [
2711fccf17Sopenharmony_ci    "TELEPHONY_LOG_TAG = \"RilAdapterUTest\"",
2811fccf17Sopenharmony_ci    "LOG_DOMAIN = 0xD000F00",
2911fccf17Sopenharmony_ci  ]
3011fccf17Sopenharmony_ci  deps = []
3111fccf17Sopenharmony_ci  if (is_standard_system) {
3211fccf17Sopenharmony_ci    external_deps = [
3311fccf17Sopenharmony_ci      "bounds_checking_function:libsec_shared",
3411fccf17Sopenharmony_ci      "c_utils:utils",
3511fccf17Sopenharmony_ci      "drivers_interface_ril:libril_proxy_1.2",
3611fccf17Sopenharmony_ci      "drivers_interface_ril:libril_proxy_1.3",
3711fccf17Sopenharmony_ci      "hdf_core:libhdf_utils",
3811fccf17Sopenharmony_ci      "hilog:libhilog",
3911fccf17Sopenharmony_ci      "ipc:ipc_single",
4011fccf17Sopenharmony_ci    ]
4111fccf17Sopenharmony_ci  } else {
4211fccf17Sopenharmony_ci    external_deps = [ "hilog:libhilog" ]
4311fccf17Sopenharmony_ci  }
4411fccf17Sopenharmony_ci  external_deps += [ "ipc:ipc_single" ]
4511fccf17Sopenharmony_ci
4611fccf17Sopenharmony_ci  #install_images = [ chipset_base_dir ]
4711fccf17Sopenharmony_ci
4811fccf17Sopenharmony_ci  part_name = "ril_adapter"
4911fccf17Sopenharmony_ci  subsystem_name = "telephony"
5011fccf17Sopenharmony_ci}
51