1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-06-29 05:50:41 +00:00
qb64/.ci/compile.bat

21 lines
949 B
Batchfile

@ECHO OFF
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
echo From git %GITHUB_SHA:~0,7% > internal\version.txt
qb64_bootstrap.exe -z source\qb64.bas
cd internal\c
c_compiler\bin\g++ -mconsole -s -Wfatal-errors -w -Wall qbx.cpp libqb\os\win\libqb_setup.o ..\temp\icon.o -D DEPENDENCY_LOADFONT parts\video\font\ttf\os\win\src.o -D DEPENDENCY_SOCKETS -D DEPENDENCY_NO_PRINTER -D DEPENDENCY_ICON -D DEPENDENCY_NO_SCREENIMAGE parts\core\os\win\src.a -lopengl32 -lglu32 -mwindows -static-libgcc -static-libstdc++ -D GLEW_STATIC -D FREEGLUT_STATIC -lws2_32 -lwinmm -lgdi32 -o "..\..\qb64.exe"
IF ERRORLEVEL 1 exit /b 1
cd ..\..
del qb64_bootstrap.exe
del /q /s secure-file
del /q /s internal\source\*
del /q /s internal\temp\*
del /q /s internal\c\libqb\*.o >nul 2>nul
del /q /s internal\c\libqb\*.a >nul 2>nul
del /q /s internal\c\parts\*.o >nul 2>nul
del /q /s internal\c\parts\*.a >nul 2>nul
cd internal\source
del /q /s debug_* recompile_*