• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1version: '{build}'
2
3clone_depth: 5
4
5branches:
6  except:
7    - coverity_scan
8
9matrix:
10  fast_finish: true
11
12install:
13  - cinst winflexbison
14  - win_flex --version
15  - win_bison --version
16  - appveyor DownloadFile https://www.winpcap.org/install/bin/WpdPack_4_1_2.zip
17  - 7z x .\WpdPack_4_1_2.zip -oc:\projects\libpcap\Win32
18  - appveyor DownloadFile https://npcap.com/dist/npcap-sdk-1.13.zip
19  - 7z x .\npcap-sdk-1.13.zip -oc:\projects\libpcap\Win32\npcap-sdk-1.13
20  - appveyor DownloadFile https://support.riverbed.com/bin/support/download?sid=l3vk3eu649usgu3rj60uncjqqu -FileName AirPcap_Devpack.zip
21  - 7z x .\AirPcap_Devpack.zip -oc:\projects\libpcap\Win32
22
23environment:
24  matrix:
25    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
26      GENERATOR: "MinGW Makefiles"
27      SDK: WpdPack
28      AIRPCAP: -DDISABLE_AIRPCAP=YES
29      MINGW_ROOT: C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0
30    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
31      GENERATOR: "Visual Studio 14 2015 Win64"
32      SDK: WpdPack
33      AIRPCAP: -DDISABLE_AIRPCAP=YES
34    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
35      GENERATOR: "Visual Studio 14 2015"
36      SDK: npcap-sdk-1.12
37    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
38      GENERATOR: "Visual Studio 14 2015 Win64"
39      SDK: npcap-sdk-1.12
40      AIRPCAP: -DDISABLE_AIRPCAP=YES
41    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
42      GENERATOR: "Visual Studio 15 2017"
43      SDK: WpdPack
44    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
45      GENERATOR: "Visual Studio 15 2017 Win64"
46      SDK: WpdPack
47      AIRPCAP: -DDISABLE_AIRPCAP=YES
48    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
49      GENERATOR: "Visual Studio 15 2017"
50      SDK: npcap-sdk-1.12
51      AIRPCAP: -DDISABLE_AIRPCAP=YES
52    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
53      GENERATOR: "Visual Studio 15 2017 Win64"
54      SDK: npcap-sdk-1.12
55      AIRPCAP: -DDISABLE_AIRPCAP=YES
56    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
57      GENERATOR: "Visual Studio 15 2017 Win64"
58      SDK: npcap-sdk-1.12
59      AIRPCAP: -DDISABLE_AIRPCAP=NO
60    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
61      GENERATOR: "Visual Studio 16 2019"
62      PLATFORM: Win32
63      SDK: WpdPack
64      AIRPCAP: -DDISABLE_AIRPCAP=YES
65    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
66      GENERATOR: "Visual Studio 16 2019"
67      PLATFORM: x64
68      SDK: WpdPack
69      AIRPCAP: -DDISABLE_AIRPCAP=YES
70    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
71      GENERATOR: "Visual Studio 16 2019"
72      PLATFORM: Win32
73      SDK: npcap-sdk-1.12
74      AIRPCAP: -DDISABLE_AIRPCAP=YES
75    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
76      GENERATOR: "Visual Studio 16 2019"
77      PLATFORM: x64
78      SDK: npcap-sdk-1.12
79      AIRPCAP: -DDISABLE_AIRPCAP=YES
80    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
81      GENERATOR: "Visual Studio 16 2019"
82      PLATFORM: x64
83      SDK: npcap-sdk-1.12
84      AIRPCAP: -DDISABLE_AIRPCAP=NO
85
86build_script:
87  #
88  # Appveyor defaults to cmd.exe, so use cmd.exe syntax.
89  #
90  - type NUL >.devel
91  - md build
92  - cd build
93  # Remove the default MinGW path
94  - if "%GENERATOR%"=="MinGW Makefiles" set PATH=%PATH:C:\MinGW\bin;=%
95  # Add the specified MinGW path
96  - if "%GENERATOR%"=="MinGW Makefiles" set PATH=%MINGW_ROOT%\mingw64\bin;%PATH%
97  # Remove the path to Git, so that we don't pick up its sh.exe, as
98  # that breaks MinGW builds - CMake checks for that and fails in the
99  # configuration stage
100  - if "%GENERATOR%"=="MinGW Makefiles" set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
101  - if NOT DEFINED PLATFORM  cmake %AIRPCAP% -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -G"%GENERATOR%" -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -G"%GENERATOR%" -DAirPcap_ROOT=c:\projects\libpcap\Win32\Airpcap_Devpack -G"%GENERATOR%" ..
102  - if DEFINED PLATFORM cmake %AIRPCAP% -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -G"%GENERATOR%" -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -DPacket_ROOT=c:\projects\libpcap\Win32\%SDK% -G"%GENERATOR%" -DAirPcap_ROOT=c:\projects\libpcap\Win32\Airpcap_Devpack -G"%GENERATOR%" -A %PLATFORM% ..
103  - if NOT "%GENERATOR%"=="MinGW Makefiles" msbuild /m /nologo /p:Configuration=Release pcap.sln
104  - if "%GENERATOR%"=="MinGW Makefiles" mingw32-make
105