mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-11-23 10:09:54 +00:00
bdff67d2eb
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IAF9NS Signed-off-by: wu_zhang_da <wuzhangda@huawei.com> Change-Id: Iba857b46ba82e32d051e653410936d1cf1bdac40
103 lines
2.8 KiB
Plaintext
103 lines
2.8 KiB
Plaintext
# Copyright (c) 2024 Huawei Device Co., Ltd.
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
import("//arkcompiler/ets_runtime/js_runtime_config.gni")
|
|
import("//build/ohos.gni")
|
|
import("//build/ohos/sa_profile/sa_profile.gni")
|
|
|
|
declare_args() {
|
|
code_sign_enable = true
|
|
|
|
if (defined(global_parts_info) &&
|
|
!defined(global_parts_info.security_code_signature)) {
|
|
code_sign_enable = false
|
|
}
|
|
}
|
|
|
|
config("aot_compiler_service_config") {
|
|
visibility = [ ":*" ]
|
|
include_dirs = [
|
|
"include",
|
|
"interface",
|
|
]
|
|
}
|
|
|
|
ohos_shared_library("libcompiler_service") {
|
|
public_configs = [ ":aot_compiler_service_config" ]
|
|
configs = [ "$js_root:ark_jsruntime_public_config" ]
|
|
shlib_type = "sa"
|
|
version_script = "libaot_compiler_service.map"
|
|
sources = [
|
|
"${js_root}/ecmascript/log.cpp",
|
|
"interface/aot_compiler_interface_proxy.cpp",
|
|
"interface/aot_compiler_interface_stub.cpp",
|
|
"src/aot_compiler_client.cpp",
|
|
"src/aot_compiler_error_utils.cpp",
|
|
"src/aot_compiler_impl.cpp",
|
|
"src/aot_compiler_load_callback.cpp",
|
|
"src/aot_compiler_service.cpp",
|
|
"src/power_disconnected_listener.cpp",
|
|
"src/screen_status_listener.cpp",
|
|
"src/thermal_mgr_listener.cpp",
|
|
]
|
|
external_deps = [
|
|
"ability_base:want",
|
|
"access_token:libaccesstoken_sdk",
|
|
"access_token:libtokenid_sdk",
|
|
"c_utils:utils",
|
|
"common_event_service:cesfwk_innerkits",
|
|
"eventhandler:libeventhandler",
|
|
"hilog:libhilog",
|
|
"hisysevent:libhisysevent",
|
|
"hitrace:hitrace_meter",
|
|
"icu:shared_icui18n",
|
|
"icu:shared_icuuc",
|
|
"ipc:ipc_core",
|
|
"runtime_core:libarkfile_static",
|
|
"safwk:system_ability_fwk",
|
|
"samgr:samgr_proxy",
|
|
]
|
|
|
|
defines = []
|
|
if (code_sign_enable) {
|
|
external_deps += [ "code_signature:liblocal_code_sign_sdk" ]
|
|
defines += [ "CODE_SIGN_ENABLE" ]
|
|
}
|
|
|
|
install_enable = true
|
|
install_images = [ "system" ]
|
|
|
|
part_name = "ets_runtime"
|
|
subsystem_name = "arkcompiler"
|
|
}
|
|
|
|
ohos_prebuilt_etc("compiler_service_cfg") {
|
|
source = "compiler_service.cfg"
|
|
relative_install_dir = "init"
|
|
part_name = "ets_runtime"
|
|
subsystem_name = "arkcompiler"
|
|
}
|
|
|
|
ohos_sa_profile("compiler_sa_profile") {
|
|
sources = [ "sa_profile/5300.json" ]
|
|
part_name = "ets_runtime"
|
|
}
|
|
|
|
group("compiler_service") {
|
|
deps = [
|
|
":compiler_sa_profile",
|
|
":compiler_service_cfg",
|
|
":libcompiler_service",
|
|
]
|
|
}
|