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 = true 24 drivers_peripheral_audio_feature_hitrace_enable = true 25 drivers_peripheral_audio_feature_hisysevent_enable = true 26 drivers_peripheral_audio_feature_frame_ec = false 27} 28 29if (defined(ohos_lite)) { 30 if (defined(enable_audio_hal_notsupport_pathselect) && 31 enable_audio_hal_notsupport_pathselect == true) { 32 drivers_peripheral_audio_feature_hal_notsupport_pathselect = true 33 } else { 34 drivers_peripheral_audio_feature_hal_notsupport_pathselect = false 35 } 36 if (defined(enable_hdf_audio_full_test_suite)) { 37 drivers_peripheral_audio_feature_full_test_suite = true 38 } 39} 40 41#If set flag is false, the printf log will be built; if set flag is true, the hdf log version will be built. 42enable_audio_hal_hdf_log = true 43 44# testcase build switch 45#If flag is true, the ADM_SO version testcase will be built; if set flag is false, the other version will be built. 46enable_audio_adm_passthrough = false 47 48#If flag is true, the ADM_SERVICE version testcase will be built; if set flag is false, the other version will be built. 49enable_audio_adm_service = true 50 51#If all above flag is set to false, it will build failure.so forbid setting all above flag to false. 52enable_coverage = false 53 54enable_c_utils = true 55if (defined(global_parts_info) && 56 !defined(global_parts_info.commonlibrary_c_utils)) { 57 enable_c_utils = false 58} 59