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("//build/ohos.gni") 14SUBSYSTEM_DIR = "//base/telephony" 15import("//base/telephony/core_service/telephony.gni") 16ohos_shared_library("sms") { 17 include_dirs = [ 18 "//third_party/node/src", 19 "include", 20 "$SUBSYSTEM_DIR/sms_mms/frameworks/js/napi/include", 21 "$SUBSYSTEM_DIR/core_service/frameworks/js/napi", 22 ] 23 24 sources = [ 25 "$SUBSYSTEM_DIR/core_service/frameworks/js/napi/napi_util.cpp", 26 "src/delivery_callback.cpp", 27 "src/napi_mms.cpp", 28 "src/napi_sms.cpp", 29 "src/send_callback.cpp", 30 ] 31 32 configs = [ "//base/telephony/core_service/utils:telephony_log_config" ] 33 34 deps = [ 35 "$SUBSYSTEM_DIR/sms_mms:tel_sms_mms", 36 "$SUBSYSTEM_DIR/sms_mms/frameworks/native:tel_sms_mms_api", 37 "//foundation/ace/napi:ace_napi", 38 "//utils/native/base:utils", 39 ] 40 41 defines += [ 42 "TELEPHONY_LOG_TAG = \"SMS_MMS_API\"", 43 "LOG_DOMAIN = 0xD002B01", 44 ] 45 46 external_deps = [ 47 "core_service:tel_core_service_api", 48 "eventhandler:libeventhandler", 49 "ipc:ipc_core", 50 "ril_adapter:hril_innerkits", 51 "safwk:system_ability_fwk", 52 "samgr_standard:samgr_proxy", 53 "startup_l2:syspara", 54 ] 55 56 if (is_standard_system) { 57 external_deps += [ "hiviewdfx_hilog_native:libhilog" ] 58 } else { 59 external_deps += [ "hilog:libhilog" ] 60 } 61 relative_install_dir = "module/telephony" 62 part_name = "sms_mms" 63 subsystem_name = "telephony" 64} 65