add js feature

Signed-off-by: lipengfei <lipengfei53@huawei.com>
This commit is contained in:
lipengfei
2025-01-10 07:28:59 +00:00
committed by Gitee
parent 93ea6f956b
commit 3f9ee47c09
3 changed files with 9 additions and 3 deletions
+2 -1
View File
@@ -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",
+5 -1
View File
@@ -14,7 +14,11 @@
import("//build/lite/config/component/lite_component.gni")
if (ohos_kernel_type != "liteos_m") {
declare_args() {
hilog_lite_disable_js_feature = false
}
if (ohos_kernel_type != "liteos_m" && !hilog_lite_disable_js_feature) {
lite_component("ace_hilog_kits") {
features = [ "builtin:ace_kit_hilog" ]
}
+2 -1
View File
@@ -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"