This repository has been archived by the owner on Sep 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,25 @@ | ||
version: '{build}' | ||
|
||
environment: | ||
matrix: | ||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013 | ||
PREFIX_MSVC: 2013 | ||
PREFIX_ARCH: x86 | ||
PREFIX_STATIC: ON | ||
|
||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013 | ||
PREFIX_MSVC: 2013 | ||
PREFIX_ARCH: x86 | ||
PREFIX_STATIC: OFF | ||
|
||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||
PREFIX_MSVC: 2015 | ||
PREFIX_ARCH: x86 | ||
PREFIX_STATIC: ON | ||
|
||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||
PREFIX_MSVC: 2015 | ||
PREFIX_ARCH: x86 | ||
PREFIX_STATIC: OFF | ||
|
||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | ||
PREFIX_MSVC: 2017 | ||
PREFIX_ARCH: x86 | ||
PREFIX_STATIC: ON | ||
|
||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | ||
PREFIX_MSVC: 2017 | ||
PREFIX_ARCH: x86 | ||
PREFIX_STATIC: OFF | ||
|
||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | ||
PREFIX_MSVC: 2017 | ||
PREFIX_ARCH: x64 | ||
PREFIX_STATIC: ON | ||
|
||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | ||
PREFIX_MSVC: 2017 | ||
PREFIX_ARCH: x64 | ||
PREFIX_STATIC: OFF | ||
image: Visual Studio 2015 | ||
|
||
build_script: | ||
- mkdir build && cd build | ||
- if [%PREFIX_STATIC%]==[ON] ( | ||
set "PREFIX_DIR=prefix-vc%PREFIX_MSVC%-%PREFIX_ARCH%-static" | ||
) else ( | ||
set "PREFIX_DIR=prefix-vc%PREFIX_MSVC%-%PREFIX_ARCH%" | ||
) | ||
- cmake -DBUILD_STATIC_LIBS=%PREFIX_STATIC% -DBUILD_ARCH=%PREFIX_ARCH% | ||
-DMSVC_VERSION=%PREFIX_MSVC% | ||
-DINSTALL_DIR="%APPVEYOR_BUILD_FOLDER%/%PREFIX_DIR%" .. | ||
- cmake --build . | ||
- cd "%APPVEYOR_BUILD_FOLDER%" | ||
- cmake -E tar cf %PREFIX_DIR%.zip --format=zip %PREFIX_DIR% | ||
- ps: | | ||
$outpath = (Get-Location).Path | ||
Set-Location C:\tools\vcpkg | ||
# Create our own custom triplet, for static-linking of libraries, but dynamic CRT linkage. | ||
Set-Content -Path "triplets/x86-windows-static-dyncrt.cmake" -Value "set(VCPKG_TARGET_ARCHITECTURE x86)`nset(VCPKG_CRT_LINKAGE dynamic)`nset(VCPKG_LIBRARY_LINKAGE static)`n" | ||
git pull 2> $null | ||
bootstrap-vcpkg.bat | ||
vcpkg install curl[sspi] expat freetype libjpeg-turbo libogg libpng ` | ||
libtheora libvorbis libvpx openssl opus pcre speex string-theory zlib ` | ||
--triplet x86-windows-static-dyncrt | ||
vcpkg install python2 --triplet x86-windows | ||
Set-Location C:\tools\vcpkg\installed\x86-windows-static-dyncrt | ||
7z a $outpath\devlibs.zip debug\lib include lib misc share | ||
Set-Location C:\tools\vcpkg\installed\x86-windows | ||
7z a $outpath\devlibs.zip bin debug\bin debug\lib include lib share | ||
artifacts: | ||
- path: prefix-*.zip | ||
- path: devlibs.zip |