diff options
author | hacker2490 <hacker2490@outlook.com> | 2016-03-03 17:01:37 +0530 |
---|---|---|
committer | Ludovic Rousseau <ludovic.rousseau@free.fr> | 2016-03-06 21:55:28 +0100 |
commit | 40fb6ff0a0cb67343b722a6b6227f21142cb18cd (patch) | |
tree | 0436ef91f8eda0fabf7cfb5960c5ba3444efcc36 | |
parent | ba9eef2f61fb8c4e1615ed074dca94380d6c279b (diff) | |
download | libusb-40fb6ff0a0cb67343b722a6b6227f21142cb18cd.tar.gz |
AppVeyor: use a .bat file now
- 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
-rw-r--r-- | appveyor.yml | 6 | ||||
-rw-r--r-- | msvc/appveyor.bat | 28 |
2 files changed, 33 insertions, 1 deletions
diff --git a/appveyor.yml b/appveyor.yml index af5d08f..598db92 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -5,6 +5,10 @@ configuration: platform: - x64 - Win32 +build: + project: msvc\libusb_2013.sln + parallel: true + verbosity: detailed environment: matrix: - libusb_2015: msvc\libusb_2015.sln @@ -19,4 +23,4 @@ build_script: msbuild %libusb_2012% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" - msbuild %libusb_2010% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" + msvc/appveyor.bat diff --git a/msvc/appveyor.bat b/msvc/appveyor.bat new file mode 100644 index 0000000..779af59 --- /dev/null +++ b/msvc/appveyor.bat @@ -0,0 +1,28 @@ +echo on +SetLocal EnableDelayedExpansion + +if [%Configuration%] NEQ [Debug] goto releasex64 +if [%Configuration%] NEQ [Release] goto debugx64 + +:debugx64 +if [%Platform%] NEQ [x64] goto debugWin32 +if [%Configuration%] NEQ [Debug] exit 0 +call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /Debug /x64 +msbuild %libusb_2010% /p:Configuration=Debug,Platform=x64 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" + +:releasex64 +if [%Platform%] NEQ [x64] goto releaseWin32 +if [%Configuration%] NEQ [Release] exit 0 +call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /Release /x64 +msbuild %libusb_2010% /p:Configuration=Release,Platform=x64 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" + +:debugWin32 +if [%Platform%] NEQ [Win32] exit 0 +if [%Configuration%] NEQ [Debug] exit 0 +msbuild %libusb_2010% /p:Configuration=Debug,Platform=Win32 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" + +:releaseWin32 +if [%Platform%] NEQ [Win32] exit 0 +if [%Configuration%] NEQ [Release] exit 0 +msbuild %libusb_2010% /p:Configuration=Release,Platform=Win32 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" + |