forked from libusb/libusb
-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor_minGW.bat
24 lines (21 loc) · 992 Bytes
/
appveyor_minGW.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
echo on
SetLocal EnableDelayedExpansion
if [%Configuration%] NEQ [Debug] goto releasex64
:releasex64
if [%Platform%] NEQ [x64] goto releaseWin32
if [%Configuration%] NEQ [Release] exit 0
C:\msys64\usr\bin\bash -e -l -c "mkdir build-x64"
C:\msys64\usr\bin\bash -e -l -c ./autogen.sh
C:\msys64\usr\bin\bash -e -l -c "cd build-x64"
C:\msys64\usr\bin\bash -e -l -c "build-x64/../configure --prefix=/mingw64 --build=--build= --host=x86_64-w64-mingw32"
C:\msys64\usr\bin\bash -e -l -c "make -j4"
C:\msys64\usr\bin\bash -e -l -c "make install"
:releaseWin32
if [%Platform%] NEQ [Win32] exit 0
if [%Configuration%] NEQ [Release] exit 0
C:\msys64\usr\bin\bash -e -l -c "mkdir build-Win32"
C:\msys64\usr\bin\bash -e -l -c ./autogen.sh
C:\msys64\usr\bin\bash -e -l -c "cd build-Win32"
C:\msys64\usr\bin\bash -e -l -c "build-Win32/../configure --prefix=/mingw32 --build=i686-w64-mingw32 --host=i686-w64-mingw32"
C:\msys64\usr\bin\bash -e -l -c "make -j4"
C:\msys64\usr\bin\bash -e -l -c "make install"