diff --git a/bundle.json b/bundle.json index 16b9262b1f724b44a827cd51d2d3b245b39a2598..70cd35ff18e151c566b764f28e6dcba862b76f48 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 2787d53f2f9c21c93accee07f3ab4a423e6e4286..5d8694408d9fc4b9719e71b7f26f7107515e11d4 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 86442f1220e8929b705257bb1fc404d9f0255c05..e3f4cb369de5090d2766bb542e56ab1fcae36bbd 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"