summaryrefslogtreecommitdiff
path: root/appveyor.yml
diff options
context:
space:
mode:
authorMarcel Metz <mmetz@adrian-broher.net>2016-10-06 20:30:56 +0200
committerRalph Giles <giles@thaumas.net>2019-08-07 15:58:05 -0700
commit7d034c60d2ba40116dab64dc0ad748fd30b6b77d (patch)
tree4d525c976560ed1ddf7ff965c77854f6d8dd380b /appveyor.yml
parent934385378f45f11586b03b6214bf5f363649f3b6 (diff)
downloadogg-git-7d034c60d2ba40116dab64dc0ad748fd30b6b77d.tar.gz
Add cmake as build system to AppVeyor configuration
* Use build_script step in AppVeyor configuration. This is a preparation for building with multiple build systems. * Add BUILD_SYSTEM env variable to AppVeyor build matrix. This allows to switch between different build systems when building multiple test matrix configurations. Signed-off-by: Ralph Giles <giles@thaumas.net>
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml25
1 files changed, 20 insertions, 5 deletions
diff --git a/appveyor.yml b/appveyor.yml
index c419edb..d712a40 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -7,13 +7,28 @@ platform:
- Win32
- x64
-build:
- project: win32\VS2015\libogg_static.sln
- parallel: true
- verbosity: minimal
+environment:
+ matrix:
+ - BUILD_SYSTEM: MSVC
+ - BUILD_SYSTEM: CMAKE
+
+
+build_script:
+ - if "%BUILD_SYSTEM%" == "MSVC" (
+ msbuild "%APPVEYOR_BUILD_FOLDER%\win32\VS2015\libogg_static.sln" /m /v:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /property:Configuration=%CONFIGURATION%;Platform=%PLATFORM%
+ )
+ - if "%BUILD_SYSTEM%" == "CMAKE" (
+ mkdir "%APPVEYOR_BUILD_FOLDER%\build" &&
+ pushd "%APPVEYOR_BUILD_FOLDER%\build" &&
+ cmake -A "%PLATFORM%" -G "Visual Studio 14 2015" .. &&
+ cmake --build . --config "%CONFIGURATION%" -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
+ popd
+ )
after_build:
-- cmd: 7z a ogg.zip win32\VS2015\%PLATFORM%\%CONFIGURATION%\libogg_static.lib include\ogg\*.h
+ - if "%BUILD_SYSTEM%" == "MSVC" (
+ 7z a ogg.zip win32\VS2015\%PLATFORM%\%CONFIGURATION%\libogg_static.lib include\ogg\*.h
+ )
artifacts:
- path: ogg.zip