• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2025 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("../../../audio_framework_test_sources.gni")
16import("../../../config.gni")
17
18audio_ohos_library("audio_bluetooth_client") {
19  sanitize = {
20    cfi = true
21    cfi_cross_dso = true
22    cfi_vcall_icall_only = true
23    debug = false
24    integer_overflow = true
25    ubsan = true
26    boundary_sanitize = true
27  }
28  install_enable = true
29  sources = [
30    "audio_bluetooth_manager.cpp",
31    "bluetooth_device_manager.cpp",
32    "bluetooth_sco_manager.cpp",
33  ]
34
35  include_dirs = [
36    "../../../services/audio_policy/server/include/service/interface",
37    "../../../interfaces/inner_api/native/audiocommon/include",
38    "../../../interfaces/inner_api/native/audiomanager/include",
39    "../audioutils/include",
40  ]
41
42  deps = [
43    "../../../services/audio_policy:audio_foundation",
44    "../audioutils:audio_utils",
45  ]
46
47  external_deps = [
48    "bluetooth:btframework",
49    "c_utils:utils",
50    "hdf_core:libhdf_ipc_adapter",
51    "hdf_core:libhdi",
52    "hdf_core:libpub_utils",
53    "hilog:libhilog",
54    "ipc:ipc_single",
55  ]
56
57  cflags = [ "-Os" ]
58  cflags_cc = cflags
59
60  part_name = "audio_framework"
61  subsystem_name = "multimedia"
62  version_script = "libaudio_bluetooth_client.versionscript"
63}
64