1 Star 0 Fork 1.4K

VegetableAndChicken/OpenArkCompiler

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 1.93 KB
一键复制 编辑 原始数据 按行查看 历史
BinaryFZ 提交于 2020-08-01 09:38 . [FE] Add mplfe ut
#
# Makefile for OpenArkCompiler
#
# Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved.
#
# OpenArkCompiler is licensed under the Mulan PSL v1.
# You can use this software according to the terms and conditions of the Mulan PSL v1.
# You may obtain a copy of Mulan PSL v1 at:
#
# http://license.coscl.org.cn/MulanPSL
#
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR
# FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v1 for more details.
#
INSTALL_DIR := ${MAPLE_ROOT}/output
BUILD_TYPE := RELEASE
HOST_ARCH := 64
MIR_JAVA := 1
GN := ${MAPLE_ROOT}/tools/gn/gn
NINJA := ${MAPLE_ROOT}/tools/ninja_1.9.0/ninja
GN_OPTIONS := \
GN_INSTALL_PREFIX="$(MAPLE_ROOT)" \
GN_BUILD_TYPE="$(BUILD_TYPE)" \
HOST_ARCH=$(HOST_ARCH) \
MIR_JAVA=$(MIR_JAVA)
.PHONY: default
default: install
.PHONY: maplegen
maplegen:
$(call build_gn, ${GN_OPTIONS}, maplegen)
.PHONY: maplegendef
maplegendef: maplegen
$(call build_gn, ${GN_OPTIONS}, aarch64isa_headers maplegendef)
.PHONY: maple
maple: maplegendef
$(call build_gn, ${GN_OPTIONS}, maple)
.PHONY: irbuild
irbuild:
$(call build_gn, ${GN_OPTIONS}, irbuild)
.PHONY: ast2mpl
ast2mpl:
$(call build_gn, ${GN_OPTIONS}, ast2mpl)
.PHONY: mplfe
mplfe:
$(call build_gn, ${GN_OPTIONS}, mplfe)
.PHONY: mplfeUT
mplfeUT:
$(call build_gn, ${GN_OPTIONS} COV_CHECK=1, mplfeUT)
.PHONY: install
install: maple
$(shell mkdir -p $(MAPLE_ROOT)/output/ops/linker/; \
cp -rf $(MAPLE_ROOT)/build/maplelld.so.lds $(MAPLE_ROOT)/output/ops/linker/; \
cp -rf $(MAPLE_ROOT)/src/bin/java2jar $(MAPLE_ROOT)/output/bin/; \
cp -rf $(MAPLE_ROOT)/src/bin/jbc2mpl $(MAPLE_ROOT)/output/bin/)
.PHONY: clean
clean:
@rm -rf output/
define build_gn
mkdir -p ${INSTALL_DIR}; \
$(GN) gen ${INSTALL_DIR} --args='$(1)' --export-compile-commands; \
cd ${INSTALL_DIR}; \
$(NINJA) -v $(2);
endef
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/vegetableandchicken/OpenArkCompiler.git
git@gitee.com:vegetableandchicken/OpenArkCompiler.git
vegetableandchicken
OpenArkCompiler
OpenArkCompiler
master

搜索帮助