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 drivers_peripheral_audio_feature_hitrace_enable = 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_feature_hal_notsupport_pathselect = true 31 } else { 32 drivers_peripheral_audio_feature_hal_notsupport_pathselect = false 33 } 34 if (defined(enable_hdf_audio_full_test_suite)) { 35 drivers_peripheral_audio_feature_full_test_suite = true 36 } 37} 38 39#If set flag is false, the printf log will be built; if set flag is true, the hdf log version will be built. 40enable_audio_hal_hdf_log = true 41 42# testcase build switch 43#If flag is true, the ADM_SO version testcase will be built; if set flag is false, the other version will be built. 44enable_audio_adm_passthrough = false 45 46#If flag is true, the ADM_SERVICE version testcase will be built; if set flag is false, the other version will be built. 47enable_audio_adm_service = true 48 49#If all above flag is set to false, it will build failure.so forbid setting all above flag to false. 50enable_coverage = false 51 52enable_c_utils = true 53if (defined(global_parts_info) && 54 !defined(global_parts_info.commonlibrary_c_utils)) { 55 enable_c_utils = false 56} 57 58if (defined(global_parts_info) && 59 defined(global_parts_info.hiviewdfx_hicollie)) { 60 drivers_peripheral_audio_feature_hicollie_enable = true 61} 62 63if (defined(global_parts_info) && 64 defined(global_parts_info.hiviewdfx_hitrace)) { 65 drivers_peripheral_audio_feature_hitrace_enable = true 66} 67