From 90d39a9ed27ab35ba58188e395131681f70736b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AD=A6=E6=B5=B7?= Date: Mon, 17 Mar 2025 09:32:36 +0000 Subject: [PATCH 1/3] update BUILD.gn. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 许学海 --- BUILD.gn | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 23a8e720..5421339b 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -13,6 +13,10 @@ import("//build/ohos.gni") +declare_args() { + alsa_lib_feature_config_enable = false +} + config("alsa_lib_header") { include_dirs = [ "//third_party/alsa-lib/include", @@ -183,10 +187,13 @@ ohos_shared_library("libasound") { ] configs = [ ":alsa_lib_config" ] - deps = [ - # conf files - "src/conf:alsa-lib-prebuilt-all", - ] + if (alsa_lib_feature_config_enable) { + deps = [ + # conf files + "src/conf:alsa-lib-prebuilt-all", + ] + } + public_configs = [ ":alsa_lib_header" ] output_extension = "so" install_images = [ chipset_base_dir ] -- Gitee From 434aead024da8010647605031be98572c8ebeeea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AD=A6=E6=B5=B7?= Date: Mon, 17 Mar 2025 09:33:14 +0000 Subject: [PATCH 2/3] update bundle.json. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 许学海 --- bundle.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundle.json b/bundle.json index 1db6e75d..46400659 100644 --- a/bundle.json +++ b/bundle.json @@ -18,7 +18,7 @@ "name": "alsa-lib", "subsystem": "thirdparty", "syscap": [], - "features": [], + "features": [ "alsa_lib_feature_config_enable" ], "adapted_system_type": [ "standard" ], "rom": "950KB", "ram": "988KB", -- Gitee From 5833441bd91fdf730b6ef5e600737f3ae5c1a1b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AD=A6=E6=B5=B7?= Date: Mon, 17 Mar 2025 09:56:22 +0000 Subject: [PATCH 3/3] update BUILD.gn. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 许学海 --- BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index 5421339b..3ce65150 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -14,7 +14,7 @@ import("//build/ohos.gni") declare_args() { - alsa_lib_feature_config_enable = false + alsa_lib_feature_config_enable = false } config("alsa_lib_header") { -- Gitee