1# Copyright (C) 2021-2022 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") 15 16config("mms_native_config") { 17 visibility = [ "*:*" ] 18 include_dirs = [ 19 "include", 20 "include/utils", 21 "../../../interfaces/innerkits", 22 ] 23} 24 25ohos_source_set("mms_native_source") { 26 sources = [ 27 "src/mms_address.cpp", 28 "src/mms_attachment.cpp", 29 "src/mms_body.cpp", 30 "src/mms_body_part.cpp", 31 "src/mms_body_part_header.cpp", 32 "src/mms_buffer.cpp", 33 "src/mms_content_param.cpp", 34 "src/mms_content_type.cpp", 35 "src/mms_decode_buffer.cpp", 36 "src/mms_encode_buffer.cpp", 37 "src/mms_encode_string.cpp", 38 "src/mms_header.cpp", 39 "src/mms_header_categ.cpp", 40 "src/mms_msg.cpp", 41 "src/utils/mms_base64.cpp", 42 "src/utils/mms_charset.cpp", 43 "src/utils/mms_quoted_printable.cpp", 44 ] 45 46 include_dirs = [ ":mms_native_config" ] 47 48 external_deps = [ 49 "c_utils:utils", 50 "core_service:libtel_common", 51 "hilog:libhilog", 52 "ipc:ipc_core", 53 "safwk:system_ability_fwk", 54 "samgr:samgr_proxy", 55 ] 56 57 defines = [ 58 "TELEPHONY_LOG_TAG = \"MmsApi\"", 59 "LOG_DOMAIN = 0xD001F06", 60 ] 61 62 public_configs = [ ":mms_native_config" ] 63 64 part_name = "sms_mms" 65 subsystem_name = "telephony" 66} 67