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("//build/ohos.gni") 15SUBSYSTEM_DIR = "//base/telephony" 16 17config("sms_native_config") { 18 visibility = [ "*:*" ] 19 include_dirs = [ 20 "include", 21 "$SUBSYSTEM_DIR/sms_mms/utils", 22 "$SUBSYSTEM_DIR/sms_mms/interfaces/innerkits", 23 "$SUBSYSTEM_DIR/sms_mms:tel_sms_mms_config", 24 "$SUBSYSTEM_DIR/sms_mms/interfaces/innerkits/ims", 25 ] 26} 27 28ohos_source_set("sms_native_source") { 29 sources = [ 30 "$SUBSYSTEM_DIR/sms_mms/utils/string_utils.cpp", 31 "//base/telephony/sms_mms/services/ims_service_interaction/src/ims_sms_callback_proxy.cpp", 32 "src/delivery_short_message_callback_stub.cpp", 33 "src/send_short_message_callback_stub.cpp", 34 "src/short_message.cpp", 35 "src/sms_service_death_recipient.cpp", 36 "src/sms_service_manager_client.cpp", 37 "src/sms_service_proxy.cpp", 38 ] 39 40 include_dirs = [ 41 ":sms_native_config", 42 "$SUBSYSTEM_DIR/core_service/frameworks/js/napi", 43 "$SUBSYSTEM_DIR/core_service/interfaces/innerkits/common", 44 ] 45 46 configs = [ "//base/telephony/core_service/utils:telephony_log_config" ] 47 48 external_deps = [ 49 "c_utils:utils", 50 "core_service:tel_core_service_api", 51 "drivers_interface_ril:hril_innerkits", 52 "ipc:ipc_core", 53 "safwk:system_ability_fwk", 54 "samgr:samgr_proxy", 55 ] 56 57 defines = [ 58 "TELEPHONY_LOG_TAG = \"SmsApi\"", 59 "LOG_DOMAIN = 0xD001F06", 60 ] 61 62 public_configs = [ ":sms_native_config" ] 63 64 if (is_standard_system) { 65 external_deps += [ "hiviewdfx_hilog_native:libhilog" ] 66 } else { 67 external_deps += [ "hilog:libhilog" ] 68 } 69 part_name = "sms_mms" 70 subsystem_name = "telephony" 71} 72