1# Copyright (c) 2022-2024 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("../../../distributedaudio.gni") 16 17ohos_shared_library("libdaudio_manager_daudio_ext_service_2.0") { 18 sanitize = { 19 boundary_sanitize = true 20 cfi = true 21 cfi_cross_dso = true 22 debug = false 23 integer_overflow = true 24 ubsan = true 25 } 26 27 include_dirs = [ 28 "${hdf_ser_aud_ext_path}/include", 29 "${hdf_ser_aud_path}/include", 30 "${hdf_service_path}/hdi_service/common/include", 31 "${hdf_service_path}/hdi_service/common/log/include", 32 "${hdf_service_path}/hdi_service/common/utils/include", 33 ] 34 35 sources = [ "./src/daudio_manager_interface_impl.cpp" ] 36 37 public_deps = [ 38 "${hdf_ser_aud_path}:libaudio_manager_daudio_primary_service_1.0", 39 "${hdf_service_path}/hdi_service/common:libdaudio_hdf_utils", 40 ] 41 42 ldflags = [ 43 "-fpie", 44 "-Wl,-z,relro", 45 "-Wl,-z,now", 46 ] 47 48 external_deps = [ 49 "cJSON:cjson", 50 "c_utils:utils", 51 "drivers_interface_distributed_audio:libdaudio_stub_1.0", 52 "drivers_interface_distributed_audio:libdaudioext_stub_2.0", 53 "hdf_core:libhdf_host", 54 "hdf_core:libhdf_utils", 55 "hilog:libhilog", 56 "ipc:ipc_single", 57 ] 58 59 defines = [ 60 "HI_LOG_ENABLE", 61 "LOG_DOMAIN=0xD004130", 62 ] 63 64 install_images = [ chipset_base_dir ] 65 subsystem_name = "hdf" 66 part_name = "drivers_peripheral_distributed_audio" 67} 68 69ohos_shared_library("libdaudio_ext_driver") { 70 sanitize = { 71 boundary_sanitize = true 72 cfi = true 73 cfi_cross_dso = true 74 debug = false 75 integer_overflow = true 76 ubsan = true 77 } 78 79 include_dirs = [ "${hdf_ser_aud_ext_path}/include" ] 80 81 sources = [ "./src/daudio_manager_driver.cpp" ] 82 83 ldflags = [ 84 "-fpie", 85 "-Wl,-z,relro", 86 "-Wl,-z,now", 87 ] 88 89 deps = [ "${hdf_ser_aud_ext_path}:libdaudio_manager_daudio_ext_service_2.0" ] 90 91 external_deps = [ 92 "c_utils:utils", 93 "drivers_interface_distributed_audio:libdaudio_stub_1.0", 94 "drivers_interface_distributed_audio:libdaudioext_stub_2.0", 95 "hdf_core:libhdf_host", 96 "hdf_core:libhdf_ipc_adapter", 97 "hdf_core:libhdf_utils", 98 "hdf_core:libhdi", 99 "hilog:libhilog", 100 "ipc:ipc_single", 101 ] 102 103 shlib_type = "hdi" 104 install_images = [ chipset_base_dir ] 105 subsystem_name = "hdf" 106 part_name = "drivers_peripheral_distributed_audio" 107} 108 109group("hdf_daudio_ext_service") { 110 deps = [ 111 ":libdaudio_ext_driver", 112 ":libdaudio_manager_daudio_ext_service_2.0", 113 ] 114} 115