···991010image:
1111- Visual Studio 2019
1212-- Visual Studio 2017
13121413init:
1514 - git config --global core.autocrlf input
1615 - echo %APPVEYOR_BUILD_WORKER_IMAGE%
1717- - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" ( set generator="Visual Studio 16 2019%arch%" )
1818- - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" ( set generator="Visual Studio 15 2017%arch%" )
1616+ - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" ( set generator="Visual Studio 16 2019" )
1917 - echo %generator%
20182119···2523install:
2624 - mkdir c:\projects\libs
2725 # Download SDL.
2828- - ps: Start-FileDownload 'https://www.libsdl.org/release/SDL2-devel-2.0.5-VC.zip' 'c:/projects/libs/SDL.zip'
2626+ - ps: Start-FileDownload 'https://www.libsdl.org/release/SDL2-devel-2.0.12-VC.zip' 'c:/projects/libs/SDL.zip'
29273028 # Extract it, put it in the right place, and rename it.
3131- - cd c:\projects\libs && 7z x SDL.zip && ren SDL2-2.0.5 SDL2 && cd c:\projects\SDL_gpu
2929+ - cd c:\projects\libs && 7z x SDL.zip && ren SDL2-2.0.12 SDL2 && cd c:\projects\SDL_gpu
323033313432platform:
···4745 - cd c:\projects\SDL_gpu
4846 - mkdir build
4947 - cd build
5050- - cmd: cmake -G %generator% -A %platform% -DCMAKE_INSTALL_PREFIX=c:\projects\libs\SDL2 -DSDL_gpu_BUILD_DEMOS=ON -DSDL_gpu_BUILD_TESTS=ON -DSDL_gpu_BUILD_TOOLS=ON -DSDL_gpu_BUILD_SHARED=ON -DSDL_gpu_BUILD_STATIC=ON ..
4848+ - if "%configuration%"=="Debug" ( set build_tests=ON )
4949+ - if "%configuration%"=="Debug" ( set build_demos=OFF )
5050+ - if "%configuration%"=="Release" ( set build_tests=OFF )
5151+ - if "%configuration%"=="Release" ( set build_demos=ON )
5252+ - cmd: cmake -G %generator% -A %platform% -DCMAKE_INSTALL_PREFIX=c:\projects\libs\SDL2 -DSDL_gpu_BUILD_DEMOS=%build_demos% -DSDL_gpu_BUILD_TESTS=%build_tests% -DSDL_gpu_BUILD_TOOLS=%build_demos% -DSDL_gpu_BUILD_SHARED=ON -DSDL_gpu_BUILD_STATIC=ON ..
51535254# scripts to run after build
5355after_build: