This commit is contained in:
2026-02-20 12:18:52 +08:00
parent ab7ee978e7
commit c5d109e9be
18 changed files with 1444 additions and 567 deletions

View File

@@ -1,4 +1,50 @@
chcp 65001
@echo off
cmake -S . -B build_x64 -A x64 -DBUILD_EZUI=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