51 lines
1.1 KiB
Batchfile
51 lines
1.1 KiB
Batchfile
@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 x64
|
|
echo ======================================
|
|
echo.
|
|
|
|
echo [1/3] Configuring x64...
|
|
"%CMAKE_EXE%" -S . -B build_x64 -A x64
|
|
if %errorlevel% neq 0 goto error
|
|
|
|
echo [2/3] Building x64 Debug...
|
|
"%CMAKE_EXE%" --build build_x64 --config Debug --target EzUI
|
|
if %errorlevel% neq 0 goto error
|
|
|
|
echo [3/3] Building x64 Release...
|
|
"%CMAKE_EXE%" --build build_x64 --config Release --target EzUI
|
|
if %errorlevel% neq 0 goto error
|
|
|
|
echo.
|
|
echo ======================================
|
|
echo x64 build completed!
|
|
echo Output:
|
|
echo lib\EzUI_Debug_x64.lib
|
|
echo lib\EzUI_Release_x64.lib
|
|
echo ======================================
|
|
pause
|
|
exit /b 0
|
|
|
|
:error
|
|
echo.
|
|
echo ======================================
|
|
echo Build failed!
|
|
echo ======================================
|
|
pause
|
|
exit /b 1
|