• 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")
15
16ohos_shared_library("bluetooth") {
17  #install_enable = true
18  include_dirs = [
19    "include",
20    "//third_party/node/src",
21    "//native_engine",
22    "//utils/native/base/include",
23    "//utils/system/safwk/native/include",
24    "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy/include",
25    "//foundation/distributedschedule/samgr/adapter/interfaces/innerkits/include",
26    "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include",
27    "//foundation/communication/bluetooth/interfaces/innerkits/native_cpp/framework/common",
28  ]
29
30  defines = [
31    "BT_LOG_TAG = \"bluetooth_napi\"",
32    "BT_LOG_DOMAIN = 0xD005310",
33  ]
34
35  sources = [
36    "src/napi_bluetooth_a2dp_snk.cpp",
37    "src/napi_bluetooth_a2dp_snk_observer.cpp",
38    "src/napi_bluetooth_a2dp_src.cpp",
39    "src/napi_bluetooth_a2dp_src_observer.cpp",
40    "src/napi_bluetooth_avrcp_ct.cpp",
41    "src/napi_bluetooth_avrcp_ct_observer.cpp",
42    "src/napi_bluetooth_avrcp_tg.cpp",
43    "src/napi_bluetooth_avrcp_tg_observer.cpp",
44    "src/napi_bluetooth_ble.cpp",
45    "src/napi_bluetooth_ble_advertise_callback.cpp",
46    "src/napi_bluetooth_ble_central_manager_callback.cpp",
47    "src/napi_bluetooth_gatt_client.cpp",
48    "src/napi_bluetooth_gatt_client_callback.cpp",
49    "src/napi_bluetooth_gatt_server.cpp",
50    "src/napi_bluetooth_gatt_server_callback.cpp",
51    "src/napi_bluetooth_hfp_ag.cpp",
52    "src/napi_bluetooth_hfp_ag_observer.cpp",
53    "src/napi_bluetooth_hfp_hf.cpp",
54    "src/napi_bluetooth_hfp_hf_observer.cpp",
55    "src/napi_bluetooth_host.cpp",
56    "src/napi_bluetooth_host_observer.cpp",
57    "src/napi_bluetooth_pbap_pce.cpp",
58    "src/napi_bluetooth_pbap_pce_observer.cpp",
59    "src/napi_bluetooth_pbap_pse.cpp",
60    "src/napi_bluetooth_pbap_pse_observer.cpp",
61    "src/napi_bluetooth_profile.cpp",
62    "src/napi_bluetooth_remote_device_observer.cpp",
63    "src/napi_bluetooth_spp_client.cpp",
64    "src/napi_bluetooth_spp_server.cpp",
65    "src/napi_bluetooth_utils.cpp",
66    "src/native_module.cpp",
67  ]
68
69  deps = [
70    "//base/hiviewdfx/hilog/interfaces/native/innerkits:libhilog",
71    "//foundation/ace/napi:ace_napi",
72    "//foundation/communication/bluetooth/interfaces/innerkits/native_cpp/framework:btframework",
73    "//third_party/libuv:uv_static",
74    "//utils/native/base:utils",
75  ]
76
77  external_deps = [
78    "ability_base:want",
79    "ability_runtime:ability_manager",
80    "bundle_framework:appexecfwk_base",
81    "bundle_framework:appexecfwk_core",
82    "hiviewdfx_hilog_native:libhilog",
83    "ipc:ipc_core",
84  ]
85
86  relative_install_dir = "module"
87  part_name = "bluetooth_standard"
88  subsystem_name = "communication"
89}
90