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