2018-03-03 19:06:47 +00:00
|
|
|
image:
|
2017-11-13 15:05:49 +00:00
|
|
|
- Visual Studio 2015
|
2017-11-13 15:36:11 +00:00
|
|
|
|
2017-11-13 15:05:49 +00:00
|
|
|
build:
|
2018-03-03 19:06:47 +00:00
|
|
|
parallel: true
|
2017-11-13 15:05:49 +00:00
|
|
|
verbosity: detailed
|
|
|
|
|
|
|
|
configuration:
|
|
|
|
- Release
|
2018-03-03 19:06:47 +00:00
|
|
|
|
2017-11-13 15:05:49 +00:00
|
|
|
environment:
|
|
|
|
matrix:
|
|
|
|
- platform: x86
|
|
|
|
glib-url: http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.28/glib_2.28.8-1_win32.zip
|
|
|
|
glib-dev-url: http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.28/glib-dev_2.28.8-1_win32.zip
|
|
|
|
pkg-config-url: http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config_0.26-1_win32.zip
|
|
|
|
gettext-url: http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime_0.18.1.1-2_win32.zip
|
|
|
|
proxy-libintl-dev-url: http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/proxy-libintl-dev_20100902_win32.zip
|
|
|
|
|
|
|
|
- platform: x64
|
|
|
|
glib-url: http://ftp.gnome.org/pub/gnome/binaries/win64/glib/2.26/glib_2.26.1-1_win64.zip
|
|
|
|
glib-dev-url: http://ftp.gnome.org/pub/gnome/binaries/win64/glib/2.26/glib-dev_2.26.1-1_win64.zip
|
|
|
|
pkg-config-url: http://ftp.gnome.org/pub/gnome/binaries/win64/dependencies/pkg-config_0.23-2_win64.zip
|
2018-05-28 18:03:47 +00:00
|
|
|
gettext-url: http://ftp.gnome.org/pub/gnome/binaries/win64/dependencies/gettext-runtime_0.18.1.1-2_win64.zip
|
|
|
|
proxy-libintl-dev-url: http://ftp.gnome.org/pub/gnome/binaries/win64/dependencies/proxy-libintl-dev_20100902_win64.zip
|
|
|
|
|
|
|
|
- platform: x86
|
|
|
|
glib-url: http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.16/glib_2.16.6-1_win32.zip
|
|
|
|
glib-dev-url: http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.16/glib-dev_2.16.6-1_win32.zip
|
|
|
|
pkg-config-url: http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config_0.26-1_win32.zip
|
|
|
|
gettext-url: http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime_0.18.1.1-2_win32.zip
|
|
|
|
proxy-libintl-dev-url: http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/proxy-libintl-dev_20100902_win32.zip
|
|
|
|
|
|
|
|
- platform: x64
|
|
|
|
glib-url: http://ftp.acc.umu.se/pub/gnome/binaries/win64/glib/2.24/glib_2.24.2-2_win64.zip
|
|
|
|
glib-dev-url: http://ftp.acc.umu.se/pub/gnome/binaries/win64/glib/2.24/glib-dev_2.24.0-1_win64.zip
|
|
|
|
pkg-config-url: http://ftp.gnome.org/pub/gnome/binaries/win64/dependencies/pkg-config_0.23-2_win64.zip
|
2017-11-13 15:05:49 +00:00
|
|
|
gettext-url: http://ftp.gnome.org/pub/gnome/binaries/win64/dependencies/gettext-runtime_0.18.1.1-2_win64.zip
|
|
|
|
proxy-libintl-dev-url: http://ftp.gnome.org/pub/gnome/binaries/win64/dependencies/proxy-libintl-dev_20100902_win64.zip
|
|
|
|
|
2018-03-03 19:06:47 +00:00
|
|
|
init:
|
|
|
|
- set TARGET_PLATFORM=
|
|
|
|
- if "%platform%"=="x64" ( set TARGET_PLATFORM= Win64)
|
|
|
|
- echo %TARGET_PLATFORM%
|
|
|
|
- echo %APPVEYOR_BUILD_WORKER_IMAGE%
|
2018-08-08 18:12:37 +00:00
|
|
|
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" ( set "generator=Visual Studio 15 2017%TARGET_PLATFORM%" && set "toolset=v141_xp" )
|
|
|
|
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" ( set "generator=Visual Studio 14 2015%TARGET_PLATFORM%" && set "toolset=v140_xp" )
|
2018-03-03 19:06:47 +00:00
|
|
|
- echo %generator%
|
2018-08-08 18:12:37 +00:00
|
|
|
- echo %toolset%
|
2018-03-03 19:06:47 +00:00
|
|
|
|
2017-11-13 15:05:49 +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-11-13 15:05:49 +00:00
|
|
|
- mkdir c:\deps
|
|
|
|
- cd c:\deps
|
|
|
|
- curl -fsS -o glib.zip %glib-url%
|
|
|
|
- curl -fsS -o glib-dev.zip %glib-dev-url%
|
|
|
|
- curl -fsS -o pkg-config.zip %pkg-config-url%
|
|
|
|
- curl -fsS -o gettext.zip %gettext-url%
|
|
|
|
- curl -fsS -o libintl-dev.zip %proxy-libintl-dev-url%
|
|
|
|
- 7z x glib.zip > NUL
|
|
|
|
- 7z x glib-dev.zip > NUL
|
|
|
|
- 7z x pkg-config.zip > NUL
|
|
|
|
- 7z x gettext.zip > NUL
|
|
|
|
- 7z x libintl-dev.zip > NUL
|
|
|
|
- SET PATH=C:\deps\bin;%PATH%
|
|
|
|
|
|
|
|
build_script:
|
|
|
|
# - call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
|
|
|
|
# - call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
|
|
|
|
- cd C:\projects\fluidsynth
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2018-08-08 18:12:37 +00:00
|
|
|
- cmake -G "%generator%" -T "%toolset%" ..
|
2018-08-05 15:55:07 +00:00
|
|
|
- cmake --build . --config Release
|
|
|
|
- cmake --build . --config Release --target check # build and exec unittests
|
2018-03-03 19:06:47 +00:00
|
|
|
|
2017-11-13 15:05:49 +00:00
|
|
|
after_build:
|
2018-05-20 08:28:42 +00:00
|
|
|
- 7z a fluidsynth-%platform%.zip %APPVEYOR_BUILD_FOLDER%\build\src\Release\* c:\deps\bin\libglib*.dll c:\deps\bin\libgthread*.dll c:\deps\bin\*intl*.dll
|
2017-11-13 15:05:49 +00:00
|
|
|
|
|
|
|
artifacts:
|
2018-05-20 08:28:42 +00:00
|
|
|
- path: build/fluidsynth-%platform%.zip
|
2017-11-13 15:05:49 +00:00
|
|
|
name: FluidSynth
|