summaryrefslogtreecommitdiff
path: root/msvc
diff options
context:
space:
mode:
authorChris Dickens <christopher.a.dickens@gmail.com>2018-01-08 20:41:50 -0800
committerChris Dickens <christopher.a.dickens@gmail.com>2018-01-08 21:03:50 -0800
commitca0b6c09fac0d9144b5397cbf6cca3615ed085eb (patch)
treeea5c5e613b75621a8e73c56520d2f51d97014248 /msvc
parentd88c58eb5b84b04d6253720f630f3c7facc8fc52 (diff)
downloadlibusb-ca0b6c09fac0d9144b5397cbf6cca3615ed085eb.tar.gz
Fix appveyor scripts for Cygwin and MinGW to build as intended
The sub-directory created to store the generated files and build objects was not being used as intended, because each invocation of the bash starts in the home directory. Fix this by changing to the intended directory prior to each command invocation. Also replace the invocation of autogen.sh with bootstrap.sh, since using autogen.sh calls ./configure and we weren't using the results of that work. Instead we call configure directly from the sub-directory while enabling the examples and test builds (for Cygwin) as autogen.sh would do. Also fix the invalid value for the --build option provided to the x64 build of MinGW. Finally, propagate errors from each script command so that failures are caught and reported. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'msvc')
-rw-r--r--msvc/appveyor.bat13
1 files changed, 6 insertions, 7 deletions
diff --git a/msvc/appveyor.bat b/msvc/appveyor.bat
index 779af59..b703435 100644
--- a/msvc/appveyor.bat
+++ b/msvc/appveyor.bat
@@ -7,22 +7,21 @@ 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"
+call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /Debug /x64 || exit /B
+msbuild %libusb_2010% /p:Configuration=Debug,Platform=x64 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" || exit /B
: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"
+call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /Release /x64 || exit /B
+msbuild %libusb_2010% /p:Configuration=Release,Platform=x64 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" || exit /B
: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"
+msbuild %libusb_2010% /p:Configuration=Debug,Platform=Win32 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" || exit /B
: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"
-
+msbuild %libusb_2010% /p:Configuration=Release,Platform=Win32 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" || exit /B