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/core_service_aafwk.gni") 14import("//build/ohos.gni") 15SUBSYSTEM_DIR = "//base/telephony" 16ohos_shared_library("sim") { 17 include_dirs = [ 18 "$SUBSYSTEM_DIR/core_service/frameworks/js/napi", 19 "//third_party/node/src", 20 "include", 21 "$SUBSYSTEM_DIR/core_service/interfaces/kits/native", 22 "$SUBSYSTEM_DIR/core_service/interfaces/innerkits/include", 23 "//commonlibrary/c_utils/base/include", 24 "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include", 25 "${ability_runtime_path}/interfaces/kits/native/ability/native", 26 ] 27 28 sources = [ 29 "$SUBSYSTEM_DIR/core_service/frameworks/js/napi/napi_util.cpp", 30 "src/napi_sim.cpp", 31 ] 32 33 configs = [ "//base/telephony/core_service/utils:telephony_log_config" ] 34 35 deps = [ 36 "$SUBSYSTEM_DIR/core_service/interfaces/innerkits:tel_core_service_api", 37 "//foundation/arkui/napi:ace_napi", 38 ] 39 40 external_deps = [ 41 "c_utils:utils", 42 "core_service:libtel_common", 43 "hiviewdfx_hilog_native:libhilog", 44 "init:libbegetutil", 45 ] 46 defines = [ 47 "TELEPHONY_LOG_TAG = \"CoreServiceSimJsApi\"", 48 "LOG_DOMAIN = 0xD001F04", 49 ] 50 subsystem_name = "telephony" 51 part_name = "core_service" 52 relative_install_dir = "module/telephony" 53} 54