• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2024 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("ffi_common_deps_config") {
17  include_dirs = [ "include" ]
18}
19
20ohos_shared_library("cj_sms_ffi") {
21  sanitize = {
22    cfi = true
23    cfi_cross_dso = true
24    debug = false
25  }
26
27  if (!defined(defines)) {
28    defines = []
29  }
30  include_dirs = [ "include" ]
31  public_configs = [ ":ffi_common_deps_config" ]
32
33  deps = [ "../../../sms_mms/frameworks/native:tel_sms_mms_api" ]
34  external_deps = [
35    "c_utils:utils",
36    "core_service:libtel_common",
37    "hilog:libhilog",
38    "init:libbegetutil",
39    "ipc:ipc_single",
40    "napi:ace_napi",
41    "napi:cj_bind_ffi",
42    "napi:cj_bind_native",
43  ]
44  sources = [
45    "src/sms_ffi.cpp",
46    "src/sms_utils.cpp",
47  ]
48
49  cflags = [
50    "-D_FORTIFY_SOURCE=2",
51    "-O2",
52  ]
53
54  innerapi_tags = [ "platformsdk" ]
55
56  subsystem_name = "telephony"
57  part_name = "sms_mms"
58}
59