代码拉取完成,页面将自动刷新
同步操作将从 OpenHarmony-SIG/arkcompiler_ets_runtime 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# 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 = [ "$ark_es2panda_root/aot:es2panda" ]
}
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" ]
# More precisely, this belongs to config("compiler") but it is not handled by
# plugins.gni yet (to handle such configs in a uniform way, we should also add
# empty configs to all other plugins). Alternatively, introduce a boolean
# variable similarly to enable_bytecode_optimizer, or do the other way around
# i.e. add config("bytecodeopt").
defines += [ "ARK_INTRINSIC_SET" ]
}
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_gen_dir",
]
configs = [
"$ark_es2panda_root:libes2panda_public_config",
"$ark_root/assembler:arkassembler_public_config",
"$ark_root/libpandafile:arkfile_public_config",
]
}
config("runtime_interpreter_impl") {
# Required, but empty: nothing to add currently
}
ark_asm_gen("ecmastdlib") {
input_file = "ecmastdlib/ecmastdlib.pa"
output_file = "$target_gen_dir/ecmastdlib.abc"
}
action("ecmastdlib_inline_h") {
script = "ecmastdlib/ecmastdlib_inline_gen.rb"
outputs = [ "$target_gen_dir/ecmastdlib_inline_gen.h" ]
stdlib = get_target_outputs(":ecmastdlib")
args = [
"-t",
rebase_path("ecmastdlib/ecmastdlib_inline_gen.h.erb", root_build_dir),
"-o",
rebase_path("$target_gen_dir/ecmastdlib_inline_gen.h"),
"-d",
rebase_path(stdlib[0], root_build_dir),
]
deps = [ ":ecmastdlib" ]
}
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/"
}
ark_gen("ecma_builtins_gen") {
data = "$ark_root/plugins/ecmascript/runtime/builtins/templates/builtins.yaml"
template_files = [
"builtins_declaration_gen.h.erb",
"builtins_ids_gen.inl.erb",
"builtins_initializers_gen.h.erb",
"builtins_resolve_inlinable_gen.inl.erb",
"builtins_inline_intrinsics_decls_gen.inl.erb",
"builtins_inline_intrinsics_gen.inl.erb",
]
sources = "$ark_root/plugins/ecmascript/runtime/builtins/templates"
destination = "$target_gen_dir/runtime/builtins/generated"
requires = [
"$ark_root/templates/common.rb",
"$ark_root/compiler/optimizer/templates/instructions.rb",
"$ark_root/runtime/templates/intrinsics.rb",
"$ark_root/plugins/ecmascript/runtime/builtins/templates/builtins.rb",
]
extra_dependencies = [ "$ark_root/runtime:arkruntime_gen_intrinsics_yaml" ]
extra_argv = [
rebase_path("$target_gen_dir/../../runtime/intrinsics.yaml",
root_build_dir),
rebase_path("$ark_root/compiler/optimizer/ir/instructions.yaml",
root_build_dir),
]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。