Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3 from zrax/merge-update
Browse files Browse the repository at this point in the history
Update to MSVC 2017, add openalsoft, and merge debug libs into parent (when possible)
  • Loading branch information
zrax authored May 1, 2020
2 parents 165c0ff + 61de5ad commit 0ff8122
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: '{build}'

image: Visual Studio 2015
image: Visual Studio 2017

build_script:
- ps: |
Expand All @@ -14,18 +14,34 @@ build_script:
if ($lastExitCode -ne 0) { throw "Failed to update vcpkg" }
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
zlib openal-soft --triplet x86-windows-static-dyncrt
if ($lastExitCode -ne 0) { throw "Failed to build static libs" }
vcpkg install python2 --triplet x86-windows
if ($lastExitCode -ne 0) { throw "Failed to build dynamic libs" }
vcpkg list
# Merge debug output into root, where possible
Set-Location C:\tools\vcpkg\installed
$debugDirs = @(
"x86-windows-static-dyncrt\debug\lib",
"x86-windows\debug\bin",
"x86-windows\debug\lib"
)
ForEach ($dir in $debugDirs) {
$dest = $dir.replace("\debug\", "\")
Get-ChildItem $dir\*.* | ForEach-Object {
if (-not (Test-Path "$dest\$($_.Name)")) {
Move-Item $_.FullName "$dest\$($_.Name)"
}
}
}
Set-Location C:\tools\vcpkg\installed\x86-windows-static-dyncrt
7z a $outpath\devlibs.zip debug\lib include lib misc share
if ($lastExitCode -ne 0) { throw "Failed to archive static libs" }
Set-Location C:\tools\vcpkg\installed\x86-windows
7z a $outpath\devlibs.zip bin debug\bin debug\lib include lib share
7z a $outpath\devlibs.zip debug\bin debug\lib bin include lib share
if ($lastExitCode -ne 0) { throw "Failed to archive dynamic libs" }
artifacts:
Expand Down

0 comments on commit 0ff8122

Please sign in to comment.