2015-02-20 13:15:27 +00:00
|
|
|
@echo off
|
2019-01-01 11:40:38 +00:00
|
|
|
setlocal
|
2015-02-20 13:15:27 +00:00
|
|
|
echo QB64 Setup
|
|
|
|
echo.
|
|
|
|
|
|
|
|
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
|
|
|
|
del /q /s internal\temp\*.* >nul 2>nul
|
|
|
|
|
2019-01-01 11:40:38 +00:00
|
|
|
if exist internal\c\c_compiler\bin\c++.exe goto skipccompsetup
|
|
|
|
cd internal\c
|
|
|
|
reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set MINGW=mingw32 || set MINGW=mingw64
|
|
|
|
echo Using %MINGW% as C++ Compiler
|
|
|
|
ren %MINGW% c_compiler
|
|
|
|
cd ../..
|
|
|
|
:skipccompsetup
|
2015-02-20 13:15:27 +00:00
|
|
|
|
|
|
|
echo Building library 'LibQB'
|
|
|
|
cd internal/c/libqb/os/win
|
|
|
|
if exist libqb_setup.o del libqb_setup.o
|
|
|
|
call setup_build.bat
|
|
|
|
cd ../../../../..
|
|
|
|
|
|
|
|
echo Building library 'FreeType'
|
|
|
|
cd internal/c/parts/video/font/ttf/os/win
|
|
|
|
if exist src.o del src.o
|
|
|
|
call setup_build.bat
|
|
|
|
cd ../../../../../../../..
|
|
|
|
|
|
|
|
echo Building library 'Core:FreeGLUT'
|
|
|
|
cd internal/c/parts/core/os/win
|
|
|
|
if exist src.a del src.a
|
|
|
|
call setup_build.bat
|
|
|
|
cd ../../../../../..
|
|
|
|
|
|
|
|
echo Building 'QB64'
|
|
|
|
copy internal\source\*.* internal\temp\ >nul
|
2016-09-04 15:12:30 +00:00
|
|
|
copy source\qb64.ico internal\temp\ >nul
|
|
|
|
copy source\icon.rc internal\temp\ >nul
|
2015-07-15 09:38:35 +00:00
|
|
|
cd internal\c
|
2016-09-04 15:12:30 +00:00
|
|
|
c_compiler\bin\windres.exe -i ..\temp\icon.rc -o ..\temp\icon.o
|
2017-09-25 11:56:24 +00:00
|
|
|
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"
|
2015-07-15 09:38:35 +00:00
|
|
|
cd ..\..
|
2015-02-20 13:15:27 +00:00
|
|
|
|
|
|
|
echo.
|
|
|
|
echo Launching 'QB64'
|
|
|
|
qb64
|
|
|
|
|
|
|
|
echo.
|
|
|
|
pause
|