2018-03-03 19:06:47 +00:00
|
|
|
image:
|
2017-12-14 18:59:50 +00:00
|
|
|
- Visual Studio 2015
|
2018-03-03 19:06:47 +00:00
|
|
|
- Visual Studio 2017
|
2017-12-14 18:59:50 +00:00
|
|
|
|
|
|
|
build:
|
2018-03-03 19:06:47 +00:00
|
|
|
parallel: true
|
2017-12-14 18:59:50 +00:00
|
|
|
verbosity: detailed
|
|
|
|
|
|
|
|
configuration:
|
|
|
|
- Release
|
|
|
|
|
|
|
|
environment:
|
|
|
|
# update the vcpkg cache even if build fails
|
|
|
|
APPVEYOR_SAVE_CACHE_ON_ERROR: true
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
- platform: x86
|
2018-03-03 19:06:47 +00:00
|
|
|
CMAKE_FLAGS:
|
|
|
|
|
|
|
|
- platform: x86
|
|
|
|
CMAKE_FLAGS: -Denable-network=0
|
|
|
|
|
|
|
|
- platform: x86
|
|
|
|
CMAKE_FLAGS: -DBUILD_SHARED_LIBS=0
|
|
|
|
|
|
|
|
- platform: x64
|
|
|
|
CMAKE_FLAGS:
|
|
|
|
|
|
|
|
- platform: x64
|
|
|
|
CMAKE_FLAGS: -Denable-network=0
|
2017-12-14 18:59:50 +00:00
|
|
|
|
|
|
|
- platform: x64
|
2018-03-03 19:06:47 +00:00
|
|
|
CMAKE_FLAGS: -DBUILD_SHARED_LIBS=0
|
|
|
|
|
|
|
|
# - platform: ARM ## currently fails to build pcre:arm-windows
|
2017-12-14 18:59:50 +00:00
|
|
|
|
|
|
|
cache:
|
|
|
|
- c:\Tools\vcpkg\installed
|
|
|
|
|
2018-03-03 19:06:47 +00:00
|
|
|
init:
|
|
|
|
- set TARGET_PLATFORM=
|
|
|
|
- if "%platform%"=="x64" ( set TARGET_PLATFORM= Win64)
|
|
|
|
- if "%platform%"=="ARM" ( set TARGET_PLATFORM= ARM)
|
|
|
|
- echo %TARGET_PLATFORM%
|
|
|
|
- echo %APPVEYOR_BUILD_WORKER_IMAGE%
|
|
|
|
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" ( set "generator=Visual Studio 15 2017%TARGET_PLATFORM%" )
|
|
|
|
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" ( set "generator=Visual Studio 14 2015%TARGET_PLATFORM%" )
|
|
|
|
- echo %generator%
|
|
|
|
|
2017-12-14 18:59:50 +00:00
|
|
|
install:
|
2018-03-03 19:06:47 +00:00
|
|
|
# make sure the latest version of git is installed
|
|
|
|
- choco upgrade git -y
|
2017-12-14 18:59:50 +00:00
|
|
|
- vcpkg install glib:%platform%-windows
|
|
|
|
|
|
|
|
build_script:
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2018-03-03 19:06:47 +00:00
|
|
|
- cmake -G "%generator%" %CMAKE_FLAGS% -Denable-pkgconfig=0 -DCMAKE_TOOLCHAIN_FILE=c:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake ..
|
2017-12-14 18:59:50 +00:00
|
|
|
- cmake --build . --config Release
|
|
|
|
|
|
|
|
after_build:
|
|
|
|
- 7z a fluidsynth.zip %APPVEYOR_BUILD_FOLDER%\build\src\Release\*
|
|
|
|
|
|
|
|
artifacts:
|
|
|
|
- path: build/fluidsynth.zip
|
|
|
|
name: FluidSynth
|