-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquick_build.bat
More file actions
30 lines (24 loc) · 866 Bytes
/
quick_build.bat
File metadata and controls
30 lines (24 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@echo off
echo Building Store Fish Chess Engine (Quick Build)...
g++ src/*.cpp -o build/chess_engine -I C:/SFML-2.6.1/include -L C:/SFML-2.6.1/lib -lsfml-graphics -lsfml-window -lsfml-system
if %errorlevel% == 0 (
echo Build successful!
REM Copy assets
echo Copying assets...
xcopy /E /I /H /Y assets\* build\assets\
REM Copy SFML DLLs
echo Copying SFML DLLs...
copy "C:\SFML-2.6.1\bin\sfml-graphics-2.dll" "build\"
copy "C:\SFML-2.6.1\bin\sfml-window-2.dll" "build\"
copy "C:\SFML-2.6.1\bin\sfml-system-2.dll" "build\"
copy "C:\SFML-2.6.1\bin\openal32.dll" "build\"
echo.
echo ================================
echo Build complete!
echo Run: build\chess_engine.exe
echo ================================
echo.
) else (
echo Build failed! Check the error messages above.
)
pause