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 "bluetooth_hfp_interface.cpp", 34 "bluetooth_device_utils.cpp", 35 ] 36 37 include_dirs = [ 38 "../../../services/audio_policy/server/include/service/interface", 39 "../../../services/audio_service/client/include", 40 "../../../interfaces/inner_api/native/audiocommon/include", 41 "../../../interfaces/inner_api/native/audiomanager/include", 42 "../audioutils/include", 43 ] 44 45 deps = [ 46 "../../../services/audio_policy:audio_foundation", 47 "../audioutils:audio_utils", 48 ] 49 50 external_deps = [ 51 "bluetooth:btframework", 52 "c_utils:utils", 53 "hdf_core:libhdf_ipc_adapter", 54 "hdf_core:libhdi", 55 "hdf_core:libpub_utils", 56 "hilog:libhilog", 57 "hisysevent:libhisysevent", 58 "ipc:ipc_single", 59 ] 60 61 cflags = [ "-Os" ] 62 cflags_cc = cflags 63 64 part_name = "audio_framework" 65 subsystem_name = "multimedia" 66 version_script = "libaudio_bluetooth_client.versionscript" 67} 68