From 9ade7de113017122e127ae7729161a9682124678 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AD=A6=E6=B5=B7?= Date: Wed, 3 Jul 2024 02:17:28 +0000 Subject: [PATCH] update BUILD.gn. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 许学海 --- BUILD.gn | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index aaf8586e..e8d530a3 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -12,6 +12,7 @@ # limitations under the License. import("//build/ohos.gni") +import("//drivers/peripheral/audio/audio.gni") config("alsa_lib_config") { cflags = [ @@ -166,10 +167,12 @@ ohos_shared_library("libasound") { ] configs = [ ":alsa_lib_config" ] - deps = [ - # conf files - "src/conf:alsa-lib-prebuilt-all", - ] + if (drivers_peripheral_audio_feature_alsa_lib) { + deps = [ + # conf files + "src/conf:alsa-lib-prebuilt-all", + ] + } output_extension = "so" install_images = [ chipset_base_dir ] install_enable = true -- Gitee