appveyor.yml 1.59 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
image: Visual Studio 2015
configuration:
- Debug
- Release

platform:
- Win32
- x64

install:
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
- 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%
37
38
39
40
41
42
43
44
45
46
47

build:
  project: win32\VS2015\opusfile.sln
  parallel: true
  verbosity: minimal

after_build:
- 7z a opusfile.zip win32\VS2015\%PLATFORM%\%CONFIGURATION%\opusfile.lib include\opusfile.h

artifacts:
- path: opusfile.zip