]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
Autobuild libd0 for Linux
authorbones_was_here <bones_was_here@xonotic.au>
Mon, 25 Dec 2023 09:06:03 +0000 (19:06 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Mon, 25 Dec 2023 12:02:30 +0000 (22:02 +1000)
We're already doing this for Windows.

misc/tools/all/release.subr

index 4d7f78c9df370ac708b1eea30722e51e7004dd1d..a784991855c2c091421a56d48eeae6b5fdccf9bc 100644 (file)
@@ -277,6 +277,28 @@ case "$cmd" in
                                ;;
                esac
                ;;
+       release-libs-compile)
+               release_common
+               arch=$1
+               makeflags=$2
+               host=$3
+               (
+                       verbose cd "$d0/d0_blind_id"
+                       verbose ./autogen.sh
+                       verbose ./configure --enable-static --disable-shared \
+                                           --host="$host" \
+                                           --prefix="$d0/misc/builddeps/$arch/d0_blind_id"
+                       verbose make clean
+                       verbose make "$makeflags"
+                       verbose make install
+               )
+               ;;
+       release-libs-linux64)
+               release_common
+               verbose "$SELF" release-libs-compile linux64 \
+                       'CC="gcc -m64 -flto=auto"' \
+                       x86_64-pc-linux-gnu
+               ;;
        release-dlls-compile)
                release_common
                arch=$1
@@ -300,8 +322,9 @@ case "$cmd" in
                release_common
                verbose "$SELF" release-dlls-compile win64 /tmp/dlls Xonotic/bin64
                ;;
-       release-dlls)
+       release-libs)
                release_common
+               verbose "$SELF" release-libs-linux64
                verbose "$SELF" release-dlls-win32
                verbose "$SELF" release-dlls-win64
                verbose rm -rf /tmp/dlls
@@ -346,7 +369,7 @@ case "$cmd" in
                #verbose "$SELF" release-getbinary Xonotic/xonotic-linux64-dedicated || good=false
                #$good
                verbose "$SELF" release-compile linux64 \
-                       'CC="gcc -m64 -flto=auto -I../../../.deps/include -L../../../.deps/lib" DP_LINK_CRYPTO=shared LIB_CRYPTO="../../../.deps/lib/libd0_blind_id.a ../../../.deps/lib/libgmp.a" DP_LINK_CRYPTO_RIJNDAEL=shared DP_LINK_JPEG=shared LIB_JPEG=/usr/lib/x86_64-linux-gnu/libjpeg.a DP_LINK_ODE=shared CFLAGS_ODE="-DUSEODE -DLINK_TO_LIBODE -DdDOUBLE" LIB_ODE="../../../.deps/lib/libode.a -lstdc++ -pthread" DP_LINK_ZLIB=shared' \
+                       'CC="gcc -m64 -flto=auto -I../../../.deps/include -L../../../.deps/lib" DP_LINK_CRYPTO=static DP_LINK_CRYPTO_RIJNDAEL=static DP_LINK_JPEG=shared LIB_JPEG=/usr/lib/x86_64-linux-gnu/libjpeg.a DP_LINK_ODE=shared CFLAGS_ODE="-DUSEODE -DLINK_TO_LIBODE -DdDOUBLE" LIB_ODE="../../../.deps/lib/libode.a -lstdc++ -pthread" DP_LINK_ZLIB=shared' \
                        release 'darkplaces-sdl:Xonotic/xonotic-linux64-sdl darkplaces-dedicated:Xonotic/xonotic-linux64-dedicated'
                ;;
        release-engine)
@@ -626,7 +649,7 @@ case "$cmd" in
                release_common
                verbose "$SELF" release-prepare
                verbose "$SELF" release-maps
-               verbose "$SELF" release-dlls
+               verbose "$SELF" release-libs
                verbose "$SELF" release-engine
                verbose "$SELF" release-qc
                verbose "$SELF" release-pack