1 Star 0 Fork 101

xiaoweidong / arkcompiler_ets_runtime

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.91 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")
# 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)
if(PANDA_WITH_TOOLCHAIN)
add_subdirectory(assembler)
add_subdirectory(isa)
add_subdirectory(irtoc_scripts)
add_subdirectory(es2panda)
add_dependencies(panda_bins es2panda)
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)
1
https://gitee.com/xiaoweidng/arkcompiler_ets_runtime.git
git@gitee.com:xiaoweidng/arkcompiler_ets_runtime.git
xiaoweidng
arkcompiler_ets_runtime
arkcompiler_ets_runtime
master

搜索帮助