From 0818f5702c0dfcf24e95aa767b5a260321610e54 Mon Sep 17 00:00:00 2001 From: lipengfei Date: Fri, 10 Jan 2025 06:07:08 +0000 Subject: [PATCH] =?UTF-8?q?js=E6=97=A5=E5=BF=97=E6=B7=BB=E5=8A=A0feature?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lipengfei --- bundle.json | 3 ++- frameworks/js/BUILD.gn | 6 +++++- test/BUILD.gn | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/bundle.json b/bundle.json index 16b9262..70cd35f 100644 --- a/bundle.json +++ b/bundle.json @@ -39,7 +39,8 @@ "hilog_lite_apphilogcat_log_level_debug", "hilog_lite_enable_hilogcat_build", "hilog_lite_apphilogcat_log_dir", - "hilog_lite_disable_test" + "hilog_lite_disable_test", + "hilog_lite_disable_js_feature" ], "rom": "500KB", "ram": "~500KB", diff --git a/frameworks/js/BUILD.gn b/frameworks/js/BUILD.gn index 2787d53..5d86944 100644 --- a/frameworks/js/BUILD.gn +++ b/frameworks/js/BUILD.gn @@ -12,9 +12,13 @@ # limitations under the License. # +declare_args() { + hilog_lite_disable_js_feature = false +} + import("//build/lite/config/component/lite_component.gni") -if (ohos_kernel_type != "liteos_m") { +if (ohos_kernel_type != "liteos_m" && !hilog_lite_disable_js_feature) { lite_component("ace_hilog_kits") { features = [ "builtin:ace_kit_hilog" ] } diff --git a/test/BUILD.gn b/test/BUILD.gn index 86442f1..e3f4cb3 100644 --- a/test/BUILD.gn +++ b/test/BUILD.gn @@ -25,7 +25,8 @@ group("hilog_lite_test") { } } -if (ohos_build_type == "debug" && ohos_kernel_type != "liteos_m") { +if (ohos_build_type == "debug" && ohos_kernel_type != "liteos_m" && + !hilog_lite_disable_test) { unittest("lite_hilog_unittest") { output_extension = "bin" output_dir = "$root_out_dir/test/unittest/hilog_lite" -- Gitee