1# Copyright (c) 2022 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/peripheral/audio/config/audio_config.gni") 16 17if (is_standard_system) { 18 ohos_prebuilt_etc("hdf_audio_adapter_json") { 19 if (HAVE_AUDIO_ADAPTER_JSON) { 20 source = "${AUDIO_JSON_PATH}/audio_adapter.json" 21 } else { 22 source = "//drivers/peripheral/audio/config/audio_adapter.json" 23 } 24 25 relative_install_dir = "hdfconfig" 26 install_images = [ chipset_base_dir ] 27 subsystem_name = "hdf" 28 part_name = "drivers_peripheral_audio" 29 } 30 31 ohos_prebuilt_etc("hdf_audio_path_json") { 32 if (HAVE_AUDIO_PATHS_JSON) { 33 source = "${AUDIO_JSON_PATH}/audio_paths.json" 34 } else { 35 source = "//drivers/peripheral/audio/config/audio_paths.json" 36 } 37 38 relative_install_dir = "hdfconfig" 39 install_images = [ chipset_base_dir ] 40 subsystem_name = "hdf" 41 part_name = "drivers_peripheral_audio" 42 } 43 44 ohos_prebuilt_etc("hdf_alsa_adapter_json") { 45 source = "//vendor/${product_company}/${product_name}/hals/audio/alsa_adapter.json" 46 relative_install_dir = "hdfconfig" 47 install_images = [ chipset_base_dir ] 48 subsystem_name = "hdf" 49 part_name = "drivers_peripheral_audio" 50 } 51} 52