summaryrefslogtreecommitdiff
path: root/appveyor.yml
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2019-05-25 08:38:17 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2019-05-29 10:04:38 +0200
commit44ea2bef38f3f66f6c4f2ef5f965c7008e628c26 (patch)
tree99c864eb6a126533a5c8392f66bc67c078fd8bfa /appveyor.yml
parent09eef8af18c7cc1a20f132843880f60f692d76c8 (diff)
downloadcurl-44ea2bef38f3f66f6c4f2ef5f965c7008e628c26.tar.gz
appveyor: add support for other build systems
Introduce BUILD_SYSTEM variable, which is currently always CMake. Closes https://github.com/curl/curl/pull/3941
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml37
1 files changed, 23 insertions, 14 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 1e591b54e..7e7cfc18d 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -3,6 +3,7 @@ version: 7.50.0.{build}
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2015"
+ BUILD_SYSTEM: CMake
PRJ_GEN: "Visual Studio 9 2008"
PRJ_CFG: Release
OPENSSL: OFF
@@ -13,6 +14,7 @@ environment:
DISABLED_TESTS: ""
COMPILER_PATH: ""
- APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2017"
+ BUILD_SYSTEM: CMake
PRJ_GEN: "Visual Studio 15 2017 Win64"
PRJ_CFG: Debug
OPENSSL: OFF
@@ -23,6 +25,7 @@ environment:
DISABLED_TESTS: ""
COMPILER_PATH: ""
- APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2017"
+ BUILD_SYSTEM: CMake
PRJ_GEN: "Visual Studio 15 2017 Win64"
PRJ_CFG: Release
OPENSSL: ON
@@ -33,6 +36,7 @@ environment:
DISABLED_TESTS: ""
COMPILER_PATH: ""
- APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2015"
+ BUILD_SYSTEM: CMake
PRJ_GEN: "Visual Studio 10 2010 Win64"
PRJ_CFG: Debug
OPENSSL: OFF
@@ -43,6 +47,7 @@ environment:
DISABLED_TESTS: ""
COMPILER_PATH: ""
- APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2017"
+ BUILD_SYSTEM: CMake
PRJ_GEN: "Visual Studio 15 2017 Win64"
PRJ_CFG: Debug
OPENSSL: OFF
@@ -53,6 +58,7 @@ environment:
DISABLED_TESTS: ""
COMPILER_PATH: ""
- APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2017"
+ BUILD_SYSTEM: CMake
PRJ_GEN: "Visual Studio 15 2017 Win64"
PRJ_CFG: Debug
OPENSSL: OFF
@@ -63,6 +69,7 @@ environment:
DISABLED_TESTS: ""
COMPILER_PATH: ""
- APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2015"
+ BUILD_SYSTEM: CMake
PRJ_GEN: "MSYS Makefiles"
PRJ_CFG: Debug
OPENSSL: OFF
@@ -74,6 +81,7 @@ environment:
COMPILER_PATH: "C:\\mingw-w64\\x86_64-8.1.0-posix-seh-rt_v6-rev0\\mingw64\\bin"
MSYS2_ARG_CONV_EXCL: "/*"
- APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2015"
+ BUILD_SYSTEM: CMake
PRJ_GEN: "MSYS Makefiles"
PRJ_CFG: Debug
OPENSSL: OFF
@@ -91,20 +99,21 @@ install:
set "PATH=%COMPILER_PATH%;%PATH%" )
build_script:
- - cmake .
- -G"%PRJ_GEN%"
- -DCMAKE_USE_OPENSSL=%OPENSSL%
- -DCMAKE_USE_WINSSL=%WINSSL%
- -DHTTP_ONLY=%HTTP_ONLY%
- -DBUILD_SHARED_LIBS=%SHARED%
- -DBUILD_TESTING=%TESTING%
- -DCURL_WERROR=ON
- -DENABLE_DEBUG=ON
- -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE=""
- -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG=""
- -DCMAKE_INSTALL_PREFIX="C:/CURL"
- -DCMAKE_BUILD_TYPE=%PRJ_CFG%
- - cmake --build . --config %PRJ_CFG% --clean-first
+ - if %BUILD_SYSTEM%==CMake (
+ cmake .
+ -G"%PRJ_GEN%"
+ -DCMAKE_USE_OPENSSL=%OPENSSL%
+ -DCMAKE_USE_WINSSL=%WINSSL%
+ -DHTTP_ONLY=%HTTP_ONLY%
+ -DBUILD_SHARED_LIBS=%SHARED%
+ -DBUILD_TESTING=%TESTING%
+ -DCURL_WERROR=ON
+ -DENABLE_DEBUG=ON
+ -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE=""
+ -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG=""
+ -DCMAKE_INSTALL_PREFIX="C:/CURL"
+ -DCMAKE_BUILD_TYPE=%PRJ_CFG% &&
+ cmake --build . --config %PRJ_CFG% --clean-first )
test_script:
- if %TESTING%==ON (