代码拉取完成,页面将自动刷新
同步操作将从 方舟编译器孵化器/mapleall 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#
# Copyright (C) [2020] Futurewei Technologies, Inc. All rights reverved.
#
# Licensed under the Mulan Permissive Software License v2.
# You can use this software according to the terms and conditions of the MulanPSL - 2.0.
# You may obtain a copy of MulanPSL - 2.0 at:
#
# https://opensource.org/licenses/MulanPSL-2.0
#
# 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 MulanPSL - 2.0 for more details.
#
OUTPUT_DIR := ${MAPLE_ROOT}/out/${MAPLE_BUILD_TYPE}
OUTPUT_BIN_DIR := ${MAPLE_ROOT}/out/${MAPLE_BUILD_TYPE}/bin
BUILD_TYPE := RELEASE
HOST_ARCH := 64
MIR_JAVA := 1
GN := ${MAPLE_ROOT}/tools/gn/gn
NINJA := ${MAPLE_ROOT}/tools/ninja_1.9.0/ninja
USE_CLANG_OP := 1
HOST_ARCH_OP := 64
JAVA_OP := 1
USE_ZRT := 0
DEFERRAL_RC := OFF
STRICT_NAIVE_RC := OFF
RC_TESTING := OFF
USE_MALLOC :=
COV_CHECK := 0
ifeq ($(TARGET_PROCESSOR), arm64)
TARGET=aarch64
else
TARGET=ark
endif
ifeq ($(TARGET_SCOPE), release)
BUILD_TYPE_OP := RELEASE
else
BUILD_TYPE_OP := DEBUG
endif
GN_OPTIONS := \
GN_INSTALL_PREFIX="$(MAPLE_ROOT)" \
GN_BUILD_TYPE="$(BUILD_TYPE_OP)" \
USE_CLANG=$(USE_CLANG_OP) \
HOST_ARCH=$(HOST_ARCH_OP) \
JAVA=$(JAVA_OP) \
USE_ZRT=$(USE_ZRT) \
DEFERRAL_RC="$(DEFERRAL_RC)" \
STRICT_NAIVE_RC="$(STRICT_NAIVE_RC)" \
RC_TESTING="$(RC_TESTING)" \
USE_MALLOC="$(USE_MALLOC)" \
COV_CHECK=$(COV_CHECK) \
PLATFORM_SDK_VERSION=27 \
TARGET="$(TARGET)" \
X86=1
.PHONY: default
default: mapleall
.PHONY: mapleall
mapleall:
$(call build_gn, ${GN_OPTIONS}, irbuild maple)
.PHONY: install
install: mapleall
$(shell mkdir -p ${MAPLE_ROOT}/bin; \
rm -rf ${MAPLE_EXECUTE_BIN}; \
mkdir -p ${MAPLE_EXECUTE_BIN}; \
cp -p ${OUTPUT_BIN_DIR}/* ${MAPLE_EXECUTE_BIN})
.PHONY: clean
clean:
@rm -rf out/bin/${MAPLE_BUILD_TYPE} out/${MAPLE_BUILD_TYPE}
.PHONY: cleanall
cleanall:
@rm -rf out bin
.PHONY: clobber
clobber: cleanall
define build_gn
mkdir -p ${OUTPUT_DIR}; \
$(GN) gen ${OUTPUT_DIR} --args='$(1)' --export-compile-commands; \
cd ${OUTPUT_DIR}; \
$(NINJA) -v $(2);
endef
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。