• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_wired_audio = true
16  audio_framework_feature_double_pnp_detect = false
17  audio_framework_feature_dtmf_tone = true
18  audio_framework_feature_detect_soundbox = false
19  audio_framework_feature_support_os_account = true
20  audio_framework_feature_opensl_es = true
21  sonic_enable = true
22  speex_enable = false
23  audio_framework_feature_distributed_audio = true
24  audio_framework_feature_hitrace_enable = true
25  audio_framework_config_policy_enable = true
26  audio_framework_feature_input = true
27  audio_framework_feature_power_manager = true
28  audio_framework_feature_device_manager = true
29  audio_framework_enable_unittest_debug = false
30  audio_framework_feature_hiview_enable = true
31  audio_framework_feature_offline_effect = true
32  audio_telephony_core_service_enable = true
33  audio_telephony_cellular_data_enable = true
34  audio_framework_feature_file_io = true
35  audio_framework_feature_inner_capturer = true
36  audio_framework_feature_low_latency = true
37  audio_framework_feature_new_engine_flag = false
38  audio_framework_feature_usb_audio = false
39
40  if (defined(global_parts_info) &&
41      defined(global_parts_info.usb_usb_manager)) {
42    audio_framework_feature_usb_audio = true
43  }
44
45  if (!defined(global_parts_info) ||
46      defined(global_parts_info.hdf_drivers_interface_distributed_audio)) {
47    audio_framework_feature_distributed_audio = true
48  } else {
49    audio_framework_feature_distributed_audio = false
50  }
51
52  if (!defined(global_parts_info) ||
53      defined(global_parts_info.hiviewdfx_hitrace)) {
54    audio_framework_feature_hitrace_enable = true
55  } else {
56    audio_framework_feature_hitrace_enable = false
57  }
58
59  if (!defined(global_parts_info) ||
60      defined(global_parts_info.customization_config_policy)) {
61    audio_framework_config_policy_enable = true
62  } else {
63    audio_framework_config_policy_enable = false
64  }
65
66  if (!defined(global_parts_info) ||
67      defined(global_parts_info.multimodalinput_input)) {
68    audio_framework_feature_input = true
69  } else {
70    audio_framework_feature_input = false
71  }
72
73  if (!defined(global_parts_info) ||
74      defined(global_parts_info.powermgr_power_manager)) {
75    audio_framework_feature_power_manager = true
76  } else {
77    audio_framework_feature_power_manager = false
78  }
79
80  if (!defined(global_parts_info) ||
81      defined(global_parts_info.distributedhardware_device_manager)) {
82    audio_framework_feature_device_manager = true
83  } else {
84    audio_framework_feature_device_manager = false
85  }
86
87  if (!defined(global_parts_info) ||
88      defined(global_parts_info.hiviewdfx_hiview)) {
89    audio_framework_feature_hiview_enable = true
90  } else {
91    audio_framework_feature_hiview_enable = false
92  }
93
94  if (defined(global_parts_info) &&
95      !defined(global_parts_info.telephony_core_service)) {
96    audio_telephony_core_service_enable = false
97  }
98
99  if (defined(global_parts_info) &&
100      !defined(global_parts_info.telephony_cellular_data)) {
101    audio_telephony_cellular_data_enable = false
102  }
103
104  audio_framework_feature_new_napi = true
105}
106
107third_party_path = "//third_party"