1# Copyright (c) Huawei Technologies Co., Ltd. 2021. All rights reserved.
2if (defined(ohos_lite)) {
3  import("//build/lite/config/component/lite_component.gni")
4  import("${ohos_product_adapter_dir}/audio/product.gni")
5} else {
6  import("//build/ohos.gni")
7}
8
9declare_args() {
10  drivers_peripheral_audio_feature_mono_to_stereo = false
11  drivers_peripheral_audio_feature_hal_notsupport_pathselect = false
12  drivers_peripheral_audio_feature_hdf_proxy_stub = true
13  drivers_peripheral_audio_feature_user_mode = false
14  drivers_peripheral_audio_feature_full_test_suite = false
15  drivers_peripheral_audio_feature_policy_config = true
16  drivers_peripheral_audio_feature_alsa_lib = false
17  drivers_peripheral_audio_feature_rich_device = false
18  drivers_peripheral_audio_feature_community = true
19  drivers_peripheral_audio_feature_effect = false
20  drivers_peripheral_audio_feature_double_pnp_detect = false
21  drivers_peripheral_audio_feature_offload = false
22  drivers_peripheral_audio_feature_multichannel = false
23  drivers_peripheral_audio_feature_hicollie_enable = false
24}
25
26if (defined(ohos_lite)) {
27  if (defined(enable_audio_hal_notsupport_pathselect) &&
28      enable_audio_hal_notsupport_pathselect == true) {
29    drivers_peripheral_audio_feature_hal_notsupport_pathselect = true
30  } else {
31    drivers_peripheral_audio_feature_hal_notsupport_pathselect = false
32  }
33  if (defined(enable_hdf_audio_full_test_suite)) {
34    drivers_peripheral_audio_feature_full_test_suite = true
35  }
36}
37
38#If set flag is false, the printf log will be built; if set flag is true, the hdf log version will be built.
39enable_audio_hal_hdf_log = true
40
41# testcase build switch
42#If flag is true, the ADM_SO version testcase will be built; if set flag is false, the other version will be built.
43enable_audio_adm_passthrough = false
44
45#If flag is true, the ADM_SERVICE version testcase will be built; if set flag is false, the other version will be built.
46enable_audio_adm_service = true
47
48#If all above flag is set to false, it will build failure.so forbid setting all above flag to false.
49enable_coverage = false
50
51enable_c_utils = true
52if (defined(global_parts_info) &&
53    !defined(global_parts_info.commonlibrary_c_utils)) {
54  enable_c_utils = false
55}
56
57if (defined(global_parts_info) &&
58    defined(global_parts_info.hiviewdfx_hicollie)) {
59  drivers_peripheral_audio_feature_hicollie_enable = true
60}
61