X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=build.sh;h=328e432a9bf367015e515dff195d6099ced08971;hb=7838efe822ca9336a69936004dd6d9bed70910fb;hp=cea0e94e1facfe6f20b8523a9b4fa59af47a5f05;hpb=27f1751d523e9dee4ab00ec10666bbb3d8db74bc;p=fishladder.git diff --git a/build.sh b/build.sh index cea0e94..328e432 100755 --- a/build.sh +++ b/build.sh @@ -53,6 +53,7 @@ if [ "$compile_tools" = true ]; then echo "Building tools" mkdir tools -p gcc -Wall -Wstrict-aliasing=3 $lib $flags mdlcomp.c gl/glad.c -o tools/mdlcomp $libs -Wl,-rpath=./ $defines + gcc -Wall -Wstrict-aliasing=3 $lib $flags fontcomp.c gl/glad.c -o tools/fontcomp $libs -Wl,-rpath=./ $defines fi # Resources @@ -80,10 +81,14 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then # Directories to initialize mkdir build.linux/cfg -p mkdir build.linux/textures -p + mkdir build.linux/sound -p + mkdir build.linux/maps -p cp $target ./build.linux/$target cp ./steam/libsteam_api.so ./build.linux/libsteam_api.so cp -r ./textures/ ./build.linux/ + cp -r ./sound/ ./build.linux/ + cp -r ./maps/ ./build.linux/ if [ "$run_after" = true ]; then echo "Playing" @@ -95,9 +100,13 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then else mkdir build.win32/cfg -p mkdir build.win32/textures -p + mkdir build.win32/sound -p + mkdir build.win32/maps -p cp $target ./build.win32/$target cp -r ./textures/ ./build.win32/ + cp -r ./sound/ ./build.win32/ + cp -r ./maps/ ./build.win32/ cp ./lib/glfw3.dll ./build.win32/glfw3.dll if [ "$run_after" = true ]; then