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") 15import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") 16 17config("hdi_service_proxy_config") { 18 visibility = [ ":*" ] 19 20 cflags = [ 21 "-Wall", 22 "-Wextra", 23 "-Werror", 24 "-DGST_DISABLE_DEPRECATED", 25 "-DHAVE_CONFIG_H", 26 "-fno-strict-aliasing", 27 "-Wno-builtin-requires-header", 28 "-Wno-int-conversion", 29 "-Wno-unused-parameter", 30 "-Wno-thread-safety-attributes", 31 "-Wno-inconsistent-missing-override", 32 "-fno-rtti", 33 "-fno-exceptions", 34 "-ffunction-sections", 35 "-fdata-sections", 36 ] 37 38 ldflags = [ "-Wl" ] 39} 40 41ohos_shared_library("audio_bluetooth_hdi_proxy_server") { 42 include_dirs = [ 43 "//drivers/peripheral/bluetooth/audio/interfaces/include", 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 "//third_party/cJSON", 48 "$hdf_framework_path/include/core", 49 "$hdf_framework_path/include/utils", 50 "$hdf_framework_path/include/osal", 51 "$hdf_framework_path/include", 52 "//third_party/bounds_checking_function/include", 53 "$hdf_framework_path/ability/sbuf/include", 54 "$hdf_framework_path/utils/include", 55 "$hdf_framework_path/ability/sbuf/include", 56 "$hdf_uhdf_path/osal/include", 57 "$hdf_framework_path/include", 58 "$hdf_framework_path/core/sec/include", 59 "$hdf_framework_path/core/shared/include", 60 "$hdf_framework_path/core/host/include", 61 "$hdf_framework_path/core/manager/include", 62 "$hdf_uhdf_path/include/devhost", 63 "$hdf_uhdf_path/devhost/include", 64 "$hdf_uhdf_path/devmgr/include", 65 "$hdf_uhdf_path/host/include", 66 "$hdf_uhdf_path/manager/include", 67 "$hdf_uhdf_path/include/host", 68 ] 69 70 sources = [ 71 "//drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/audio_adapter_info_common.cpp", 72 "//drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/audio_common.cpp", 73 "//third_party/cJSON/cJSON.c", 74 "src/audio_proxy_adapter.cpp", 75 "src/audio_proxy_common.cpp", 76 "src/audio_proxy_manager.cpp", 77 "src/audio_proxy_render.cpp", 78 ] 79 80 deps = [ 81 "$hdf_uhdf_path/hdi:libhdi", 82 "$hdf_uhdf_path/ipc:libhdf_ipc_adapter", 83 "$hdf_uhdf_path/utils:libhdf_utils", 84 ] 85 86 if (is_standard_system) { 87 external_deps = [ "hiviewdfx_hilog_native:libhilog" ] 88 } else { 89 external_deps = [ "hilog:libhilog" ] 90 } 91 external_deps += [ "c_utils:utils" ] 92 93 public_configs = [ ":hdi_service_proxy_config" ] 94 95 install_images = [ chipset_base_dir ] 96 subsystem_name = "hdf" 97 part_name = "drivers_peripheral_bluetooth" 98} 99