1# Copyright (c) 2022-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 14declare_args() { 15 audio_framework_feature_double_pnp_detect = false 16 audio_framework_feature_dtmf_tone = true 17 audio_framework_feature_opensl_es = true 18 sonic_enable = true 19 if (!defined(global_parts_info) || 20 defined(global_parts_info.distributedhardware_distributed_audio)) { 21 audio_framework_feature_daudio_enable = true 22 } else { 23 audio_framework_feature_daudio_enable = false 24 } 25 26 if (!defined(global_parts_info) || 27 defined(global_parts_info.hiviewdfx_hitrace)) { 28 audio_framework_feature_hitrace_enable = true 29 } else { 30 audio_framework_feature_hitrace_enable = false 31 } 32 33 if (!defined(global_parts_info) || 34 defined(global_parts_info.customization_config_policy)) { 35 audio_framework_config_policy_enable = true 36 } else { 37 audio_framework_config_policy_enable = false 38 } 39 40 if (!defined(global_parts_info) || 41 defined(global_parts_info.multimodalinput_input)) { 42 audio_framework_feature_input = true 43 } else { 44 audio_framework_feature_input = false 45 } 46 47 if (!defined(global_parts_info) || 48 defined(global_parts_info.powermgr_power_manager)) { 49 audio_framework_feature_power_manager = true 50 } else { 51 audio_framework_feature_power_manager = false 52 } 53 54 if (!defined(global_parts_info) || 55 defined(global_parts_info.distributedhardware_device_manager)) { 56 audio_framework_feature_device_manager = true 57 } else { 58 audio_framework_feature_device_manager = false 59 } 60 61 audio_framework_feature_new_napi = true 62 multimedia_audio_framework_pulse_audio = "//third_party/pulseaudio/include" 63 64 multimedia_audio_framework_pulse_audio_src = "//third_party/pulseaudio/src" 65 66 multimedia_audio_framework_drivers = 67 "//drivers/peripheral/audio/interfaces/include/" 68} 69 70third_party_path = "//third_party" 71