• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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}
21
22if (defined(ohos_lite)) {
23  if (defined(enable_audio_hal_notsupport_pathselect) &&
24      enable_audio_hal_notsupport_pathselect == true) {
25    drivers_peripheral_audio_feature_hal_notsupport_pathselect = true
26  } else {
27    drivers_peripheral_audio_feature_hal_notsupport_pathselect = false
28  }
29  if (defined(enable_hdf_audio_full_test_suite)) {
30    drivers_peripheral_audio_feature_full_test_suite = true
31  }
32}
33
34#If set flag is false, the printf log will be built; if set flag is true, the hdf log version will be built.
35enable_audio_hal_hdf_log = true
36
37# testcase build switch
38#If flag is true, the ADM_SO version testcase will be built; if set flag is false, the other version will be built.
39enable_audio_adm_passthrough = false
40
41#If flag is true, the ADM_SERVICE version testcase will be built; if set flag is false, the other version will be built.
42enable_audio_adm_service = true
43
44#If all above flag is set to false, it will build failure.so forbid setting all above flag to false.
45enable_coverage = false
46