summaryrefslogtreecommitdiffstats
path: root/appveyor.yml
blob: 048b9a2e374fb0cc3f59148f2c2b96a23c90c24e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '2.1.{build}'

# branches to build
branches:
  # whitelist
  only:
    - master

image:
#- Visual Studio 2015
- Visual Studio 2017

environment: 
  matrix:
    # Win32/x64/Debug
    - platform: x64
      configuration: Debug
      cmake_args:
      
    # Win32/x64/Release
    - platform: x64
      configuration: Release
      cmake_args:
      
    # UWP/x64/Debug
    - platform: x64
      configuration: Debug
      cmake_args: -D CMAKE_SYSTEM_NAME=WindowsStore -D CMAKE_SYSTEM_VERSION=10.0
  
    # UWP/x64/Release
    - platform: x64
      configuration: Release
      cmake_args: -D CMAKE_SYSTEM_NAME=WindowsStore -D CMAKE_SYSTEM_VERSION=10.0
      
    # Win32/x86/Release
    - platform: Win32
      configuration: Release
      cmake_args:
  
    # UWP/x86/Release
    - platform: Win32
      configuration: Release
      cmake_args: -D CMAKE_SYSTEM_NAME=WindowsStore -D CMAKE_SYSTEM_VERSION=10.0
      
    # Win32-8.1SDK/x64/Release
    - platform: x64
      configuration: Release
      cmake_args: -D CMAKE_SYSTEM_VERSION=8.1
  
# clone directory
clone_folder: c:\projects\DiligentCore

install:
  # Install a recent CMake
  - set CMAKE_URL="https://cmake.org/files/v3.11/cmake-3.11.4-win64-x64.zip"
  - appveyor DownloadFile %CMAKE_URL% -FileName cmake.zip
  - 7z x cmake.zip -oC:\projects\deps > nul
  - move C:\projects\deps\cmake-* C:\projects\deps\cmake # Move to a version-agnostic directory
  - set PATH=C:\projects\deps\cmake\bin;%PATH%
  - cmake --version
  - echo %PLATFORM%
  - if "%PLATFORM%"=="x64" ( set generator="Visual Studio 15 2017 Win64" ) else ( set generator="Visual Studio 15 2017" )
  
before_build:
  - cd c:\projects\DiligentCore
  - echo %generator%
  - echo %cmake_args%
  - cmake %cmake_args% -H. -B./cmk_build -G %generator%

build:
  project: c:\projects\DiligentCore\cmk_build\Project.sln
  verbosity: minimal
  parallel: true