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. 13import("//base/telephony/core_service/telephony.gni") 14import("//build/ohos.gni") 15SUBSYSTEM_DIR = "//base/telephony" 16ohos_shared_library("observer") { 17 include_dirs = [ 18 "//third_party/node/src", 19 "include", 20 "$SUBSYSTEM_DIR/state_registry/frameworks/native/observer/include", 21 "$SUBSYSTEM_DIR/core_service/frameworks/js/sim/include", 22 "$SUBSYSTEM_DIR/core_service/frameworks/js/network_search/include", 23 "$SUBSYSTEM_DIR/core_service/frameworks/js/napi", 24 "$SUBSYSTEM_DIR/call_manager/interfaces/innerkits", 25 "//third_party/libuv/include", 26 ] 27 28 sources = [ 29 "$SUBSYSTEM_DIR/core_service/frameworks/js/napi/napi_util.cpp", 30 "src/event_listener_handler.cpp", 31 "src/event_listener_manager.cpp", 32 "src/napi_state_registry.cpp", 33 "src/napi_telephony_observer.cpp", 34 ] 35 36 configs = [ "//base/telephony/core_service/utils:telephony_log_config" ] 37 38 deps = [ 39 "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native", 40 "//foundation/ace/napi:ace_napi", 41 "//third_party/libuv:uv_static", 42 "//utils/native/base:utils", 43 ] 44 45 external_deps = [ 46 "ability_base:want", 47 "ability_runtime:ability_manager", 48 "core_service:tel_core_service_api", 49 "eventhandler:libeventhandler", 50 "hiviewdfx_hilog_native:libhilog", 51 "ipc:ipc_core", 52 "ril_adapter:hril_innerkits", 53 "safwk:system_ability_fwk", 54 "samgr_standard:samgr_proxy", 55 "startup_l2:syspara", 56 "state_registry:tel_state_registry_api", 57 ] 58 59 defines += [ 60 "TELEPHONY_LOG_TAG = \"STATE_REGISTRY_NAPI\"", 61 "LOG_DOMAIN = 0", 62 ] 63 64 relative_install_dir = "module/telephony" 65 part_name = "state_registry" 66 subsystem_name = "telephony" 67} 68