• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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")
15import("//foundation/communication/netmanager_base/netmanager_base_config.gni")
16
17config("napi_utils_config") {
18  visibility = [ ":napi_utils" ]
19  include_dirs = [ "$INNERKITS_ROOT/include" ]
20}
21
22config("napi_utils_public_config") {
23  include_dirs = [
24    "include",
25    "$THIRD_PARTY_ROOT/node/src",
26  ]
27}
28
29ohos_shared_library("napi_utils") {
30  sanitize = {
31    cfi = true
32    cfi_cross_dso = true
33    boundary_sanitize = true
34    all_ubsan = true
35    debug = false
36    blocklist = "./napi_utils_blocklist.txt"
37  }
38
39  sources = [
40    "src/base_context.cpp",
41    "src/event_listener.cpp",
42    "src/event_manager.cpp",
43    "src/module_template.cpp",
44    "src/napi_utils.cpp",
45  ]
46
47  configs = [ ":napi_utils_config" ]
48
49  public_configs = [ ":napi_utils_public_config" ]
50
51  public_deps = [ "$NETMANAGER_BASE_ROOT/utils:net_manager_common" ]
52
53  external_deps = [
54    "c_utils:utils",
55    "hilog:libhilog",
56    "napi:ace_napi",
57  ]
58
59  innerapi_tags = [ "platformsdk" ]
60  part_name = "netmanager_base"
61  subsystem_name = "communication"
62}
63