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 include_dirs = [ 19 "${hdf_ser_aud_ext_path}/include", 20 "${hdf_ser_aud_path}/include", 21 "${hdf_service_path}/hdi_service/common/include", 22 "${hdf_service_path}/hdi_service/common/log/include", 23 "${hdf_service_path}/hdi_service/common/utils/include", 24 ] 25 26 sources = [ "./src/daudio_manager_interface_impl.cpp" ] 27 28 public_deps = [ 29 "${hdf_ser_aud_path}:libaudio_manager_daudio_primary_service_1.0", 30 "${hdf_service_path}/hdi_service/common:libdaudio_hdf_utils", 31 ] 32 33 external_deps = [ 34 "cJSON:cjson", 35 "c_utils:utils", 36 "drivers_interface_distributed_audio:libdaudio_stub_1.0", 37 "drivers_interface_distributed_audio:libdaudioext_stub_2.0", 38 "hdf_core:libhdf_host", 39 "hdf_core:libhdf_utils", 40 "hilog:libhilog", 41 "ipc:ipc_single", 42 ] 43 44 defines = [ 45 "HI_LOG_ENABLE", 46 "LOG_DOMAIN=0xD004130", 47 ] 48 49 install_images = [ chipset_base_dir ] 50 subsystem_name = "hdf" 51 part_name = "drivers_peripheral_distributed_audio" 52} 53 54ohos_shared_library("libdaudio_ext_driver") { 55 include_dirs = [ "${hdf_ser_aud_ext_path}/include" ] 56 57 sources = [ "./src/daudio_manager_driver.cpp" ] 58 59 deps = [ "${hdf_ser_aud_ext_path}:libdaudio_manager_daudio_ext_service_2.0" ] 60 61 external_deps = [ 62 "c_utils:utils", 63 "drivers_interface_distributed_audio:libdaudio_stub_1.0", 64 "drivers_interface_distributed_audio:libdaudioext_stub_2.0", 65 "hdf_core:libhdf_host", 66 "hdf_core:libhdf_ipc_adapter", 67 "hdf_core:libhdf_utils", 68 "hdf_core:libhdi", 69 "hilog:libhilog", 70 "ipc:ipc_single", 71 ] 72 73 shlib_type = "hdi" 74 install_images = [ chipset_base_dir ] 75 subsystem_name = "hdf" 76 part_name = "drivers_peripheral_distributed_audio" 77} 78 79group("hdf_daudio_ext_service") { 80 deps = [ 81 ":libdaudio_ext_driver", 82 ":libdaudio_manager_daudio_ext_service_2.0", 83 ] 84} 85