更新:1、调整构建脚本,去除扫描模式配置项;
Signed-off-by: waiwaylee <waiwaylee@foxmail.com>
This commit is contained in:
Vendored
+16
-14
@@ -6,10 +6,10 @@ rem Usage:
|
||||
rem clean_all.bat
|
||||
rem
|
||||
rem Build layout (see config_paths.bat):
|
||||
rem build\<X256_PS^|X256_MS^>\<Debug^|Release^>\<REC_AUTO^|REC_OFF^|REC_ON^>
|
||||
rem build\<Debug^|Release^>\<REC_AUTO^|REC_OFF^|REC_ON^>
|
||||
rem
|
||||
rem A legacy single-configuration build tree (build\X256_PS or build\X256_MS
|
||||
rem containing CMakeCache.txt directly) is removed as a whole as well.
|
||||
rem The legacy per-scan-mode roots build\X256_PS and build\X256_MS (used before
|
||||
rem the mechanical/phase variants were merged) are removed as a whole as well.
|
||||
rem build\output (archived package export) is never touched.
|
||||
rem
|
||||
rem Encoding: keep this file ASCII-only (see msvc_env.bat).
|
||||
@@ -17,19 +17,21 @@ rem ===========================================================================
|
||||
setlocal EnableExtensions
|
||||
pushd "%~dp0..\.."
|
||||
set "FAILED="
|
||||
|
||||
rem legacy layout: one root per scan mode (contains its own build tree directly)
|
||||
for %%S in (X256_PS X256_MS) do (
|
||||
if exist "build\%%S\CMakeCache.txt" (
|
||||
call :remove "build\%%S"
|
||||
) else (
|
||||
for %%T in (Debug Release) do (
|
||||
for %%R in (REC_AUTO REC_OFF REC_ON) do (
|
||||
call :remove "build\%%S\%%T\%%R"
|
||||
)
|
||||
)
|
||||
rem drop the directory root when every configuration is gone
|
||||
rmdir "build\%%S" 2>nul
|
||||
)
|
||||
call :remove "build\%%S"
|
||||
)
|
||||
|
||||
rem current layout: build\<Debug|Release>\<REC_*>
|
||||
for %%T in (Debug Release) do (
|
||||
for %%R in (REC_AUTO REC_OFF REC_ON) do (
|
||||
call :remove "build\%%T\%%R"
|
||||
)
|
||||
rem drop the build type root when every configuration is gone
|
||||
rmdir "build\%%T" 2>nul
|
||||
)
|
||||
|
||||
echo.
|
||||
echo [clean_all] archived package export "build\output" left untouched
|
||||
if defined FAILED (
|
||||
|
||||
Reference in New Issue
Block a user