9 Star 2 Fork 1

方舟编译器孵化器/js2mpl

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
BUILD.gn 2.22 KB
一键复制 编辑 原始数据 按行查看 历史
Maple_YZhang 提交于 2021-02-06 20:05 . Updates the path for huawei_secure_c
if(GN_BUILD_TYPE =="DEBUG"){
cflags_c += [
"-DMIR_DEBUG=1",
]
cflags_cc += [
"-DMIR_DEBUG=1",
]
}
if(GN_BUILD_TYPE == "RELWITHDEBINFO"){
cflags_c += [
"-DDEBUG=0",
]
cflags_cc += [
"-DDEBUG=0",
]
}
MOZJS_ROOT = "${MAPLE_ROOT}/mozjs"
MOZJS_SOURCE_DIR = "${MOZJS_ROOT}/mozjs-31.2.0"
MOZJS_BUILD_DIR = "${MOZJS_ROOT}/mozjs-build"
MOZJS_INSTALL_DIR = "${MOZJS_BUILD_DIR}/dist"
executable("js2mpl"){
sources = [
"src/closure.cpp",
"src/compiler.cpp",
"src/eh.cpp",
"src/js2mpl.cpp",
"src/jsfunction.cpp",
"src/jsmirbuilder.cpp",
"src/operandstack.cpp",
"src/scope.cpp",
"src/util.cpp",
]
include_dirs = [
"${MAPLE_ROOT}/mapleall",
"${MOZJS_INSTALL_DIR}/include",
"${MOZJS_INSTALL_DIR}/system_wrappers",
"${MOZJS_SOURCE_DIR}",
"${MOZJS_SOURCE_DIR}/js/src",
"${MOZJS_SOURCE_DIR}/mfbt/double-conversion",
"${MOZJS_SOURCE_DIR}/intl/icu/source/common",
"${MOZJS_SOURCE_DIR}/intl/icu/source/i18n",
"${MOZJS_SOURCE_DIR}/js/public",
"${MAPLE_ROOT}/mapleall/maple_util/include",
"${MAPLE_ROOT}/mapleall/mempool/include",
"${MAPLE_ROOT}/huawei_secure_c/include",
]
deps = [
"${MAPLE_ROOT}/mapleall/maple_ir:libmplir",
"${MAPLE_ROOT}/mapleall/maple_util:libmplutil",
"${MAPLE_ROOT}/mapleall/mempool:libmempool",
"${MAPLE_ROOT}/huawei_secure_c:libHWSecureC",
]
cflags_cc +=[
"-DMIR_FEATURE_FULL=1",
"-std=c++11",
"-w",
"-include",
"${MOZJS_SOURCE_DIR}/config/gcc_hidden.h",
"-include",
"${MOZJS_BUILD_DIR}/js/src/js-confdefs.h"
]
libs = [
"${MOZJS_INSTALL_DIR}/lib/libjs_static.a",
]
ldflags = [
"-Wall",
"-m32",
"-DDYNAMICLANG",
"-DRC_NO_MMAP",
"-DMIR_FEATURE_FULL=1",
"-DMIR_DEX=0",
"-std=c++11",
"-w",
"-O3",
"-rdynamic",
"-L${MOZJS_INSTALL_DIR}/lib",
"-Wl,-rpath,${MOZJS_INSTALL_DIR}/lib",
"-ljs_static",
"-Wl,-z,relro",
"-Wl,-z,now",
"-Wl,-z,noexecstack",
"-fPIE",
]
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openarkcompiler-incubator/js2mpl.git
[email protected]:openarkcompiler-incubator/js2mpl.git
openarkcompiler-incubator
js2mpl
js2mpl
master

搜索帮助