forked from the-tcpdump-group/libpcap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
171 lines (165 loc) · 6.18 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
version: '{build}'
clone_depth: 5
branches:
except:
- coverity_scan
matrix:
fast_finish: true
install:
- choco install winflexbison
- win_flex --version
- win_bison --version
- appveyor DownloadFile https://github.com/the-tcpdump-group/tcpdump-htdocs/raw/master/depends/WpdPack_4_1_2.zip
- 7z x .\WpdPack_4_1_2.zip -oc:\projects\libpcap\Win32
- appveyor DownloadFile https://npcap.com/dist/npcap-sdk-1.13.zip
- 7z x .\npcap-sdk-1.13.zip -oc:\projects\libpcap\Win32\npcap-sdk
environment:
#
# The OpenSSL library on the current AppVeyor Visual Studio 2019
# images has a weird opensslv.h that claims its 1.0.2, even though
# it's 3.0. This causes... problems.
#
# For now, we disable the remote capture build there.
#
matrix:
# VS 2017, WinPcap, 32-bit and 64-bit x86, with remote
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
GENERATOR: "Visual Studio 15 2017"
PLATFORM: Win32
SDK: WpdPack
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
GENERATOR: "Visual Studio 15 2017"
PLATFORM: x64
SDK: WpdPack
# VS 2017, Npcap, 32-bit and 64-bit x86, with remote
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
GENERATOR: "Visual Studio 15 2017"
PLATFORM: Win32
SDK: npcap-sdk
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
GENERATOR: "Visual Studio 15 2017"
PLATFORM: x64
SDK: npcap-sdk
# VS 2019, WinPcap, 32-bit and 64-bit x86, without remote
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
GENERATOR: "Visual Studio 16 2019"
PLATFORM: Win32
SDK: WpdPack
REMOTE: -DENABLE_REMOTE=NO
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
GENERATOR: "Visual Studio 16 2019"
PLATFORM: x64
SDK: WpdPack
REMOTE: -DENABLE_REMOTE=NO
# VS 2019, Winpcap, 32-bit and 64-bit x86, with remote
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
GENERATOR: "Visual Studio 16 2019"
PLATFORM: Win32
SDK: WpdPack
OPENSSL_ROOT_DIR: -DOPENSSL_ROOT_DIR=C:\OpenSSL-v33-Win32\bin
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
GENERATOR: "Visual Studio 16 2019"
PLATFORM: x64
SDK: WpdPack
OPENSSL_ROOT_DIR: -DOPENSSL_ROOT_DIR=C:\OpenSSL-v33-Win64\bin
# VS 2019, Npcap, 32-bit and 64-bit x86, without remote
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
GENERATOR: "Visual Studio 16 2019"
PLATFORM: Win32
SDK: npcap-sdk
REMOTE: -DENABLE_REMOTE=NO
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
GENERATOR: "Visual Studio 16 2019"
PLATFORM: x64
SDK: npcap-sdk
REMOTE: -DENABLE_REMOTE=NO
# VS 2019, Npcap, 32-bit and 64-bit x86, with remote
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
GENERATOR: "Visual Studio 16 2019"
PLATFORM: Win32
SDK: npcap-sdk
OPENSSL_ROOT_DIR: -DOPENSSL_ROOT_DIR=C:\OpenSSL-v33-Win32\bin
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
GENERATOR: "Visual Studio 16 2019"
PLATFORM: x64
SDK: npcap-sdk
OPENSSL_ROOT_DIR: -DOPENSSL_ROOT_DIR=C:\OpenSSL-v33-Win64\bin
# VS 2019, Npcap, 64-bit ARM, without remote
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
GENERATOR: "Visual Studio 16 2019"
PLATFORM: ARM64
SDK: npcap-sdk
REMOTE: -DENABLE_REMOTE=NO
# VS 2019, Npcap, 64-bit ARM, with remote
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
GENERATOR: "Visual Studio 16 2019"
PLATFORM: ARM64
SDK: npcap-sdk
OPENSSL_ROOT_DIR: -DOPENSSL_ROOT_DIR=C:\OpenSSL-v33-Win64\bin
# VS 2022, WinPcap, 32-bit and 64-bit x86, without remote
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
GENERATOR: "Visual Studio 17 2022"
PLATFORM: Win32
SDK: WpdPack
REMOTE: -DENABLE_REMOTE=NO
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
GENERATOR: "Visual Studio 17 2022"
PLATFORM: x64
SDK: WpdPack
REMOTE: -DENABLE_REMOTE=NO
# VS 2022, WinPcap, 32-bit and 64-bit x86, with remote
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
GENERATOR: "Visual Studio 17 2022"
PLATFORM: Win32
SDK: WpdPack
OPENSSL_ROOT_DIR: -DOPENSSL_ROOT_DIR=C:\OpenSSL-v33-Win32\bin
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
GENERATOR: "Visual Studio 17 2022"
PLATFORM: x64
SDK: WpdPack
OPENSSL_ROOT_DIR: -DOPENSSL_ROOT_DIR=C:\OpenSSL-v33-Win64\bin
# VS 2022, Npcap, 32-bit and 64-bit x86, without remote
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
GENERATOR: "Visual Studio 17 2022"
PLATFORM: Win32
SDK: npcap-sdk
REMOTE: -DENABLE_REMOTE=NO
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
GENERATOR: "Visual Studio 17 2022"
PLATFORM: x64
SDK: npcap-sdk
REMOTE: -DENABLE_REMOTE=NO
# VS 2022, Npcap, 32-bit and 64-bit x86, with remote
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
GENERATOR: "Visual Studio 17 2022"
PLATFORM: Win32
SDK: npcap-sdk
OPENSSL_ROOT_DIR: -DOPENSSL_ROOT_DIR=C:\OpenSSL-v33-Win32\bin
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
GENERATOR: "Visual Studio 17 2022"
PLATFORM: x64
SDK: npcap-sdk
OPENSSL_ROOT_DIR: -DOPENSSL_ROOT_DIR=C:\OpenSSL-v33-Win64\bin
# VS 2022, Npcap, 64-bit ARM, without remote
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
GENERATOR: "Visual Studio 17 2022"
PLATFORM: ARM64
SDK: npcap-sdk
REMOTE: -DENABLE_REMOTE=NO
# VS 2022, Npcap, 64-bit ARM, with remote
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
GENERATOR: "Visual Studio 17 2022"
PLATFORM: ARM64
SDK: npcap-sdk
OPENSSL_ROOT_DIR: -DOPENSSL_ROOT_DIR=C:\OpenSSL-v33-Win64\bin
build_script:
#
# Appveyor defaults to cmd.exe, so use cmd.exe syntax.
#
- git show --oneline -s
- type NUL >.devel
- md build
- cd build
- cmake --version
- cmake %REMOTE% %OPENSSL_ROOT_DIR% -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%" -G"%GENERATOR%" -A %PLATFORM% ..
- msbuild /m /nologo /p:Configuration=Release pcap.sln