mirror of
https://github.com/QB64Official/qb64.git
synced 2024-09-20 09:04:44 +00:00
b9a52e9600
This way, we only include that code if its commands are called upon. In order to do this, some other areas had to be changed as well: - There is now a libqb.h file, which declares some routines in libqb.cpp, in order to allow them to be called from a separately compiled unit, i.e, the user mods part. - common.cpp now has an #include guard, just to be on the safe side. - The library purge routines know about the new part. - qb64.bas is modified to handle the new part; this area is just modeled off the code for the other parts. - Appropriate flags were set in the hash table entires for the commands. - The user mods, now being a separate compilation unit, #include common.cpp and libqb.h. The former is required for important type declarations and access to glut commmands, the latter for access to libqb routines. - qbx.cpp #includes the src.cpp file in the user mods part, which declares the routines. Something to ponder: libqb does not include or rely on any of the user mod routines, so it's probably not necessary to rebuild it like with the other parts. That exploration is for another day, however.
38 lines
1,012 B
Bash
38 lines
1,012 B
Bash
cd "$(dirname "$0")"
|
|
|
|
rm libqb/os/win/*.o
|
|
rm libqb/os/lnx/*.o
|
|
|
|
rm parts/core/os/win/src.a
|
|
rm parts/core/os/lnx/src.a
|
|
rm parts/core/os/win/temp/*.o
|
|
rm parts/core/os/lnx/temp/*.o
|
|
|
|
rm parts/audio/decode/mp3/os/win/src.a
|
|
rm parts/audio/decode/mp3/os/lnx/src.a
|
|
rm parts/audio/decode/mp3/os/win/temp/*.o
|
|
rm parts/audio/decode/mp3/os/lnx/temp/*.o
|
|
|
|
rm parts/audio/decode/ogg/os/win/src.o
|
|
rm parts/audio/decode/ogg/os/lnx/src.o
|
|
rm parts/audio/decode/ogg/os/win/temp/*.o
|
|
rm parts/audio/decode/ogg/os/lnx/temp/*.o
|
|
|
|
rm parts/audio/conversion/os/win/src.a
|
|
rm parts/audio/conversion/os/lnx/src.a
|
|
rm parts/audio/conversion/os/win/temp/*.o
|
|
rm parts/audio/conversion/os/lnx/temp/*.o
|
|
|
|
rm parts/audio/out/os/win/src.a
|
|
rm parts/audio/out/os/lnx/src.a
|
|
rm parts/audio/out/os/win/temp/*.o
|
|
rm parts/audio/out/os/lnx/temp/*.o
|
|
|
|
rm parts/video/font/ttf/os/win/src.o
|
|
rm parts/video/font/ttf/os/lnx/src.o
|
|
|
|
rm parts/user_mods/os/win/src.a
|
|
rm parts/user_mods/os/lnx/src.a
|
|
rm parts/user_mods/os/win/temp/*.o
|
|
rm parts/user_mods/os/lnx/temp/*.o
|
|
|