1# Copyright (c) 2023 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("./../../../audio.gni") 16 17if (defined(ohos_lite)) { 18 ohos_executable("audio_mixer") { 19 include_dirs = [ "../../../supportlibs/adm_adapter/include" ] 20 21 sources = [ 22 "audio_mixer.c", 23 "audio_mixer_main.c", 24 ] 25 26 external_deps = [ 27 "bounds_checking_function:libsec_shared", 28 "hdf_core:libhdf_utils", 29 ] 30 install_enable = false 31 subsystem_name = "hdf" 32 part_name = "drivers_peripheral_audio" 33 } 34} else { 35 ohos_executable("audio_mixer") { 36 include_dirs = [ "../../../supportlibs/adm_adapter/include" ] 37 38 sources = [ 39 "audio_mixer.c", 40 "audio_mixer_main.c", 41 ] 42 43 defines = [] 44 45 if (is_standard_system) { 46 external_deps = [ 47 "hdf_core:libhdf_utils", 48 "hilog:libhilog", 49 ] 50 if (enable_c_utils) { 51 external_deps += [ "c_utils:utils" ] 52 } 53 } else if (defined(ohos_lite)) { 54 external_deps = [ "hilog_lite:hilog_shared" ] 55 } else { 56 external_deps = [ "hilog:libhilog" ] 57 } 58 external_deps += [ "bounds_checking_function:libsec_shared" ] 59 60 install_enable = false 61 install_images = [ chipset_base_dir ] 62 subsystem_name = "hdf" 63 part_name = "drivers_peripheral_audio" 64 } 65} 66