]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
forgot that part
authorLock l00p <hakzstudios@gmail.com>
Thu, 28 Sep 2023 19:23:53 +0000 (19:23 +0000)
committerLock l00p <hakzstudios@gmail.com>
Thu, 28 Sep 2023 19:23:53 +0000 (19:23 +0000)
misc/tools/all/emscripten.subr

index f3f18825cad044a863bd7bb842d31730e6c0b9ab..8a9551d1bab44f2498846d73eb321c240122e617 100644 (file)
@@ -124,4 +124,37 @@ export CC="$CC -L../../../../misc/builddeps/emscripten/gmp/lib"
 export CC="$CC -Wl,-rpath,../../../../misc/builddeps/emscripten/gmp/lib"
 MAKEFLAGS="$MAKEFLAGS DP_LINK_CRYPTO=shared DP_LINK_CRYPTO_RIJNDAEL=shared LIB_CRYPTO=../../../../misc/builddeps/emscripten/d0_blind_id/lib/libd0_blind_id.a LIB_CRYPTO+=../../../../misc/builddeps/emscripten/gmp/lib/libgmp.a LIB_CRYPTO_RIJNDAEL=../../../../misc/builddeps/emscripten/d0_blind_id/lib/libd0_rijndael.a"
 compiled0=false
-;;
\ No newline at end of file
+
+if $compiled0; then
+       if $cleand0; then
+               if [ -f Makefile ]; then
+                       verbose $MAKE $MAKEFLAGS distclean
+               fi
+       fi
+       if ! [ -f Makefile ]; then
+               verbose sh autogen.sh
+               verbose emconfigure ./configure
+       fi
+       verbose $MAKE $MAKEFLAGS
+fi
+verbose cd "$d0/gmqcc"
+               if $cleanqcc; then
+                       verbose $MAKE $MAKEFLAGS clean
+               fi
+               if [ -n "$WE_HATE_OUR_USERS" ]; then
+                       verbose $MAKE $MAKEFLAGS gmqcc.exe
+               else
+                       verbose $MAKE $MAKEFLAGS gmqcc
+               fi
+
+               if [ -n "$MSYSTEM" ]; then
+                       DATAMAKE=mingw32-make
+               else
+                       DATAMAKE=$MAKE
+               fi
+               verbose cd "$d0/data/xonotic-data.pk3dir"
+               if $cleanqc; then
+                       verbose ${DATAMAKE} QCC="../../../../gmqcc/gmqcc" "$@" $MAKEFLAGS clean
+               fi
+               verbose ${DATAMAKE} QCC="../../../../gmqcc/gmqcc" "$@" $MAKEFLAGS
+               # 4 levels up: data, xonotic-data, qcsrc, server