1# Copyright (c) 2021 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 16config("hdi_service_proxy_config") { 17 visibility = [ ":*" ] 18 19 cflags = [ 20 "-Wall", 21 "-Wextra", 22 "-Werror", 23 "-DGST_DISABLE_DEPRECATED", 24 "-DHAVE_CONFIG_H", 25 "-fno-strict-aliasing", 26 "-Wno-builtin-requires-header", 27 "-Wno-int-conversion", 28 "-Wno-unused-parameter", 29 "-Wno-thread-safety-attributes", 30 "-Wno-inconsistent-missing-override", 31 "-fno-rtti", 32 "-fno-exceptions", 33 "-ffunction-sections", 34 "-fdata-sections", 35 "-Oz", 36 "-flto", 37 ] 38 39 ldflags = [ "-Wl" ] 40} 41 42ohos_shared_library("audio_bluetooth_hdi_proxy_server") { 43 include_dirs = [ 44 "//drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/include", 45 "//drivers/peripheral/bluetooth/audio/hal/hdi_binder/proxy/include", 46 "//drivers/peripheral/bluetooth/audio/hal/hdi_binder/server/include", 47 ] 48 49 sources = [ 50 "//drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/audio_adapter_info_common.cpp", 51 "//drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/audio_common.cpp", 52 "src/audio_proxy_adapter.cpp", 53 "src/audio_proxy_common.cpp", 54 "src/audio_proxy_manager.cpp", 55 "src/audio_proxy_render.cpp", 56 "src/audio_proxy_capture.cpp", 57 ] 58 59 deps = [] 60 61 if (is_standard_system) { 62 external_deps = [ 63 "drivers_interface_bluetooth:hdi_audio_bluetooth_header", 64 "hdf_core:libhdf_host", 65 "hdf_core:libhdf_ipc_adapter", 66 "hdf_core:libhdi", 67 "hdf_core:libpub_utils", 68 "hilog:libhilog", 69 "cJSON:cjson", 70 ] 71 } else { 72 external_deps = [ "hilog:libhilog" ] 73 } 74 external_deps += [ "c_utils:utils" ] 75 76 public_configs = [ ":hdi_service_proxy_config" ] 77 78 innerapi_tags = [ "passthrough" ] 79 install_images = [ chipset_base_dir ] 80 subsystem_name = "hdf" 81 part_name = "drivers_peripheral_bluetooth" 82} 83