1# Copyright (C) 2021 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14#import("//build/test.gni") 15import("//build/ohos.gni") 16RIL_ADAPTER = "../../" 17 18ohos_executable("ril_adapter_test") { 19 install_enable = true 20 sources = [ 21 "ril_callback_test.cpp", 22 "ril_interface_test.cpp", 23 ] 24 include_dirs = [ "include" ] 25 configs = [ "$RIL_ADAPTER/utils:utils_config" ] 26 defines = [ 27 "TELEPHONY_LOG_TAG = \"RilAdapterUTest\"", 28 "LOG_DOMAIN = 0xD000F00", 29 ] 30 deps = [] 31 if (is_standard_system) { 32 external_deps = [ 33 "c_utils:utils", 34 "drivers_interface_ril:libril_proxy_1.1", 35 "hdf_core:libhdf_utils", 36 "hilog:libhilog", 37 "ipc:ipc_single", 38 ] 39 } else { 40 external_deps = [ "hilog:libhilog" ] 41 } 42 external_deps += [ "ipc:ipc_single" ] 43 44 #install_images = [ chipset_base_dir ] 45 46 part_name = "ril_adapter" 47 subsystem_name = "telephony" 48} 49