Alexandre Julliard : make-winetest: Add support for building a 64-bit winetest.exe.

Alexandre Julliard julliard at winehq.org
Tue Dec 30 06:30:48 CST 2008


Module: tools
Branch: master
Commit: 1b3b85ead912d35b166711241349fc86749420b7
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=1b3b85ead912d35b166711241349fc86749420b7

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Dec 29 20:35:51 2008 +0100

make-winetest: Add support for building a 64-bit winetest.exe.

---

 winetest/make-winetest |   28 +++++++++++++++++++++++++---
 1 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/winetest/make-winetest b/winetest/make-winetest
index d2b155a..994f101 100755
--- a/winetest/make-winetest
+++ b/winetest/make-winetest
@@ -48,7 +48,8 @@ destdir="/home/winehq/opt/winetest/builds"
 desturl="http://test.winehq.org/builds"
 servicedir="/home/winehq/opt/winetest/winehq-builds/winetest"
 
-mingw=i586-mingw32msvc
+mingw32=i586-mingw32msvc
+mingw64=x86_64-pc-mingw32
 logfile=LOG
 
 # if the log file exists, either a build is in progress or one has failed
@@ -61,7 +62,7 @@ fi
     (cd wine && git pull) || exit
     head=$(cd wine && git rev-parse --short=12 HEAD) || exit
 
-    if [ -f $destdir/winetest-$head.exe -a $force -eq 0 ]
+    if [ -f $destdir/winetest-$head.exe -a -f $destdir/winetest64-$head.exe -a $force -eq 0 ]
     then
         exit 0
     fi
@@ -80,7 +81,7 @@ fi
     test -d build-mingw ||
     (mkdir build-mingw &&
      cd build-mingw &&
-     ../wine/configure --host=$mingw --with-wine-tools=../build-native --without-x --without-freetype) || exit
+     ../wine/configure --host=$mingw32 --with-wine-tools=../build-native --without-x --without-freetype) || exit
 
     (cd build-mingw &&
      make depend &&
@@ -101,6 +102,27 @@ fi
 
     echo "winetest-$head.exe built successfully."
 
+    # now the same thing for 64-bit
+
+    test -d build-mingw64 ||
+    (mkdir build-mingw64 &&
+     cd build-mingw64 &&
+     ../wine/configure --host=$mingw64 --with-wine-tools=../build-native --without-x --without-freetype) || exit
+
+    (cd build-mingw64 &&
+     make depend &&
+     make include &&
+     make -C dlls testsubdirs &&
+     cd programs/winetest &&
+     echo "$desturl/winetest64-$head.exe" > tests.url &&
+     uname -a > build.nfo &&
+     make dist) || exit
+
+    mv -f build-mingw64/programs/winetest/winetest-dist.exe $destdir/winetest64-$head.exe
+    ln -sf winetest64-$head.exe $destdir/winetest64-latest.exe
+
+    echo "winetest64-$head.exe built successfully."
+
 ) >$logfile 2>&1 && rm -f $logfile
 
 # if the log file is still here, something failed




More information about the wine-cvs mailing list