appveyor.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. image: Visual Studio 2015
  2. configuration:
  3. - Debug
  4. - Release
  5. - Release-NoHTTP
  6. platform:
  7. - Win32
  8. - x64
  9. install:
  10. - cd %APPVEYOR_BUILD_FOLDER%\..
  11. - git clone -q https://github.com/xiph/opus.git opus
  12. - git clone -q https://github.com/xiph/ogg.git ogg
  13. - msbuild opus\win32\VS2015\opus.vcxproj /p:Configuration=%CONFIGURATION:-NoHTTP=%;Platform=%PLATFORM% /m /v:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
  14. - msbuild ogg\win32\VS2015\libogg_static.sln /p:Configuration=%CONFIGURATION:-NoHTTP=%;Platform=%PLATFORM% /m /v:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
  15. - if %CONFIGURATION:-NoHTTP=%==%CONFIGURATION% git clone -q --branch=OpenSSL_1_0_2-stable https://github.com/openssl/openssl.git openssl
  16. - ps: >-
  17. If ($env:Platform -Match "Win32") {
  18. $env:VCVARS_PLATFORM="x86"
  19. $env:OPENSSL_TARGET="VC-WIN32"
  20. $env:DO="do_ms"
  21. } Else {
  22. $env:VCVARS_PLATFORM="amd64"
  23. $env:OPENSSL_TARGET="VC-WIN64A"
  24. $env:DO="do_win64a"
  25. }
  26. - if %CONFIGURATION:-NoHTTP=%==%CONFIGURATION% call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" %VCVARS_PLATFORM%
  27. - if %CONFIGURATION:-NoHTTP=%==%CONFIGURATION% cd openssl
  28. # without prefix, libs end up in out32 for both 32 and 64-bit
  29. - if %CONFIGURATION:-NoHTTP=%==%CONFIGURATION% perl Configure %OPENSSL_TARGET% no-asm --prefix=%CD%\%PLATFORM%\Release
  30. - if %CONFIGURATION:-NoHTTP=%==%CONFIGURATION% call ms\%DO%
  31. - if %CONFIGURATION:-NoHTTP=%==%CONFIGURATION% nmake /f ms\nt.mak
  32. - if %CONFIGURATION:-NoHTTP=%==%CONFIGURATION% nmake /f ms\nt.mak install
  33. # prevents warning 4099 on linking
  34. - if %CONFIGURATION:-NoHTTP=%==%CONFIGURATION% copy /B tmp32\lib.pdb %CD%\%PLATFORM%\Release\lib\lib.pdb
  35. - cd %APPVEYOR_BUILD_FOLDER%
  36. build:
  37. project: win32\VS2015\opusfile.sln
  38. parallel: true
  39. verbosity: minimal
  40. after_build:
  41. - 7z a opusfile.zip win32\VS2015\%PLATFORM%\%CONFIGURATION%\opusfile.lib include\opusfile.h
  42. artifacts:
  43. - path: opusfile.zip