mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-27 18:25:54 +00:00
b586eafd3b
LINE INPUT will now use the faster method if passed a file handle that has been opened FOR BINARY. As such, the _BLINEINPUT command has been removed. qb64.bas now takes advantage of this for reading from '$include files, at least in Include Manager 1. Some tweaking of internal/source/main.txt was required to get things into a sane state, so I'm holing off changing the compiler any further so the auto-builder can make sure everything's smoothed over. Note: Everything should still compile as normal; I'm just being overcautious.
48 lines
1.3 KiB
Batchfile
48 lines
1.3 KiB
Batchfile
@echo off
|
|
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
|
|
|
|
cd internal/c/c_compiler
|
|
if exist bin\c++.exe goto skipccompextract
|
|
echo Extracting C++ compiler
|
|
7z\7za.exe x -y c_compiler.7z >nul
|
|
:skipccompextract
|
|
cd ../../..
|
|
|
|
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
|
|
cd internal/c
|
|
c_compiler\bin\g++ -mconsole -s -Wfatal-errors -w -Wall qbx.cpp libqb\os\win\libqb_setup.o -D DEPENDENCY_LOADFONT parts\video\font\ttf\os\win\src.o -lws2_32 -lwinspool parts\core\os\win\src.a -lopengl32 -lglu32 -lwinmm -lgdi32 -Wl,--subsystem,windows -static-libgcc -static-libstdc++ -D FREEGLUT_STATIC -lksguid -lole32 -lwinmm -ldxguid -o "..\..\qb64.exe"
|
|
cd ../..
|
|
|
|
echo.
|
|
echo Launching 'QB64'
|
|
qb64
|
|
|
|
echo.
|
|
pause
|