代码拉取完成,页面将自动刷新
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",
]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。