Add a default list to enable the list to be used only on mobile phones

Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9TDJJ

Signed-off-by: h30044958 <herongpeng@huawei.com>
Change-Id: I47e7a099ec180a3972ff509cf3587c33d6eeee66
This commit is contained in:
h30044958 2024-05-30 11:26:49 +08:00
parent 57938acb7e
commit 0865098bcc
5 changed files with 25 additions and 3 deletions

View File

@ -1302,7 +1302,11 @@ ohos_shared_library("libark_jsruntime_test") {
ohos_prebuilt_etc("app_aot_enable_list") { ohos_prebuilt_etc("app_aot_enable_list") {
relative_install_dir = "ark" relative_install_dir = "ark"
source = "$js_root/ecmascript/ohos/app_aot_enable_list.conf" if (js_runtime_feature_enable_list) {
source = "$js_root/ecmascript/ohos/app_aot_enable_list.conf"
} else {
source = "$js_root/ecmascript/ohos/app_aot_enable_list_default.conf"
}
# Set the subsystem name # Set the subsystem name
part_name = "ets_runtime" part_name = "ets_runtime"
@ -1311,7 +1315,11 @@ ohos_prebuilt_etc("app_aot_enable_list") {
ohos_prebuilt_etc("app_aot_disable_list") { ohos_prebuilt_etc("app_aot_disable_list") {
relative_install_dir = "ark" relative_install_dir = "ark"
source = "$js_root/ecmascript/ohos/app_aot_disable_list.conf" if (js_runtime_feature_enable_list) {
source = "$js_root/ecmascript/ohos/app_aot_disable_list.conf"
} else {
source = "$js_root/ecmascript/ohos/app_aot_disable_list_default.conf"
}
# Set the subsystem name # Set the subsystem name
part_name = "ets_runtime" part_name = "ets_runtime"
@ -1320,7 +1328,11 @@ ohos_prebuilt_etc("app_aot_disable_list") {
ohos_prebuilt_etc("app_jit_enable_list") { ohos_prebuilt_etc("app_jit_enable_list") {
relative_install_dir = "ark" relative_install_dir = "ark"
source = "$js_root/ecmascript/ohos/app_jit_enable_list.conf" if (js_runtime_feature_enable_list) {
source = "$js_root/ecmascript/ohos/app_jit_enable_list.conf"
} else {
source = "$js_root/ecmascript/ohos/app_jit_enable_list_default.conf"
}
# Set the subsystem name # Set the subsystem name
part_name = "ets_runtime" part_name = "ets_runtime"

View File

@ -0,0 +1,2 @@
# Apps in this configuration file can be compiled by aot compiler, disable list can be written as below:
# {bundleName}

View File

@ -0,0 +1,2 @@
# Apps in this configuration file can be compiled by aot compiler, enable list can be written as below:
# {bundleName}

View File

@ -0,0 +1,2 @@
# Apps in this configuration file can be compiled by jit compiler, enable list can be written as below:
# {bundleName}

View File

@ -32,6 +32,10 @@ declare_args() {
TARGET = "x86_64" TARGET = "x86_64"
HOST_ARCH = 64 HOST_ARCH = 64
# If true app_aot_disable_list, app_aot_disable_list, app_jit_enable_list will be placed in /etc/ark
# Default false.
js_runtime_feature_enable_list = false
} }
if (target_cpu == "arm64") { if (target_cpu == "arm64") {