mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-01 09:10:37 +00:00
Add the User Additions module to the QB64 compiler build at setup time.
This commit is contained in:
parent
5130038a2e
commit
6f33160368
0
internal/c/parts/audio/conversion/download/opus-tools-0.1.9/ltmain.sh
Normal file → Executable file
0
internal/c/parts/audio/conversion/download/opus-tools-0.1.9/ltmain.sh
Normal file → Executable file
0
internal/c/parts/audio/decode/mp3_mini/os/lnx/build.sh
Normal file → Executable file
0
internal/c/parts/audio/decode/mp3_mini/os/lnx/build.sh
Normal file → Executable file
0
internal/c/parts/input/game_controller/os/lnx/build.sh
Normal file → Executable file
0
internal/c/parts/input/game_controller/os/lnx/build.sh
Normal file → Executable file
0
internal/c/parts/user_mods/os/lnx/build.sh
Normal file → Executable file
0
internal/c/parts/user_mods/os/lnx/build.sh
Normal file → Executable file
4
internal/c/parts/user_mods/os/lnx/setup_build.sh
Executable file
4
internal/c/parts/user_mods/os/lnx/setup_build.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
gcc -I../../../../ -DFREEGLUT_STATIC -I../../include -c ../../src/luke_mods.cpp -o temp/luke_mods.o
|
||||
gcc -I../../../../ -DFREEGLUT_STATIC -I../../include -c ../../src/steve_mods.cpp -o temp/steve_mods.o
|
||||
ar rcs src.a temp/steve_mods.o temp/luke_mods.o
|
5
internal/c/parts/user_mods/os/osx/setup_build.command
Normal file
5
internal/c/parts/user_mods/os/osx/setup_build.command
Normal file
|
@ -0,0 +1,5 @@
|
|||
cd "$(dirname "$0")"
|
||||
|
||||
gcc -I../../../../ -I../../include -c ../../src/luke_mods.cpp -o temp/luke_mods.o
|
||||
gcc -I../../../../ -I../../include -c ../../src/steve_mods.cpp -o temp/steve_mods.o
|
||||
ar rcs src.a temp/steve_mods.o temp/luke_mods.o
|
3
internal/c/parts/user_mods/os/win/setup_build.bat
Normal file
3
internal/c/parts/user_mods/os/win/setup_build.bat
Normal file
|
@ -0,0 +1,3 @@
|
|||
..\..\..\..\c_compiler\bin\gcc -DFREEGLUT_STATIC -I..\..\..\..\ -I..\..\include -c ..\..\src\luke_mods.cpp -o temp\luke_mods.o
|
||||
..\..\..\..\c_compiler\bin\gcc -DFREEGLUT_STATIC -I..\..\..\..\ -I..\..\include -c ..\..\src\steve_mods.cpp -o temp\steve_mods.o
|
||||
..\..\..\..\c_compiler\bin\ar rcs src.a temp\steve_mods.o temp\luke_mods.o
|
|
@ -183,6 +183,12 @@ else
|
|||
./setup_build.sh
|
||||
cd ../../../../../../../..
|
||||
|
||||
echo "Building User Additions"
|
||||
cd internal/c/parts/user_mods/os/lnx
|
||||
rm -f src.a
|
||||
./setup_build.sh
|
||||
cd ../../../../../..
|
||||
|
||||
echo "Building library 'Core:FreeGLUT'"
|
||||
cd internal/c/parts/core/os/lnx
|
||||
rm -f src.a
|
||||
|
@ -192,7 +198,7 @@ else
|
|||
echo "Building 'QB64'"
|
||||
cp -r ./internal/source/* ./internal/temp/
|
||||
cd internal/c
|
||||
g++ -w qbx.cpp libqb/os/lnx/libqb_setup.o parts/video/font/ttf/os/lnx/src.o parts/core/os/lnx/src.a -lGL -lGLU -lX11 -lpthread -ldl -lrt -D FREEGLUT_STATIC -o ../../qb64
|
||||
g++ -w qbx.cpp parts/user_mods/os/lnx/src.a libqb/os/lnx/libqb_setup.o parts/video/font/ttf/os/lnx/src.o parts/core/os/lnx/src.a -lGL -lGLU -lX11 -lpthread -ldl -lrt -D FREEGLUT_STATIC -DDEPENDENCY_USER_MODS -o ../../qb64
|
||||
cd ../..
|
||||
fi
|
||||
|
||||
|
|
|
@ -44,6 +44,17 @@ if [ ! -f ./src.o ]; then
|
|||
fi
|
||||
cd ../../../../../../../..
|
||||
|
||||
echo "Building User Additions"
|
||||
cd internal/c/parts/user_mods/os/lnx
|
||||
rm -f src.a
|
||||
./setup_build.sh
|
||||
if [ ! -f ./src.a ]; then
|
||||
echo "Compilation of ./internal/c/parts/user_mods/os/osx/src.a failed!"
|
||||
Pause
|
||||
exit 1
|
||||
fi
|
||||
cd ../../../../../..
|
||||
|
||||
echo "Building 'QB64' (~3 min)"
|
||||
cp ./internal/source/* ./internal/temp/
|
||||
cd internal/c
|
||||
|
|
|
@ -27,17 +27,29 @@ if exist src.o del src.o
|
|||
call setup_build.bat
|
||||
cd ../../../../../../../..
|
||||
|
||||
echo Building User Additions
|
||||
cd internal/c/parts/user_mods/os/win
|
||||
if exist src.a del src.a
|
||||
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 ../../../../../..
|
||||
|
||||
cd internal\c\parts\user_mods\os\win
|
||||
..\..\..\..\c_compiler\bin\gcc -DFREEGLUT_STATIC -I..\..\..\..\ -I..\..\include -c ..\..\src\luke_mods.cpp -o temp\luke_mods.o
|
||||
..\..\..\..\c_compiler\bin\gcc -DFREEGLUT_STATIC -I..\..\..\..\ -I..\..\include -c ..\..\src\steve_mods.cpp -o temp\steve_mods.o
|
||||
..\..\..\..\c_compiler\bin\ar rcs src.a temp\steve_mods.o temp\luke_mods.o
|
||||
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 ../..
|
||||
cd internal\c
|
||||
c_compiler\bin\g++ -mconsole -s -Wfatal-errors -w -Wall qbx.cpp libqb\os\win\libqb_setup.o parts\user_mods\os\win\src.a -D DEPENDENCY_USER_MODS -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'
|
||||
|
|
Loading…
Reference in a new issue