2012-12-03 18:25:33 +01:00
|
|
|
@echo off
|
2016-06-05 20:12:38 +02:00
|
|
|
rem SoX Resampler Library Copyright (c) 2007-16 robs@users.sourceforge.net
|
2012-12-03 18:25:33 +01:00
|
|
|
rem Licence for this file: LGPL v2.1 See LICENCE for details.
|
|
|
|
|
|
|
|
set build=%1
|
|
|
|
if x%build% == x set build=Release
|
|
|
|
|
2012-12-10 22:21:42 +01:00
|
|
|
rem Prevent interference from any in-tree build
|
|
|
|
del/f CMakeCache.txt
|
|
|
|
|
2012-12-03 18:25:33 +01:00
|
|
|
mkdir %build%
|
|
|
|
cd %build%
|
|
|
|
|
2015-08-21 21:11:30 +02:00
|
|
|
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=%build% -Wno-dev ..
|
2012-12-03 18:25:33 +01:00
|
|
|
if errorlevel 1 goto end
|
|
|
|
|
|
|
|
nmake
|
|
|
|
if errorlevel 1 goto end
|
|
|
|
|
|
|
|
nmake test
|
|
|
|
if errorlevel 1 goto error
|
|
|
|
goto end
|
|
|
|
|
|
|
|
:error
|
|
|
|
echo FAILURE details in Testing\Temporary\LastTest.log
|
|
|
|
|
|
|
|
:end
|