shithub: opusfile

Download patch

ref: fdfa8ba17d9731724ca57e63172a618f4e155575
parent: 586d32502ecfac3043fa7cadd2ace34da52578ca
author: Ricardo Constantino (:RiCON) <wiiaboo@gmail.com>
date: Wed Jul 27 21:58:38 EDT 2016

appveyor: Compile static openssl from git to use with opusfile.

Stable branch used because master is on 1.1.x which doesn't work.

Signed-off-by: Ralph Giles <giles@thaumas.net>

--- a/appveyor.yml
+++ b/appveyor.yml
@@ -8,10 +8,32 @@
 - x64
 
 install:
-- git clone -q https://github.com/xiph/opus.git %APPVEYOR_BUILD_FOLDER%\..\opus
-- git clone -q https://github.com/xiph/ogg.git %APPVEYOR_BUILD_FOLDER%\..\ogg
-- msbuild "%APPVEYOR_BUILD_FOLDER%\..\opus\win32\VS2015\opus.vcxproj" /m /v:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /p:Configuration=%CONFIGURATION%;Platform=%PLATFORM%
-- msbuild "%APPVEYOR_BUILD_FOLDER%\..\ogg\win32\VS2015\libogg_static.sln" /m /v:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /property:Configuration=%CONFIGURATION%;Platform=%PLATFORM%
+- cd %APPVEYOR_BUILD_FOLDER%\..
+- git clone -q https://github.com/xiph/opus.git opus
+- git clone -q https://github.com/xiph/ogg.git ogg
+- msbuild opus\win32\VS2015\opus.vcxproj /m /v:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /p:Configuration=%CONFIGURATION%;Platform=%PLATFORM%
+- msbuild ogg\win32\VS2015\libogg_static.sln /m /v:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /property:Configuration=%CONFIGURATION%;Platform=%PLATFORM%
+- git clone -q --branch=OpenSSL_1_0_2-stable https://github.com/openssl/openssl.git openssl
+- ps: >-
+        If ($env:Platform -Match "Win32") {
+            $env:VCVARS_PLATFORM="x86"
+            $env:OPENSSL_TARGET="VC-WIN32"
+            $env:DO="do_ms"
+        } Else {
+            $env:VCVARS_PLATFORM="amd64"
+            $env:OPENSSL_TARGET="VC-WIN64A"
+            $env:DO="do_win64a"
+        }
+- call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" %VCVARS_PLATFORM%
+- cd openssl
+# without prefix, libs end up in out32 for both 32 and 64-bit
+- perl Configure %OPENSSL_TARGET% no-asm --prefix=%CD%\%PLATFORM%\Release
+- call ms\%DO%
+- nmake /f ms\nt.mak
+- nmake /f ms\nt.mak install
+# prevents warning 4099 on linking
+- copy /B tmp32\lib.pdb %CD%\%PLATFORM%\Release\lib\lib.pdb
+- cd %APPVEYOR_BUILD_FOLDER%
 
 build:
   project: win32\VS2015\opusfile.sln