2 # produce the MinGW binary files for snapshots
3 # !!!THIS SCRIPT IS FOR INTERNAL DEVELOPER USE ONLY!!!
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
16 target=e:/dailies/$date/MinGW32
18 # Not using debug (-g) in CFLAGS DRAMATICALLY reduces the size of the binaries
19 export CFLAGS="-O2 -m32"
21 export RCFLAGS="--target=pe-i386"
22 export DLLTOOLFLAGS="-m i386 -f --32"
24 (glibtoolize --version) < /dev/null > /dev/null 2>&1 && LIBTOOLIZE=glibtoolize || LIBTOOLIZE=libtoolize
25 $LIBTOOLIZE --copy --force || exit 1
29 automake -a -c || exit 1
32 mkdir -p $target/static
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
42 target=e:/dailies/$date/MinGW64
46 export DLLTOOLFLAGS=""
49 mkdir -p $target/static
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