mirror of
https://github.com/RPCS3/libusb.git
synced 2024-11-27 04:00:57 +00:00
AppVeyor: add cygwin and minGW support
- Changes in platform configuration, x86 breaks the build - Solution file does not contain platform for Any CPU, fixing it to Win32 - Added Multiple solutions to appveyor configuration file - Added batch script for VS2010 builds - Added fixes to appveyor.bat file and appveyor.yml - Fixes for Platform and Configuration in appveyor.bat - Fixed windows exit code, Appveyor reports exit on succesful build - Multiple Builds in same platform and configuration, fixed it - Added appveyor configuration to compile using MinGW 32-bit and 64-bits - Minor Fixes for batch file and Added cygwin build script Signed-off-by: Ludovic Rousseau <ludovic.rousseau@free.fr>
This commit is contained in:
parent
4cfd001b82
commit
a42b524731
15
appveyor.yml
15
appveyor.yml
@ -15,6 +15,17 @@ environment:
|
||||
libusb_2013: msvc\libusb_2013.sln
|
||||
libusb_2012: msvc\libusb_2012.sln
|
||||
libusb_2010: msvc\libusb_2010.sln
|
||||
install:
|
||||
|
||||
- cmd: >-
|
||||
rem Copying libusb to cygwin home directory
|
||||
|
||||
xcopy /S C:\projects\libusb C:\cygwin\home\appveyor\
|
||||
|
||||
rem Copying libusb to MinGW home directory
|
||||
|
||||
xcopy /S C:\projects\libusb C:\msys64\home\appveyor\
|
||||
|
||||
build_script:
|
||||
- cmd: >-
|
||||
msbuild %libusb_2015% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
||||
@ -24,3 +35,7 @@ build_script:
|
||||
msbuild %libusb_2012% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
|
||||
|
||||
msvc/appveyor.bat
|
||||
|
||||
appveyor_minGW.bat
|
||||
|
||||
appveyor_cygwin.bat
|
||||
|
14
appveyor_cygwin.bat
Normal file
14
appveyor_cygwin.bat
Normal file
@ -0,0 +1,14 @@
|
||||
echo on
|
||||
SetLocal EnableDelayedExpansion
|
||||
|
||||
if [%Configuration%] NEQ [Debug] goto releaseWin32
|
||||
|
||||
:releaseWin32
|
||||
if [%Platform%] NEQ [Win32] exit 0
|
||||
if [%Configuration%] NEQ [Release] exit 0
|
||||
C:\cygwin\bin\bash -e -l -c "mkdir build-Win32-cygwin"
|
||||
C:\cygwin\bin\bash -e -l -c ./autogen.sh
|
||||
C:\cygwin\bin\bash -e -l -c "cd build-Win32-cygwin"
|
||||
C:\cygwin\bin\bash -e -l -c "build-Win32-cygwin/../configure"
|
||||
C:\cygwin\bin\bash -e -l -c "make -j4"
|
||||
C:\cygwin\bin\bash -e -l -c "make install"
|
24
appveyor_minGW.bat
Normal file
24
appveyor_minGW.bat
Normal file
@ -0,0 +1,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"
|
@ -1 +1 @@
|
||||
#define LIBUSB_NANO 11106
|
||||
#define LIBUSB_NANO 11108
|
||||
|
Loading…
Reference in New Issue
Block a user