From fdfa8ba17d9731724ca57e63172a618f4e155575 Mon Sep 17 00:00:00 2001 From: "Ricardo Constantino (:RiCON)" <wiiaboo@gmail.com> Date: Thu, 28 Jul 2016 01:58:38 +0100 Subject: [PATCH] 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> --- appveyor.yml | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 8763607..58f9134 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -8,10 +8,32 @@ platform: - 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 -- GitLab