Home | History | Annotate | Download | only in vulkan-validation-layers
      1 # Windows Build Configuration for AppVeyor
      2 # http://www.appveyor.com/docs/appveyor-yml
      3 #
      4 
      5 # This version starts a separte job for each platform config
      6 # in order to get around the AppVeyor limit of 60 mins per job.
      7 
      8 # build version format
      9 version: "{build}"
     10 
     11 # Free accounts have a max of 1, but ask anyway.
     12 max_jobs: 4
     13 
     14 os:
     15   - Visual Studio 2013
     16 
     17 environment:
     18   PYTHON_PATH: "C:/Python35"
     19   PYTHON_PACKAGE_PATH: "C:/Python35/Scripts"
     20 
     21 # Cache the external directory to improve build times.
     22 # If the appveyor config file changes, invalidate the cache.
     23 cache:
     24     - external -> .appveyor.yml
     25 
     26 branches:
     27   only:
     28     - master
     29 
     30 before_build:
     31   - "SET PATH=C:\\Python35;C:\\Python35\\Scripts;%PATH%"
     32   - echo.
     33   - echo Starting build for %APPVEYOR_REPO_NAME%
     34   - echo Update external sources
     35   - if %PLATFORM% == Win32 (if %CONFIGURATION% == Debug (update_external_sources.bat --32 --debug))
     36   - if %PLATFORM% == Win32 (if %CONFIGURATION% == Release (update_external_sources.bat --32 --release))
     37   - if %PLATFORM% == x64 (if %CONFIGURATION% == Debug (update_external_sources.bat --64 --debug))
     38   - if %PLATFORM% == x64 (if %CONFIGURATION% == Release (update_external_sources.bat --64 --release))
     39   # Determine the appropriate CMake generator for the current version of Visual Studio
     40   - echo Determining VS version
     41   - python .\scripts\determine_vs_version.py > vsversion.tmp
     42   - set /p VS_VERSION=< vsversion.tmp
     43   - echo Detected Visual Studio Version as %VS_VERSION%
     44   - del /Q /F vsversion.tmp
     45   - if %PLATFORM% == Win32 (set GENERATOR="Visual Studio %VS_VERSION%")
     46   - if %PLATFORM% == x64 (set GENERATOR="Visual Studio %VS_VERSION% Win64")
     47   # Generate build files using CMake for the build step.
     48   - echo Generating CMake files for %GENERATOR%
     49   - cd %TOP_DIR%
     50   - mkdir build
     51   - cd build
     52   - cmake -G %GENERATOR% ..
     53   - echo Building platform=%PLATFORM% configuration=%CONFIGURATION%
     54 
     55 platform:
     56   - Win32
     57   - x64
     58 
     59 configuration:
     60   - Release
     61   - Debug
     62 
     63 build:
     64   parallel: true                  # enable MSBuild parallel builds
     65   project: build/VULKAN.sln       # path to Visual Studio solution or project
     66   verbosity: quiet                # quiet|minimal|normal|detailed
     67