]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
Make Xonotic build on X64 MSYS2 (temporary hack method)
authorMario <mario@smbclan.net>
Thu, 24 Mar 2016 16:54:32 +0000 (02:54 +1000)
committerMario <mario@smbclan.net>
Thu, 24 Mar 2016 16:54:32 +0000 (02:54 +1000)
misc/tools/all/xonotic.subr

index 97f68667b7b7450921d2fc4460263249f5040b54..ef6f043df3f08e8fb1a358d18df87ae9352d0770 100644 (file)
@@ -83,7 +83,7 @@ case "$cmd" in
                        TARGETS="sv-$debug sdl-$debug"
                        export CC="$CC -fno-reorder-blocks"
                else
-                       TARGETS="sv-$debug cl-$debug sdl-$debug"
+                       TARGETS="sv-$debug cl-$debug sdl2-$debug"
                fi
 
                if [ $# -gt 0 ] && [ x"$1" = x"" ]; then
@@ -131,7 +131,7 @@ case "$cmd" in
 
                if [ -n "$WE_HATE_OUR_USERS" ]; then
                        # win32: use SDL2
-                       MAKEFLAGS="$MAKEFLAGS \"SDL_CONFIG=$d0/misc/builddeps/win32/sdl/bin/sdl2-config\""
+                       MAKEFLAGS="$MAKEFLAGS \"SDL2_CONFIG=$d0/misc/builddeps/win64/sdl/bin/sdl2-config\""
 
                        # win32: don't rely on jpeg includes
                        MAKEFLAGS="$MAKEFLAGS LIB_JPEG= CFLAGS_LIBJPEG="
@@ -184,9 +184,9 @@ case "$cmd" in
                        # use binaries then, if we can...
                        mkdir -p .libs
                        if [ -n "$WE_HATE_OUR_USERS" ]; then
-                               verbose cp "$d0/misc/buildfiles/win32/libd0_blind_id"-* .libs/
-                               verbose cp "$d0/misc/buildfiles/win32/libd0_rijndael"-* .libs/
-                               verbose cp "$d0/misc/buildfiles/win32/libgmp"-* .libs/
+                               verbose cp "$d0/misc/buildfiles/win64/libd0_blind_id"-* .libs/
+                               verbose cp "$d0/misc/buildfiles/win64/libd0_rijndael"-* .libs/
+                               verbose cp "$d0/misc/buildfiles/win64/libgmp"-* .libs/
                        else
                                case "`uname`" in
                                        Linux)
@@ -275,7 +275,7 @@ case "$cmd" in
        run)
                if [ -n "$WE_HATE_OUR_USERS" ]; then
                        client=
-                       export PATH="$d0/misc/buildfiles/win32:$d0/d0_blind_id/.libs:$PATH"
+                       export PATH="$d0/misc/buildfiles/win64:$d0/d0_blind_id/.libs:$PATH"
                elif [ x"`uname`" = x"Darwin" ]; then
                        export DYLD_LIBRARY_PATH="$d0/misc/buildfiles/osx/Xonotic.app/Contents/MacOS:$d0/d0_blind_id/.libs"
                        export DYLD_FRAMEWORK_PATH="$d0/misc/buildfiles/osx/Xonotic.app/Contents/Frameworks"