core: Improve error / debug messages for hotplug pipe handling
[libusbx.git] / .private / bm.sh
blob217baf8ca7fff3976adf4df7e11923b7f5b4bdee
1 #!/bin/sh
2 # produce the MinGW binary files for snapshots
3 # !!!THIS SCRIPT IS FOR INTERNAL DEVELOPER USE ONLY!!!
5 PWD=`pwd`
6 cd ..
7 date=`date +%Y.%m.%d`
8 target=e:/dailies/$date
9 mkdir -p $target/include/libusbx-1.0
10 cp -v libusb/libusb-1.0.def $target
11 cp -v libusb/libusb.h $target/include/libusbx-1.0
14 # 32 bit binaries
16 target=e:/dailies/$date/MinGW32
17 git clean -fdx
18 # Not using debug (-g) in CFLAGS DRAMATICALLY reduces the size of the binaries
19 export CFLAGS="-O2 -m32"
20 export LDFLAGS="-m32"
21 export RCFLAGS="--target=pe-i386"
22 export DLLTOOLFLAGS="-m i386 -f --32"
23 echo `pwd`
24 (glibtoolize --version) < /dev/null > /dev/null 2>&1 && LIBTOOLIZE=glibtoolize || LIBTOOLIZE=libtoolize
25 $LIBTOOLIZE --copy --force || exit 1
26 aclocal || exit 1
27 autoheader || exit 1
28 autoconf || exit 1
29 automake -a -c || exit 1
30 ./configure
31 make -j2
32 mkdir -p $target/static
33 mkdir -p $target/dll
34 cp -v libusb/.libs/libusb-1.0.a $target/static
35 cp -v libusb/.libs/libusb-1.0.dll $target/dll
36 cp -v libusb/.libs/libusb-1.0.dll.a $target/dll
37 make clean -j2
40 # 64 bit binaries
42 target=e:/dailies/$date/MinGW64
43 export CFLAGS="-O2"
44 export LDFLAGS=""
45 export RCFLAGS=""
46 export DLLTOOLFLAGS=""
47 ./configure
48 make -j2
49 mkdir -p $target/static
50 mkdir -p $target/dll
51 cp -v libusb/.libs/libusb-1.0.a $target/static
52 cp -v libusb/.libs/libusb-1.0.dll $target/dll
53 cp -v libusb/.libs/libusb-1.0.dll.a $target/dll
54 cd $PWD