3 Star 4 Fork 0

fibjs / fibjs_vender

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.cmd 1.57 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
set ARG_ERROR=no
for %%a in (%*) do (
set ARG_ERROR=yes
if "%%a"=="amd64" (
set BUILD_ARCH=amd64
set ARG_ERROR=no
)
if "%%a"=="i386" (
set BUILD_ARCH=i386
set ARG_ERROR=no
)
if "%%a"=="release" (
set BUILD_TYPE=release
set ARG_ERROR=no
)
if "%%a"=="debug" (
set BUILD_TYPE=debug
set ARG_ERROR=no
)
if "%%a"=="--use-clang" (
set BUILD_USE_CLANG=true
set ARG_ERROR=no
)
if "%%a"=="clean" (
set CLEAN_BUILD=true
set ARG_ERROR=no
)
if "%%a"=="-h" goto usage
if "%%a"=="--help" goto usage
if "!ARG_ERROR!"=="yes" (
echo illegal option "%%a"
goto usage
)
)
cmake -DBUILD_ARCH=%BUILD_ARCH% -DBUILD_TYPE=%BUILD_TYPE% -DBUILD_JOBS=%BUILD_JOBS% -DCLEAN_BUILD=%CLEAN_BUILD% -DBUILD_USE_CLANG=%BUILD_USE_CLANG% -P build.cmake
goto finished
:usage
echo.
echo Usage: `basename $0` [options] [-jn] [-v] [-h]
echo Options:
echo release, debug:
echo Specifies the build type.
echo i386, amd64, arm, arm64, mips, mips64, ppc, ppc64:
echo Specifies the architecture for code generation.
echo clean:
echo Clean the build folder.
echo ci:
echo Specifies the environment is CI.
echo -h, --help:
echo Print this message and exit.
echo -j: enable make '-j' option.
echo if 'n' is not given, will set jobs to auto detected core count, otherwise n is used.
echo --use-clang:
echo Force use clang on Windows.
echo.
exit /B 1
:finished
JavaScript
1
https://gitee.com/fibjs/fibjs_vender.git
git@gitee.com:fibjs/fibjs_vender.git
fibjs
fibjs_vender
fibjs_vender
master

搜索帮助

14c37bed 8189591 565d56ea 8189591