diff options
author | Nikolas <nikolas@boutalas.com> | 2024-10-27 12:52:55 +0200 |
---|---|---|
committer | Nikolas <nikolas@boutalas.com> | 2024-10-27 12:52:55 +0200 |
commit | 43394c8a8908442982e3a7e25975c31b3c952923 (patch) | |
tree | 2facd563e29f48fe3b0653ac5c113998940b4d5e /build_sgg.sh |
Diffstat (limited to 'build_sgg.sh')
-rwxr-xr-x | build_sgg.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/build_sgg.sh b/build_sgg.sh new file mode 100755 index 0000000..576bc9b --- /dev/null +++ b/build_sgg.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +CC=g++ +LD=g++ +AR=ar +BUILD_PATH="build" +LIB_PATH="lib" +CFLAGS="-O2" + +mkdir -p $LIB_PATH +mkdir -p $BUILD_PATH +mkdir -p $BUILD_PATH/sgg + +$CC -c $CFLAGS -I3rdparty/include graphics/graphics.cpp -o $BUILD_PATH/sgg/graphics.o +$CC -c $CFLAGS -I3rdparty/include graphics/GLbackend.cpp -o $BUILD_PATH/sgg/GLbackend.o +$CC -c $CFLAGS -I3rdparty/include graphics/shader.cpp -o $BUILD_PATH/sgg/shader.o +$CC -c $CFLAGS -I3rdparty/include graphics/texture.cpp -o $BUILD_PATH/sgg/texture.o +$CC -c $CFLAGS -I3rdparty/include graphics/audio.cpp -o $BUILD_PATH/sgg/audio.o +$CC -c $CFLAGS -I3rdparty/include graphics/AudioManager.cpp -o $BUILD_PATH/sgg/AudioManager.o +$CC -c $CFLAGS -I3rdparty/include graphics/lodepng.cpp -o $BUILD_PATH/sgg/lodepng.o +$CC -c $CFLAGS -I3rdparty/include graphics/fonts.cpp -o $BUILD_PATH/sgg/fonts.o + +$AR rcs $LIB_PATH/libsgg.a $BUILD_PATH/sgg/*.o |