summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-07-29 15:53:52 +0100
committerPete Batard <pbatard@gmail.com>2010-07-29 15:53:52 +0100
commit7659e6b1b22ab0f2edfdfe9473533270ec38a766 (patch)
tree653363ac2a71bd299e93cec03edc4a9e042c58d3
parent9a515b7da416c057c1fca8bb9b6318184aa742b2 (diff)
downloadlibusb-7659e6b1b22ab0f2edfdfe9473533270ec38a766.tar.gz
[INTERNAL - NOT FOR RELEASE] added MinGW64 to "daily" builds
-rw-r--r--bd.cmd9
-rw-r--r--bm.sh41
2 files changed, 38 insertions, 12 deletions
diff --git a/bd.cmd b/bd.cmd
index cc5737c..32c0e3c 100644
--- a/bd.cmd
+++ b/bd.cmd
@@ -1,12 +1,11 @@
@echo off
if NOT x%DDK_TARGET_OS%==xWinXP goto usage
-rmdir /S /Q E:\dailies\%DATE%
mkdir E:\dailies\%DATE%
-for %%A in (MS32 MS64 MinGW32) do mkdir E:\dailies\%DATE%\%%A
-for %%A in (MS32 MS64 MinGW32) do mkdir E:\dailies\%DATE%\%%A\lib
-for %%A in (MS32 MS64 MinGW32) do mkdir E:\dailies\%DATE%\%%A\dll
-for %%A in (MS32 MS64 MinGW32) do mkdir E:\dailies\%DATE%\%%A\examples
+for %%A in (MS32 MS64) do mkdir E:\dailies\%DATE%\%%A
+for %%A in (MS32 MS64) do mkdir E:\dailies\%DATE%\%%A\lib
+for %%A in (MS32 MS64) do mkdir E:\dailies\%DATE%\%%A\dll
+for %%A in (MS32 MS64) do mkdir E:\dailies\%DATE%\%%A\examples
copy libusb\libusb.h E:\dailies\%DATE%\
set ORG_BUILD_ALT_DIR=%BUILD_ALT_DIR%
diff --git a/bm.sh b/bm.sh
index 13a5f10..4bb485a 100644
--- a/bm.sh
+++ b/bm.sh
@@ -1,8 +1,14 @@
#!/bin/sh
date=`date +%Y.%m.%d`
+
+#
+# 32 bit binaries
+#
+target=e:/dailies/$date/MinGW32
git clean -f -d -x
# Not using debug (-g) in CFLAGS DRAMATICALLY reduces the size of the binaries
-export CFLAGS="-O2"
+export CFLAGS="-O2 -m32"
+export RCFLAGS="--target=pe-i386"
echo `pwd`
(glibtoolize --version) < /dev/null > /dev/null 2>&1 && LIBTOOLIZE=glibtoolize || LIBTOOLIZE=libtoolize
$LIBTOOLIZE --copy --force || exit 1
@@ -10,10 +16,31 @@ aclocal || exit 1
autoheader || exit 1
autoconf || exit 1
automake -a -c || exit 1
-./configure --enable-examples-build --enable-toggable-debug $*
+./configure --enable-examples-build --enable-toggable-debug
make
-cp examples/.libs/lsusb.exe e:/dailies/$date/MinGW32/examples
-cp examples/.libs/xusb.exe e:/dailies/$date/MinGW32/examples
-cp libusb/.libs/libusb-1.0.a e:/dailies/$date/MinGW32/lib
-cp libusb/.libs/libusb-1.0.dll e:/dailies/$date/MinGW32/dll
-cp libusb/.libs/libusb-1.0.dll.a e:/dailies/$date/MinGW32/dll
+mkdir -p $target/examples
+mkdir -p $target/lib
+mkdir -p $target/dll
+cp -v examples/.libs/lsusb.exe $target/examples
+cp -v examples/.libs/xusb.exe $target/examples
+cp -v libusb/.libs/libusb-1.0.a $target/lib
+cp -v libusb/.libs/libusb-1.0.dll $target/dll
+cp -v libusb/.libs/libusb-1.0.dll.a $target/dll
+make clean
+
+#
+# 64 bit binaries
+#
+target=e:/dailies/$date/MinGW64
+export CFLAGS="-O2 -m64"
+export RCFLAGS=""
+./configure --enable-examples-build --enable-toggable-debug
+make
+mkdir -p $target/examples
+mkdir -p $target/lib
+mkdir -p $target/dll
+cp -v examples/.libs/lsusb.exe $target/examples
+cp -v examples/.libs/xusb.exe $target/examples
+cp -v libusb/.libs/libusb-1.0.a $target/lib
+cp -v libusb/.libs/libusb-1.0.dll $target/dll
+cp -v libusb/.libs/libusb-1.0.dll.a $target/dll \ No newline at end of file