• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2023 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
16BT_PART_DIR = "../../../../.."
17BT_NAPI_DIR = "$BT_PART_DIR/frameworks/js/napi"
18
19ohos_shared_library("constant") {
20  stack_protector_ret = true
21
22  #install_enable = true
23  include_dirs = [
24    "$BT_NAPI_DIR/include",
25    "$BT_NAPI_DIR/src/constant",
26    "//third_party/node/src",
27    "$BT_PART_DIR/frameworks/inner/common",
28  ]
29
30  defines = [
31    "BT_LOG_TAG = \"bluetooth_napi\"",
32    "BT_LOG_DOMAIN = 0xD000100",
33    "ENABLE_NAPI_BLUETOOTH_MANAGER",
34    "BLUETOOTH_API_SINCE_10",
35  ]
36
37  sources = [
38    "$BT_NAPI_DIR/src/common/napi_bluetooth_utils.cpp",
39    "napi_bluetooth_constant.cpp",
40    "native_module_constant.cpp",
41  ]
42
43  deps = [
44    "$BT_PART_DIR/frameworks/inner:btframework",
45    "//third_party/libuv:uv",
46  ]
47
48  external_deps = [
49    "ability_base:want",
50    "ability_runtime:ability_manager",
51    "bundle_framework:appexecfwk_base",
52    "bundle_framework:appexecfwk_core",
53    "c_utils:utils",
54    "hilog:libhilog",
55    "ipc:ipc_single",
56    "napi:ace_napi",
57  ]
58
59  relative_install_dir = "module/bluetooth"
60  part_name = "bluetooth"
61  subsystem_name = "communication"
62}
63