146f34cbfSopenharmony_ci# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
246f34cbfSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
346f34cbfSopenharmony_ci# you may not use this file except in compliance with the License.
446f34cbfSopenharmony_ci# You may obtain a copy of the License at
546f34cbfSopenharmony_ci#
646f34cbfSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
746f34cbfSopenharmony_ci#
846f34cbfSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
946f34cbfSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1046f34cbfSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1146f34cbfSopenharmony_ci# See the License for the specific language governing permissions and
1246f34cbfSopenharmony_ci# limitations under the License.
1346f34cbfSopenharmony_ci
1446f34cbfSopenharmony_cideclare_args() {
1546f34cbfSopenharmony_ci  audio_framework_feature_double_pnp_detect = false
1646f34cbfSopenharmony_ci  audio_framework_feature_dtmf_tone = true
1746f34cbfSopenharmony_ci  audio_framework_feature_support_os_account = true
1846f34cbfSopenharmony_ci  audio_framework_feature_opensl_es = true
1946f34cbfSopenharmony_ci  sonic_enable = true
2046f34cbfSopenharmony_ci  speex_enable = false
2146f34cbfSopenharmony_ci  audio_framework_feature_daudio_enable = true
2246f34cbfSopenharmony_ci  audio_framework_feature_hitrace_enable = true
2346f34cbfSopenharmony_ci  audio_framework_config_policy_enable = true
2446f34cbfSopenharmony_ci  audio_framework_feature_input = true
2546f34cbfSopenharmony_ci  audio_framework_feature_power_manager = true
2646f34cbfSopenharmony_ci  audio_framework_feature_device_manager = true
2746f34cbfSopenharmony_ci  audio_framework_feature_hiview_enable = true
2846f34cbfSopenharmony_ci
2946f34cbfSopenharmony_ci  if (!defined(global_parts_info) ||
3046f34cbfSopenharmony_ci      defined(global_parts_info.hdf_drivers_interface_distributed_audio)) {
3146f34cbfSopenharmony_ci    audio_framework_feature_daudio_enable = true
3246f34cbfSopenharmony_ci  } else {
3346f34cbfSopenharmony_ci    audio_framework_feature_daudio_enable = false
3446f34cbfSopenharmony_ci  }
3546f34cbfSopenharmony_ci
3646f34cbfSopenharmony_ci  if (!defined(global_parts_info) ||
3746f34cbfSopenharmony_ci      defined(global_parts_info.hiviewdfx_hitrace)) {
3846f34cbfSopenharmony_ci    audio_framework_feature_hitrace_enable = true
3946f34cbfSopenharmony_ci  } else {
4046f34cbfSopenharmony_ci    audio_framework_feature_hitrace_enable = false
4146f34cbfSopenharmony_ci  }
4246f34cbfSopenharmony_ci
4346f34cbfSopenharmony_ci  if (!defined(global_parts_info) ||
4446f34cbfSopenharmony_ci      defined(global_parts_info.customization_config_policy)) {
4546f34cbfSopenharmony_ci    audio_framework_config_policy_enable = true
4646f34cbfSopenharmony_ci  } else {
4746f34cbfSopenharmony_ci    audio_framework_config_policy_enable = false
4846f34cbfSopenharmony_ci  }
4946f34cbfSopenharmony_ci
5046f34cbfSopenharmony_ci  if (!defined(global_parts_info) ||
5146f34cbfSopenharmony_ci      defined(global_parts_info.multimodalinput_input)) {
5246f34cbfSopenharmony_ci    audio_framework_feature_input = true
5346f34cbfSopenharmony_ci  } else {
5446f34cbfSopenharmony_ci    audio_framework_feature_input = false
5546f34cbfSopenharmony_ci  }
5646f34cbfSopenharmony_ci
5746f34cbfSopenharmony_ci  if (!defined(global_parts_info) ||
5846f34cbfSopenharmony_ci      defined(global_parts_info.powermgr_power_manager)) {
5946f34cbfSopenharmony_ci    audio_framework_feature_power_manager = true
6046f34cbfSopenharmony_ci  } else {
6146f34cbfSopenharmony_ci    audio_framework_feature_power_manager = false
6246f34cbfSopenharmony_ci  }
6346f34cbfSopenharmony_ci
6446f34cbfSopenharmony_ci  if (!defined(global_parts_info) ||
6546f34cbfSopenharmony_ci      defined(global_parts_info.distributedhardware_device_manager)) {
6646f34cbfSopenharmony_ci    audio_framework_feature_device_manager = true
6746f34cbfSopenharmony_ci  } else {
6846f34cbfSopenharmony_ci    audio_framework_feature_device_manager = false
6946f34cbfSopenharmony_ci  }
7046f34cbfSopenharmony_ci
7146f34cbfSopenharmony_ci  if (!defined(global_parts_info) ||
7246f34cbfSopenharmony_ci      defined(global_parts_info.hiviewdfx_hiview)) {
7346f34cbfSopenharmony_ci    audio_framework_feature_hiview_enable = true
7446f34cbfSopenharmony_ci  } else {
7546f34cbfSopenharmony_ci    audio_framework_feature_hiview_enable = false
7646f34cbfSopenharmony_ci  }
7746f34cbfSopenharmony_ci
7846f34cbfSopenharmony_ci  audio_framework_feature_new_napi = true
7946f34cbfSopenharmony_ci}
8046f34cbfSopenharmony_ci
8146f34cbfSopenharmony_cithird_party_path = "//third_party"
82