Files
ThordekkCore/configure_relwithdebinfo.bat
T

67 lines
1.7 KiB
Batchfile
Raw Normal View History

2026-01-20 21:27:50 -03:00
@echo off
REM TrinityCore CMake Configuration - RelWithDebInfo Build
REM This script configures the build directory for RelWithDebInfo compilation
REM (Optimized release build with debug symbols)
echo ========================================
echo TrinityCore RelWithDebInfo Configuration
echo ========================================
echo.
REM Set timeout to 30 minutes (1800 seconds)
set TIMEOUT=1800
REM Set library paths
set VCPKG_ROOT=C:\libs\vcpkg
set BOOST_ROOT=C:\libs\boost_1_89_0-bin-msvc-all-32-64\boost_1_89_0
set BOOST_INCLUDEDIR=%BOOST_ROOT%\boost
set BOOST_LIBRARYDIR=%BOOST_ROOT%\stage\lib
echo VCPKG_ROOT: %VCPKG_ROOT%
echo BOOST_ROOT: %BOOST_ROOT%
echo.
REM Create or clean build directory
if exist build (
echo Build directory exists. Cleaning CMake cache...
del /q build\CMakeCache.txt 2>nul
) else (
echo Creating build directory...
mkdir build
)
cd build
echo.
echo Running CMake configuration for RelWithDebInfo...
echo.
cmake .. -G "Visual Studio 17 2022" ^
-DCMAKE_BUILD_TYPE=RelWithDebInfo ^
-DBUILD_PLAYERBOT=1 ^
-DCMAKE_TOOLCHAIN_FILE="%VCPKG_ROOT%\scripts\buildsystems\vcpkg.cmake" ^
-DBOOST_ROOT="%BOOST_ROOT%" ^
-DBOOST_INCLUDEDIR="%BOOST_INCLUDEDIR%" ^
-DBOOST_LIBRARYDIR="%BOOST_LIBRARYDIR%"
if %ERRORLEVEL% NEQ 0 (
echo.
echo ========================================
echo ERROR: CMake configuration failed!
echo ========================================
cd ..
pause
exit /b 1
)
cd ..
echo.
echo ========================================
echo RelWithDebInfo Configuration Complete!
echo ========================================
echo.
echo Next step: Run build_relwithdebinfo.bat to compile
echo.
pause