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_support_os_account = true 18 audio_framework_feature_opensl_es = true 19 sonic_enable = true 20 speex_enable = false 21 audio_framework_feature_daudio_enable = true 22 audio_framework_feature_hitrace_enable = true 23 audio_framework_config_policy_enable = true 24 audio_framework_feature_input = true 25 audio_framework_feature_power_manager = true 26 audio_framework_feature_device_manager = true 27 28 if (!defined(global_parts_info) || 29 defined(global_parts_info.hdf_drivers_interface_distributed_audio)) { 30 audio_framework_feature_daudio_enable = true 31 } else { 32 audio_framework_feature_daudio_enable = false 33 } 34 35 if (!defined(global_parts_info) || 36 defined(global_parts_info.hiviewdfx_hitrace)) { 37 audio_framework_feature_hitrace_enable = true 38 } else { 39 audio_framework_feature_hitrace_enable = false 40 } 41 42 if (!defined(global_parts_info) || 43 defined(global_parts_info.customization_config_policy)) { 44 audio_framework_config_policy_enable = true 45 } else { 46 audio_framework_config_policy_enable = false 47 } 48 49 if (!defined(global_parts_info) || 50 defined(global_parts_info.multimodalinput_input)) { 51 audio_framework_feature_input = true 52 } else { 53 audio_framework_feature_input = false 54 } 55 56 if (!defined(global_parts_info) || 57 defined(global_parts_info.powermgr_power_manager)) { 58 audio_framework_feature_power_manager = true 59 } else { 60 audio_framework_feature_power_manager = false 61 } 62 63 if (!defined(global_parts_info) || 64 defined(global_parts_info.distributedhardware_device_manager)) { 65 audio_framework_feature_device_manager = true 66 } else { 67 audio_framework_feature_device_manager = false 68 } 69 70 audio_framework_feature_new_napi = true 71 72 multimedia_audio_framework_drivers = 73 "//drivers/peripheral/audio/interfaces/include/" 74} 75 76third_party_path = "//third_party" 77