3 Star 0 Fork 100

Redkin_Mikhail/arkcompiler_ets_runtime_old

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 2.52 KB
一键复制 编辑 原始数据 按行查看 历史
# 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.
cmake_minimum_required(VERSION 3.5.2 FATAL_ERROR)
project(plugin_ecmascript)
message(STATUS "ecmascript plugin is found")
add_definitions(-DENABLE_BYTECODE_OPT)
add_definitions(-DARK_INTRINSIC_SET)
panda_target_compile_definitions(arkcompiler PUBLIC -DENABLE_BYTECODE_OPT -DARK_INTRINSIC_SET)
panda_target_compile_definitions(arkbytecodeopt PUBLIC -DENABLE_BYTECODE_OPT -DARK_INTRINSIC_SET)
add_custom_target(ecmascript_tests COMMENT "Running ecmascript test suites")
if(TARGET es2panda_tests)
add_dependencies(ecmascript_tests es2panda_tests)
endif()
# NB! ADDING THIS PROPERTY IS ALLOWED ONLY IN SPECIAL CASES. DO NOT COPY-PASTE IT.
set_target_properties(ecmascript_tests PROPERTIES first-level-tests-dependency TRUE)
add_dependencies(tests ecmascript_tests)
# List for accumulation of all ecmascript gtests binary paths.
# It's used by CI to archive these binaries into a single artifact
# and send it to second stage where unit tests will use them.
set_property(GLOBAL PROPERTY ecmascript_stash_list "")
if(PANDA_WITH_TOOLCHAIN)
add_subdirectory(assembler)
add_subdirectory(isa)
add_subdirectory(irtoc_scripts)
endif()
add_subdirectory(bytecode_optimizer)
if(PANDA_WITH_COMPILER)
add_subdirectory(compiler)
endif()
if(PANDA_WITH_RUNTIME)
add_subdirectory(ecmastdlib)
add_subdirectory(runtime)
endif()
if(PANDA_WITH_TESTS)
add_subdirectory(tests)
endif()
add_plugin_options(${CMAKE_CURRENT_SOURCE_DIR}/ecmascript_plugin_options.yaml)
add_runtime_options(${CMAKE_CURRENT_SOURCE_DIR}/runtime_options.yaml)
add_entrypoints_yaml(${CMAKE_CURRENT_SOURCE_DIR}/runtime/ecma_entrypoints.yaml)
# ----- Collecting ecmascript gtests paths for CI stash ---------------------------------
# NB! This must be the last section!
# Write to a file the list of all binaries
get_property(stash_files GLOBAL PROPERTY ecmascript_stash_list)
list(JOIN stash_files "\n" file_content)
file(WRITE ${PANDA_BINARY_ROOT}/ecmascript_stash_files.txt "${file_content}\n")
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mredkin/arkcompiler_ets_runtime.git
git@gitee.com:mredkin/arkcompiler_ets_runtime.git
mredkin
arkcompiler_ets_runtime
arkcompiler_ets_runtime_old
master

搜索帮助