Metrics
0
Watch 851 Star 4.7K Fork 782

GVPHarmonyOS / OpenArkCompilerC++

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
方舟编译器开源代码官方镜像仓库 spread retract

https://www.openarkcompiler.cn

Clone or download
Makefile 936 Bytes
Copy Edit Raw Blame History
#
# Makefile for OpenArkCompiler
#
INSTALL_DIR := ${MAPLE_ROOT}/out
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: mapleall
mapleall:
$(call build_gn, ${GN_OPTIONS}, maple)
.PHONY: install
install: mapleall
$(shell cp -rf $(MAPLE_ROOT)/src/bin/java2jar $(MAPLE_ROOT)/out/bin/)
$(shell cp -rf $(MAPLE_ROOT)/src/bin/jbc2mpl $(MAPLE_ROOT)/out/bin/)
$(shell cp -rf $(MAPLE_ROOT)/src/bin/mplcg $(MAPLE_ROOT)/out/bin/)
$(shell cp -rf $(MAPLE_ROOT)/out/bin/maple $(MAPLE_ROOT)/src/bin/)
.PHONY: clean
clean:
@rm -rf out/
define build_gn
mkdir -p ${INSTALL_DIR}; \
$(GN) gen ${INSTALL_DIR} --args='$(1)'; \
cd ${INSTALL_DIR}; \
$(NINJA) -v $(2);
endef

Comment ( 0 )

You need to Sign in for post a comment

C++
1
https://gitee.com/harmonyos/OpenArkCompiler.git
git@gitee.com:harmonyos/OpenArkCompiler.git

Help Search