| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- version: build.{build}
- image: Visual Studio 2017
- environment:
- FREETYPE_VER: 2.10.1
- matrix:
- - VS_GENERATOR: Visual Studio 15 2017 Win64
- PLATFORM_NAME: win64
- - VS_GENERATOR: Visual Studio 15 2017
- PLATFORM_NAME: win32
- install:
- - cmd: |-
- cd Dependencies
- appveyor DownloadFile https://github.com/ubawurinna/freetype-windows-binaries/releases/download/v%FREETYPE_VER%/freetype.zip
- unzip -o freetype.zip -d freetype_tmp
- mv freetype_tmp/include include
- mv freetype_tmp/%PLATFORM_NAME% lib
-
- cd ..
- mkdir Build-Dynamic, Build-Static
-
- cd Build-Dynamic
- cmake -G "%VS_GENERATOR%" -DBUILD_SHARED_LIBS=ON -DBUILD_SAMPLES=ON ..
- cd ../Build-Static
- cmake -G "%VS_GENERATOR%" -DBUILD_SHARED_LIBS=OFF -DBUILD_SAMPLES=OFF ..
-
- cd ..
-
- build_script:
- - cmd: |-
- msbuild Build-Dynamic/RmlUi.sln /p:configuration=debug /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
-
- msbuild Build-Dynamic/RmlUi.sln /p:configuration=release /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
-
- msbuild Build-Static/RmlUi.sln /p:configuration=debug /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
-
- msbuild Build-Static/RmlUi.sln /p:configuration=release /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
-
- after_build:
- - cmd: |-
- mkdir Bin
- cd Bin
- mkdir Dynamic-Debug, Dynamic-Release, Static-Debug, Static-Release
- cp ../Build-Dynamic/Debug/Rml*.{lib,dll,pdb} Dynamic-Debug
- cp ../Build-Dynamic/Release/Rml*.{lib,dll} Dynamic-Release
- cp ../Build-Static/Debug/Rml*.{lib,pdb} Static-Debug
- cp ../Build-Static/Release/Rml*.lib Static-Release
- cd ..
-
- cp Build-Dynamic/Release/*.exe Samples
- cp Bin/Dynamic-Release/*.dll Samples
- cp Dependencies/lib/*.dll Samples
- mv Dependencies/lib/ Dependencies/freetype-%FREETYPE_VER%
- cp Dependencies/freetype_tmp/*.TXT Dependencies/freetype-%FREETYPE_VER%
-
- IF NOT "%APPVEYOR_REPO_TAG_NAME%"=="" SET RMLUI_VERSION= %APPVEYOR_REPO_TAG_NAME%
-
- echo RmlUi%RMLUI_VERSION% library and sample binaries for %PLATFORM_NAME%.> Readme.txt& echo.>>Readme.txt
- echo https://github.com/mikke89/RmlUi>> Readme.txt& echo.>>Readme.txt
- echo Built using %VS_GENERATOR% on %APPVEYOR_REPO_COMMIT_TIMESTAMP:~0,10% (build %APPVEYOR_BUILD_NUMBER%).>> Readme.txt
- echo Commit id: %APPVEYOR_REPO_COMMIT%.>> Readme.txt
-
- 7z a RmlUi-%PLATFORM_NAME%.zip Bin/ Include/ Readme.txt changelog.md LICENSE Dependencies/freetype-%FREETYPE_VER%/ Samples/
-
- mkdir Samples\Dependencies\freetype-%FREETYPE_VER%
- cp Dependencies/freetype-%FREETYPE_VER%/*.TXT Samples/Dependencies/freetype-%FREETYPE_VER%
- IF "%PLATFORM_NAME%"=="win64" 7z a RmlUi-%PLATFORM_NAME%-samples-only.zip LICENSE .\Samples\* -r -xr!src\ -x!shell\ -x!luainvaders\
-
- artifacts:
- - path: RmlUi-win64.zip
- - path: RmlUi-win64-samples-only.zip
- - path: RmlUi-win32.zip
- deploy:
- release: RmlUi $(APPVEYOR_REPO_TAG_NAME)
- description: 'Release description'
- provider: GitHub
- auth_token:
- secure: g/WlXrOszpqKYC++IvUvNOPhuEeHbMm+2/TWzcgQko+nIGKmjvfAWUxouNhgsUy9
- artifact: /.*\.zip/
- draft: true
- prerelease: false
- on:
- APPVEYOR_REPO_TAG: true
|