mirror of
https://gitee.com/openharmony/arkcompiler_runtime_core
synced 2024-10-07 05:43:39 +00:00
08bb4e43f2
Issue: I9PR6Y Tests: build target & UT & standalone build Signed-off-by: chenlong <chenlong292@h-partners.com> Change-Id: I33183f6d64023ee8ce089e4f2a69118802acfebc
85 lines
1.9 KiB
Plaintext
Executable File
85 lines
1.9 KiB
Plaintext
Executable File
# Copyright (c) 2023 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/runtime_core/ark_config.gni")
|
|
|
|
arkverifier_sources = [
|
|
"main.cpp",
|
|
"verifier.cpp",
|
|
"verify.cpp",
|
|
]
|
|
|
|
config("arkverifier_public_config") {
|
|
include_dirs = [ "$ark_root/verifier" ]
|
|
}
|
|
|
|
arkverifier_configs = [
|
|
"$ark_root:ark_config",
|
|
"$ark_root/libpandafile:arkfile_public_config",
|
|
":arkverifier_public_config",
|
|
]
|
|
|
|
ohos_executable("ark_verifier") {
|
|
sources = arkverifier_sources
|
|
|
|
deps = [ "$ark_root/libpandafile:libarkfile_static_verifier" ]
|
|
external_deps = [
|
|
"zlib:libz",
|
|
sdk_libc_secshared_dep,
|
|
]
|
|
|
|
if (enable_hilog) {
|
|
external_deps += [ "hilog:libhilog" ]
|
|
}
|
|
|
|
configs = arkverifier_configs
|
|
|
|
public_configs = [ ":arkverifier_public_config" ]
|
|
|
|
install_enable = true
|
|
part_name = "runtime_core"
|
|
subsystem_name = "arkcompiler"
|
|
}
|
|
|
|
libarkverifier_sources = [
|
|
"verifier.cpp",
|
|
"verify.cpp",
|
|
]
|
|
|
|
ohos_shared_library("libarkverifier") {
|
|
sources = libarkverifier_sources
|
|
|
|
deps = [ "$ark_root/libpandafile:libarkfile_static_verifier" ]
|
|
external_deps = [
|
|
"zlib:libz",
|
|
sdk_libc_secshared_dep,
|
|
]
|
|
if (enable_hilog) {
|
|
external_deps += [ "hilog:libhilog" ]
|
|
}
|
|
|
|
configs = arkverifier_configs
|
|
|
|
public_configs = [ ":arkverifier_public_config" ]
|
|
|
|
if (!is_standard_system) {
|
|
relative_install_dir = "ark"
|
|
}
|
|
|
|
output_extension = "so"
|
|
|
|
install_enable = true
|
|
part_name = "runtime_core"
|
|
subsystem_name = "arkcompiler"
|
|
}
|