• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/frameworks/native:tel_sms_mms_api",
36    "//foundation/arkui/napi:ace_napi",
37  ]
38
39  defines += [
40    "TELEPHONY_LOG_TAG = \"SmsMmsJsApi\"",
41    "LOG_DOMAIN = 0xD001F06",
42  ]
43
44  external_deps = [
45    "c_utils:utils",
46    "core_service:tel_core_service_api",
47    "init:libbegetutil",
48    "ipc:ipc_core",
49  ]
50
51  if (is_standard_system) {
52    external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
53  } else {
54    external_deps += [ "hilog:libhilog" ]
55  }
56  relative_install_dir = "module/telephony"
57  part_name = "sms_mms"
58  subsystem_name = "telephony"
59}
60