From 43394c8a8908442982e3a7e25975c31b3c952923 Mon Sep 17 00:00:00 2001 From: Nikolas Date: Sun, 27 Oct 2024 12:52:55 +0200 Subject: root --- build_sgg.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 build_sgg.sh (limited to 'build_sgg.sh') 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 -- cgit v1.2.3