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 = "../../../../" 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 sanitize = { 30 cfi = true 31 cfi_cross_dso = true 32 debug = false 33 } 34 branch_protector_ret = "pac_ret" 35 sources = [ 36 "$SUBSYSTEM_DIR/sms_mms/services/sms/ims_service_interaction/src/ims_sms_callback_proxy.cpp", 37 "$SUBSYSTEM_DIR/sms_mms/utils/string_utils.cpp", 38 "src/delivery_short_message_callback_stub.cpp", 39 "src/send_short_message_callback_stub.cpp", 40 "src/short_message.cpp", 41 "src/sms_service_death_recipient.cpp", 42 "src/sms_service_manager_client.cpp", 43 "src/sms_service_proxy.cpp", 44 ] 45 46 include_dirs = [ ":sms_native_config" ] 47 48 external_deps = [ 49 "c_utils:utils", 50 "core_service:libtel_common", 51 "core_service:tel_core_service_api", 52 "hilog:libhilog", 53 "ipc:ipc_single", 54 "safwk:system_ability_fwk", 55 "samgr:samgr_proxy", 56 ] 57 58 defines = [ 59 "TELEPHONY_LOG_TAG = \"SmsApi\"", 60 "LOG_DOMAIN = 0xD001F06", 61 ] 62 63 public_configs = [ ":sms_native_config" ] 64 65 part_name = "sms_mms" 66 subsystem_name = "telephony" 67} 68