• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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")
15SOURCE_DIR = "//base/telephony/sms_mms/frameworks/native/mms"
16
17config("mms_native_config") {
18  visibility = [ "*:*" ]
19  include_dirs = [
20    "$SOURCE_DIR/include",
21    "$SOURCE_DIR/include/utils",
22    "//base/telephony/sms_mms/interfaces/innerkits",
23  ]
24}
25
26ohos_source_set("mms_native_source") {
27  sources = [
28    "$SOURCE_DIR/src/mms_address.cpp",
29    "$SOURCE_DIR/src/mms_attachment.cpp",
30    "$SOURCE_DIR/src/mms_body.cpp",
31    "$SOURCE_DIR/src/mms_body_part.cpp",
32    "$SOURCE_DIR/src/mms_body_part_header.cpp",
33    "$SOURCE_DIR/src/mms_buffer.cpp",
34    "$SOURCE_DIR/src/mms_content_param.cpp",
35    "$SOURCE_DIR/src/mms_content_type.cpp",
36    "$SOURCE_DIR/src/mms_decode_buffer.cpp",
37    "$SOURCE_DIR/src/mms_encode_buffer.cpp",
38    "$SOURCE_DIR/src/mms_encode_string.cpp",
39    "$SOURCE_DIR/src/mms_header.cpp",
40    "$SOURCE_DIR/src/mms_header_categ.cpp",
41    "$SOURCE_DIR/src/mms_msg.cpp",
42    "$SOURCE_DIR/src/utils/mms_base64.cpp",
43    "$SOURCE_DIR/src/utils/mms_charset.cpp",
44    "$SOURCE_DIR/src/utils/mms_quoted_printable.cpp",
45  ]
46
47  include_dirs = [ ":mms_native_config" ]
48
49  configs = [ "//base/telephony/core_service/utils:telephony_log_config" ]
50
51  external_deps = [
52    "c_utils:utils",
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  if (is_standard_system) {
63    external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
64  } else {
65    external_deps += [ "hilog:libhilog" ]
66  }
67
68  public_configs = [ ":mms_native_config" ]
69
70  part_name = "sms_mms"
71  subsystem_name = "telephony"
72}
73