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 14import("//base/telephony/call_manager/call_manager_aafwk.gni") 15import("//build/ohos.gni") 16 17ohos_executable("tel_call_manager_ui_test") { 18 install_enable = true 19 sources = [ 20 "bluetooth_call_test.cpp", 21 "call_manager_callback_test.cpp", 22 "common_event_subscriber_test.cpp", 23 "ui_client_test.cpp", 24 ] 25 26 include_dirs = [ 27 "//base/telephony/call_manager/services/audio/include", 28 "//foundation/graphic/graphic_2d/frameworks/surface/include", 29 "//drivers/peripheral/camera/interfaces/metadata/include", 30 "//utils/system/safwk/native/include", 31 "//drivers/hdf_core/framework/include/utils", 32 "//drivers/hdf_core/adapter/uhdf2/utils/include", 33 "//drivers/hdf_core/adapter/uhdf2/include/hdi", 34 "//drivers/peripheral/display/interfaces/include", 35 "//drivers/peripheral/camera/interfaces/include", 36 "//drivers/peripheral/camera/interfaces/include/server", 37 "//drivers/peripheral/camera/interfaces/include/callback/device", 38 "//drivers/peripheral/camera/interfaces/include/callback/operator", 39 "//drivers/peripheral/camera/interfaces/include/callback/host", 40 "/commonlibrary/c_utils/base/include", 41 ] 42 43 configs = [ "//base/telephony/core_service/utils:telephony_log_config" ] 44 45 deps = [ 46 "${ability_runtime_path}/frameworks/native/ability/native:abilitykit_native", 47 "//drivers/peripheral/camera/interfaces/metadata:metadata", 48 "//foundation/graphic/graphic_2d:libsurface", 49 ] 50 51 external_deps = [ 52 "ability_base:want", 53 "access_token:libaccesstoken_sdk", 54 "access_token:libnativetoken", 55 "access_token:libtoken_setproc", 56 "c_utils:utils", 57 "call_manager:tel_call_manager_api", 58 "common_event_service:cesfwk_innerkits", 59 "core_service:tel_core_service_api", 60 "eventhandler:libeventhandler", 61 "ipc:ipc_core", 62 "multimedia_audio_framework:audio_client", 63 "multimedia_audio_framework:audio_renderer", 64 "multimedia_camera_framework:camera_framework", 65 "safwk:system_ability_fwk", 66 "samgr:samgr_proxy", 67 ] 68 69 defines = [ 70 "TELEPHONY_LOG_TAG = \"CallManagerUiTest\"", 71 "LOG_DOMAIN = 0xD000F00", 72 ] 73 74 if (is_standard_system) { 75 external_deps += [ "hiviewdfx_hilog_native:libhilog" ] 76 } else { 77 external_deps += [ "hilog:libhilog" ] 78 } 79 80 part_name = "call_manager" 81 subsystem_name = "telephony" 82} 83