• 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  if (product_name == "ohos-arm64") {
8    enable_audio_hal_notsupport_pathselect = false
9  }
10}
11
12declare_args() {
13  drivers_peripheral_audio_feature_mono_to_stereo = false
14  drivers_peripheral_audio_hal_notsupport_pathselect = false
15  drivers_peripheral_audio_hdf_proxy_stub = true
16  drivers_peripheral_audio_user_mode = false
17  drivers_peripheral_audio_full_test_suite = false
18  drivers_peripheral_audio_policy_config = true
19  drivers_peripheral_audio_alsa_lib = false
20  drivers_peripheral_audio_rich_device = false
21}
22
23if (product_name == "ohos-arm64") {
24  drivers_peripheral_audio_hal_notsupport_pathselect = false
25}
26
27if (defined(ohos_lite)) {
28  if (defined(enable_audio_hal_notsupport_pathselect) &&
29      enable_audio_hal_notsupport_pathselect == true) {
30    drivers_peripheral_audio_hal_notsupport_pathselect = true
31  } else {
32    drivers_peripheral_audio_hal_notsupport_pathselect = false
33  }
34  if (defined(enable_audio_policy_config) &&
35      enable_audio_policy_config == true) {
36    drivers_peripheral_audio_policy_config = true
37  } else {
38    drivers_peripheral_audio_policy_config = false
39  }
40  if (defined(enable_hdf_audio_full_test_suite)) {
41    drivers_peripheral_audio_full_test_suite = true
42  }
43}
44
45#If set flag is false, the printf log will be built; if set flag is true, the hdf log version will be built.
46enable_audio_hal_hdf_log = true
47
48# testcase build switch
49#If flag is true, the ADM_SO version testcase will be built; if set flag is false, the other version will be built.
50enable_audio_adm_passthrough = false
51
52#If flag is true, the ADM_SERVICE version testcase will be built; if set flag is false, the other version will be built.
53enable_audio_adm_service = true
54
55#If all above flag is set to false, it will build failure.so forbid setting all above flag to false.
56enable_coverage = false
57