代码拉取完成,页面将自动刷新
同步操作将从 方舟编译器/OpenArkCompiler 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#
# 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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。