• 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_feature_hiview_enable = true
30  audio_framework_feature_offline_effect = true
31  audio_telephony_core_service_enable = true
32  audio_telephony_cellular_data_enable = true
33  audio_framework_feature_file_io = true
34  audio_framework_feature_inner_capturer = true
35  audio_framework_feature_low_latency = true
36  audio_framework_feature_usb_audio = false
37
38  if (defined(global_parts_info) &&
39      defined(global_parts_info.usb_usb_manager)) {
40    audio_framework_feature_usb_audio = true
41  }
42
43  if (!defined(global_parts_info) ||
44      defined(global_parts_info.hdf_drivers_interface_distributed_audio)) {
45    audio_framework_feature_distributed_audio = true
46  } else {
47    audio_framework_feature_distributed_audio = false
48  }
49
50  if (!defined(global_parts_info) ||
51      defined(global_parts_info.hiviewdfx_hitrace)) {
52    audio_framework_feature_hitrace_enable = true
53  } else {
54    audio_framework_feature_hitrace_enable = false
55  }
56
57  if (!defined(global_parts_info) ||
58      defined(global_parts_info.customization_config_policy)) {
59    audio_framework_config_policy_enable = true
60  } else {
61    audio_framework_config_policy_enable = false
62  }
63
64  if (!defined(global_parts_info) ||
65      defined(global_parts_info.multimodalinput_input)) {
66    audio_framework_feature_input = true
67  } else {
68    audio_framework_feature_input = false
69  }
70
71  if (!defined(global_parts_info) ||
72      defined(global_parts_info.powermgr_power_manager)) {
73    audio_framework_feature_power_manager = true
74  } else {
75    audio_framework_feature_power_manager = false
76  }
77
78  if (!defined(global_parts_info) ||
79      defined(global_parts_info.distributedhardware_device_manager)) {
80    audio_framework_feature_device_manager = true
81  } else {
82    audio_framework_feature_device_manager = false
83  }
84
85  if (!defined(global_parts_info) ||
86      defined(global_parts_info.hiviewdfx_hiview)) {
87    audio_framework_feature_hiview_enable = true
88  } else {
89    audio_framework_feature_hiview_enable = false
90  }
91
92  if (defined(global_parts_info) &&
93      !defined(global_parts_info.telephony_core_service)) {
94    audio_telephony_core_service_enable = false
95  }
96
97  if (defined(global_parts_info) &&
98      !defined(global_parts_info.telephony_cellular_data)) {
99    audio_telephony_cellular_data_enable = false
100  }
101
102  audio_framework_feature_new_napi = true
103}
104
105third_party_path = "//third_party"
106