Skip to content

Commit

Permalink
split variable file
Browse files Browse the repository at this point in the history
  • Loading branch information
Raffaello committed May 10, 2020
1 parent 79fdfc6 commit c8a3f41
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
4 changes: 3 additions & 1 deletion azure-pipelines/analyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ pr:
- LICENSE

variables:
- template: variables.yml
- template: variables/global.yml
- template: variables/images.yml
- template: variables/build_switches.yml

stages:
- stage: Dep
Expand Down
6 changes: 6 additions & 0 deletions azure-pipelines/variables/build_switches.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
variables:
SDL2_STATIC: ON
BUILD_TESTING: ON
BUILD_SHARED_LIBS: ON
BUILD_EXAMPLES: ON
BUILD_SNAPSHOT: OFF
5 changes: 5 additions & 0 deletions azure-pipelines/variables/global.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
variables:
CACHE_VCPKG_KEY: v4 | vcpkg-root
VCPKG_CMAKE: "$(Build.SourcesDirectory)/vcpkg/scripts/buildsystems/vcpkg.cmake"
CMAKE_ARGS: -DWITH_SDL2_STATIC=$(SDL2_STATIC) -DBUILD_TESTING=$(BUILD_TESTING) -DBUILD_SHARED_LIBS=$(BUILD_SHARED_LIBS) -DBUILD_EXAMPLES=$(BUILD_EXAMPLES) -DBUILD_SNAPSHOT=$(BUILD_SNAPSHOT)
CMAKE_IGNORE_PATH_WIN: "C:/MinGW/bin;C:/Strawberry/c/bin;C:/Program Files (x86)/LLVM/bin;C:/ProgramData/chocolatey/bin"
4 changes: 4 additions & 0 deletions azure-pipelines/variables/images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
variables:
windows_image: 'windows-2019'
linux_image: 'ubuntu-18.04'
mac_image: 'macOS-10.15'

0 comments on commit c8a3f41

Please sign in to comment.