diff options
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 |