| 1 | version: BuildNr.{build} |
| 2 | |
| 3 | image: Visual Studio 2017 |
| 4 | |
| 5 | shallow_clone: true |
| 6 | |
| 7 | clone_folder: c:\projects\screensaver.shadertoy |
| 8 | |
| 9 | environment: |
| 10 | app_id: screensaver.shadertoy |
| 11 | |
| 12 | matrix: |
| 13 | - GENERATOR: "Visual Studio 15" |
| 14 | CONFIG: Release |
| 15 | CMAKE_DEFINES: -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_SYSTEM_VERSION="10.0.17763.0" |
| 16 | - GENERATOR: "Visual Studio 15 Win64" |
| 17 | CONFIG: Release |
| 18 | CMAKE_DEFINES: -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_SYSTEM_VERSION="10.0.17763.0" |
| 19 | - GENERATOR: "Visual Studio 15 Win64" |
| 20 | CONFIG: Release |
| 21 | CMAKE_DEFINES: -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION="10.0.17763.0" |
| 22 | - GENERATOR: "Visual Studio 15 ARM" |
| 23 | CONFIG: Release |
| 24 | CMAKE_DEFINES: -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION="10.0.17763.0" |
| 25 | |
| 26 | build_script: |
| 27 | - cd .. |
| 28 | - git clone --branch master --depth=1 https://github.com/xbmc/xbmc.git |
| 29 | - cd %app_id% |
| 30 | - mkdir build |
| 31 | - cd build |
| 32 | - mkdir -p definition\%app_id% |
| 33 | - echo %app_id% %APPVEYOR_BUILD_FOLDER% %APPVEYOR_REPO_COMMIT% > definition\%app_id%\%app_id%.txt |
| 34 | - cmake -T host=x64 -G "%GENERATOR%" %CMAKE_DEFINES% -DADDONS_TO_BUILD=%app_id% -DCMAKE_BUILD_TYPE=%CONFIG% -DADDONS_DEFINITION_DIR=%APPVEYOR_BUILD_FOLDER%/build/definition -DADDON_SRC_PREFIX=../.. -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/cmake/addons |
| 35 | - cmake --build . --config %CONFIG% --target %app_id% |