1 Star 0 Fork 100

Mikhail Aksenov/arkcompiler_ets_runtime

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
BUILD.gn 3.29 KB
一键复制 编辑 原始数据 按行查看 历史
ragnvald 提交于 2022-07-06 09:15 . Opensourcing arkcompiler_ets_runtime
# Copyright (c) 2021-2022 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("//ark/runtime_core/ark_config.gni")
import("//build/ohos.gni")
group("ark_packages") {
deps = []
}
group("ark_host_linux_tools_packages") {
}
group("ark_host_windows_tools_packages") {
}
group("ark_host_mac_tools_packages") {
}
config("ark_config") {
defines = [ "PANDA_WITH_ECMASCRIPT" ]
}
config("assembler") {
include_dirs = [
"$ark_root/plugins/ecmascript/assembler/extension",
"$target_gen_dir",
]
}
group("assembler_deps") {
deps = [ ":ark_asm_ecmascript_meta_gen_h" ]
}
ark_gen_file("ark_asm_ecmascript_meta_gen_h") {
template_file = "$ark_root/assembler/templates/meta_gen.cpp.erb"
data_file = "$ark_root/plugins/ecmascript/assembler/extension/metadata.yaml"
requires = [ "$ark_root/assembler/asm_metadata.rb" ]
output_file = "$target_gen_dir/ecmascript_meta_gen.h"
}
config("runtime") {
include_dirs = [
"$ark_root/plugins/ecmascript/runtime/",
"$target_gen_dir",
"$ark_root/ark-third-party/icu/icu4c/source/common",
"$ark_root/ark-third-party/icu/icu4c/source/i18n",
"$ark_root/ark-third-party/icu/icu4c/source/",
]
}
config("runtime_interpreter_impl") {
include_dirs = [
"$ark_root/ark-third-party/icu/icu4c/source/common",
"$ark_root/ark-third-party/icu/icu4c/source/i18n",
"$ark_root/ark-third-party/icu/icu4c/source/",
]
}
# Empty inlined ecmastblib.
action("ecmastblib_inline_h") {
script = "ecmastdlib/ecmastdlib_inline_gen.rb"
outputs = [ "$target_gen_dir/ecmastdlib_inline_gen.h" ]
args = [
"-t",
rebase_path("ecmastdlib/ecmastdlib_inline_gen.h.erb", root_build_dir),
"-o",
rebase_path("$target_gen_dir/ecmastdlib_inline_gen.h"),
]
}
ark_gen_file("ecma_intrinsics_gen_arkruntime") {
template_file =
"$ark_root/plugins/ecmascript/runtime/templates/intrinsics_gen.cpp.erb"
data_file = "$ark_root/plugins/ecmascript/runtime/ecma_runtime.yaml"
requires = [
"$ark_root/runtime/templates/intrinsics.rb",
"$ark_root/runtime/templates/runtime.rb",
]
output_file = "$target_gen_dir/intrinsics_gen.cpp"
}
config("bytecodeopt") {
include_dirs = [
"$ark_root/plugins/ecmascript/bytecode_optimizer/",
"$target_gen_dir",
]
}
ark_isa_gen("isa_gen_ecma_bytecodeopt") {
template_files = [
"ecmascript_codegen_intrinsics_gen.inc.erb",
]
sources = "$ark_root/plugins/ecmascript/bytecode_optimizer/templates/"
destination = "$target_gen_dir/"
requires = [ "$ark_root//assembler/asm_isapi.rb" ]
}
config("compiler") {
include_dirs = [
"$ark_root/plugins/ecmascript/compiler/",
"$target_gen_dir",
]
}
ark_isa_gen("isa_gen_ecma_compiler") {
template_files = [
"ecmascript_inst_builder_gen.cpp.erb",
]
sources = "$ark_root/plugins/ecmascript/compiler/templates/"
destination = "$target_gen_dir/"
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/maksenov/arkcompiler_ets_runtime.git
git@gitee.com:maksenov/arkcompiler_ets_runtime.git
maksenov
arkcompiler_ets_runtime
arkcompiler_ets_runtime
master

搜索帮助