diff --git a/appveyor.yml b/appveyor.yml index 8763607ddee31182f8a905d988ed34d819d4ddff..58f9134e0b70522746d218ca3a316efbb5fc2b87 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