26-2-20 源码备份
This commit is contained in:
@@ -1,50 +0,0 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
set "CMAKE_EXE="
|
||||
where cmake >nul 2>&1
|
||||
if %errorlevel% equ 0 (
|
||||
set "CMAKE_EXE=cmake"
|
||||
) else if exist "C:\Program Files\CMake\bin\cmake.exe" (
|
||||
set "CMAKE_EXE=C:\Program Files\CMake\bin\cmake.exe"
|
||||
) else (
|
||||
echo Error: CMake not found!
|
||||
echo Please install CMake or add it to PATH.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo ======================================
|
||||
echo Building EzUI x86
|
||||
echo ======================================
|
||||
echo.
|
||||
|
||||
echo [1/3] Configuring x86...
|
||||
"%CMAKE_EXE%" -S . -B build_x86 -A Win32
|
||||
if %errorlevel% neq 0 goto error
|
||||
|
||||
echo [2/3] Building x86 Debug...
|
||||
"%CMAKE_EXE%" --build build_x86 --config Debug --target EzUI
|
||||
if %errorlevel% neq 0 goto error
|
||||
|
||||
echo [3/3] Building x86 Release...
|
||||
"%CMAKE_EXE%" --build build_x86 --config Release --target EzUI
|
||||
if %errorlevel% neq 0 goto error
|
||||
|
||||
echo.
|
||||
echo ======================================
|
||||
echo x86 build completed!
|
||||
echo Output:
|
||||
echo lib\EzUI_Debug_Win32.lib
|
||||
echo lib\EzUI_Release_Win32.lib
|
||||
echo ======================================
|
||||
pause
|
||||
exit /b 0
|
||||
|
||||
:error
|
||||
echo.
|
||||
echo ======================================
|
||||
echo Build failed!
|
||||
echo ======================================
|
||||
pause
|
||||
exit /b 1
|
||||
Reference in New Issue
Block a user