-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile.win
415 lines (330 loc) · 15.7 KB
/
Makefile.win
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
# vim: set ft=make ts=8 sw=8 noet :
# Set this to your Ewdk build environment. You most likely
# have to create a new one (see the ifeq's in this Makefile)
# to get the pathes right. You also should add a ms-cl-$(BUILD_ENV)
# wrapper script to call the Microsoft C compiler (see the VC variable).
#
# Please use your initials to name the build env if you want to
# commit your changes upstream.
#
# For now run make copy in the windrbd root directory whenever you
# change this Makefile or the ms-cl*.cmd wrappers.
#
# Don't change default here, put it into your .bashrc instead:
# (like export BUILD_ENV=blub)
#
# BUILD_ENV ?= jt-server2016
ifndef BUILD_ENV
$(error BUILD_ENV not set. Please set the BUILD_ENV environment variables (export BUILD_ENV=blub in bash) and add settings to Makefile.win (don't forget make copy) )
endif
# TODO: unset this for production releases.
KMALLOC_DEBUG = 1
# BIO_REF_DEBUG = 1
ifeq ($(BUILD_ENV),jt-win7)
export EWDK_BASE := c:\\Ewdk
EWDK_KIT := $(EWDK_BASE)\\Program Files\\Windows Kits\\10
EWDK_VERSION := 10.0.15063.0
EWDK_BIN := $(EWDK_KIT)\\bin\\x86
# Name of the pfx file (without extension)
KEY = linbit-2019
PASSWD = ""
WINDRBD_SOURCE = ..
DRBD_UTILS_SOURCE = Y:\\drbd-utils-windows
endif
ifeq ($(BUILD_ENV),jt-server2019)
# export EWDK_BASE := c:\\Ewdk
# need to "mount" ISO: double click ISO on console
export EWDK_BASE := e:
EWDK_KIT := $(EWDK_BASE)\\Program Files\\Windows Kits\\10
# EWDK_VERSION := 10.0.17134.0
EWDK_VERSION := 10.0.19041.0
EWDK_BIN := $(EWDK_KIT)\\bin\\$(EWDK_VERSION)\\x86
# Name of the pfx file (without extension)
KEY = linbit-2019
PASSWD = ""
WINDRBD_SOURCE = ..
DRBD_UTILS_SOURCE = Y:\\drbd-utils-windows
endif
# Linux build host running MSVC compiler using wine :)
ifeq ($(BUILD_ENV),jt-wine)
# mounting of the ewdk can be done with Linux mount command:
# cd ~/.wine/dosdevices
# sudo mount -o loop ~/EWDK_ni_release_22621_220506-1250.iso e:
export EWDK_BASE := E:
EWDK_KIT := $(EWDK_BASE)\\Program Files\\Windows Kits\\10
EWDK_VERSION := 10.0.22621.0
EWDK_BIN := $(EWDK_KIT)\\bin\\$(EWDK_VERSION)\\x86
# WINE=wine
# We have a 32 bit and a 64 bit installation this one is the right one:
WINE=/usr/bin/wine
VC := $(WINE) cmd /c ms-cl-$(BUILD_ENV).cmd
# Name of the pfx file (without extension)
KEY = linbit-2019
PASSWD = ""
WINDRBD_SOURCE = ..
DRBD_UTILS_SOURCE = Y:\\drbd-utils-windows
endif
# My diskless WinDRBD sysroot machine :)
ifeq ($(BUILD_ENV),jt-diskless-windrbd-sysroot)
export EWDK_BASE := d:
EWDK_KIT := $(EWDK_BASE)\\Program Files\\Windows Kits\\10
EWDK_VERSION := 10.0.17763.0 # TODO: ?
EWDK_BIN := $(EWDK_KIT)\\bin\\$(EWDK_VERSION)\\x86
# Name of the pfx file (without extension)
KEY = linbit-ha
PASSWD = ""
WINDRBD_SOURCE = ..
DRBD_UTILS_SOURCE = Y:\\drbd-utils-windows
endif
ifeq ($(BUILD_ENV),jt-win10)
export EWDK_BASE := e:
EWDK_KIT := $(EWDK_BASE)\\Program Files\\Windows Kits\\10
EWDK_VERSION := 10.0.17763.0
EWDK_BIN := $(EWDK_KIT)\\bin\\$(EWDK_VERSION)\\x86
# Name of the pfx file (without extension)
KEY = linbit-2019
PASSWD = ""
WINDRBD_SOURCE = ..
DRBD_UTILS_SOURCE = Y:\\drbd-utils-windows
endif
ifeq ($(BUILD_ENV),jt-win10-32bit)
export EWDK_BASE := d:
EWDK_KIT := $(EWDK_BASE)\\Program Files\\Windows Kits\\10
EWDK_VERSION := 10.0.17763.0
EWDK_BIN := $(EWDK_KIT)\\bin\\$(EWDK_VERSION)\\x86
# Name of the pfx file (without extension)
KEY = linbit-ha
PASSWD = ""
WINDRBD_SOURCE = ..
DRBD_UTILS_SOURCE = Y:\\drbd-utils-windows
endif
ifeq ($(BUILD_ENV),jt-server2016)
export EWDK_BASE := c:\\Ewdk
EWDK_KIT := $(EWDK_BASE)\\Program Files\\Windows Kits\\10
EWDK_VERSION := 10.0.17763.0
EWDK_BIN := $(EWDK_KIT)\\bin\\$(EWDK_VERSION)\\x86
# Name of the pfx file (without extension)
KEY = linbit-ha
PASSWD = ""
WINDRBD_SOURCE = ..
DRBD_UTILS_SOURCE = Y:\\drbd-utils-windows
endif
ifeq ($(BUILD_ENV),jt-win10ent-2020)
export EWDK_BASE := e:
EWDK_KIT := $(EWDK_BASE)\\Program Files\\Windows Kits\\10
EWDK_VERSION := 10.0.19041.0
EWDK_BIN := $(EWDK_KIT)\\bin\\$(EWDK_VERSION)\\x86
# Name of the pfx file (without extension)
KEY = linbit-2019
PASSWD = ""
WINDRBD_SOURCE = ..
DRBD_UTILS_SOURCE = Y:\\drbd-utils-windows
endif
ifeq ($(BUILD_ENV),jt-opennebula-vm)
export EWDK_BASE := h:
EWDK_KIT := $(EWDK_BASE)\\Program Files\\Windows Kits\\10
EWDK_VERSION := 10.0.22621.0
EWDK_BIN := $(EWDK_KIT)\\bin\\$(EWDK_VERSION)\\x86
# Name of the pfx file (without extension)
KEY = linbit-2019
PASSWD = ""
WINDRBD_SOURCE = ..
DRBD_UTILS_SOURCE = Y:\\drbd-utils-windows
endif
ifeq ($(BUILD_ENV),jt-opennebula2022-vm)
export EWDK_BASE := f:
EWDK_KIT := $(EWDK_BASE)\\Program Files\\Windows Kits\\10
EWDK_VERSION := 10.0.22621.0
EWDK_BIN := $(EWDK_KIT)\\bin\\$(EWDK_VERSION)\\x86
# Name of the pfx file (without extension)
KEY = linbit-2019
PASSWD = ""
WINDRBD_SOURCE = ..
DRBD_UTILS_SOURCE = ..\\..\\..\\drbd-utils-windows
endif
ifndef EWDK_VERSION
$(error EWDK_BASE not set. Please edit Makefile to make it know about your ewdk installation.)
endif
# This is relative to the inno-setup directory
DRIVER_DIR ?= converted-sources\\drbd
EWDK_INC := $(EWDK_KIT)\\Include
EWDK_LIB := $(EWDK_KIT)\\Lib
VC ?= /cygdrive/c/Windows/System32/cmd.exe /c ms-cl-$(BUILD_ENV).cmd
MSBUILD ?= /cygdrive/c/Windows/System32/cmd.exe /c run-msbuild.cmd
# /a for debugging output
# CL.exe takes (AND RETURNS) forward slashes; that makes navigating an error output easy.
WIN_INCLUDE_DIRS += "-I$(EWDK_INC)\\$(EWDK_VERSION)\\shared"
WIN_INCLUDE_DIRS += "-I$(EWDK_INC)\\$(EWDK_VERSION)\\km"
WIN_INCLUDE_DIRS += "-I$(EWDK_INC)\\$(EWDK_VERSION)\\km\\crt"
WIN_INCLUDE_DIRS += "-I$(EWDK_INC)\\$(EWDK_VERSION)\\um"
WIN_DEF_INCLUDES += /FI"$(EWDK_INC)/$(EWDK_VERSION)\\shared\\warning.h"
# include that file
WIN_CFLAGS += /c /W4
WIN_CFLAGS += /Zi # /Zi gives us a PDB file; without that we'd get debug information in the .obj file instead
WIN_CFLAGS += /WX # warnings == errors
WIN_CFLAGS += /Wv:18 # disable hides previous local declaration
WIN_CFLAGS += /O2 # optimize for speed
WIN_CFLAGS += /Oi # enable intrinsic functions
WIN_CFLAGS += /Oy- # enable frame pointer omission
# C_DEFINES += -D _X86_=1 -D i386=1 # 32bit
C_DEFINES += -D _WIN64 -D _AMD64_ -D AMD64 -D _M_AMD64 # 64bit
C_DEFINES += -D STD_CALL -D DEPRECATE_DDK_FUNCTIONS=1 -D MSC_NOOPT -D _WIN32_WINNT=0x0601 -D WINVER=0x0601 -D WINNT=1 -D NTDDI_VERSION=0x06010000 -D KMDF_VERSION_MAJOR=1 -D KMDF_VERSION_MINOR=15
# This makes Windows use NonPagedPoolNx instead of NonPagedPool for
# memory allocations. This is needed to pass the code integrity tests
# for hardware lab kit (HLK) needed for SecureBoot.
C_DEFINES += -DPOOL_NX_OPTIN=1
# C_DEFINES += -D DBG=1
ifdef R
C_DEFINES += -D RELEASE=1
endif
ifdef KMALLOC_DEBUG
C_DEFINES += -D KMALLOC_DEBUG=1
endif
ifdef BIO_REF_DEBUG
C_DEFINES += -D BIO_REF_DEBUG=1
endif
WIN_CFLAGS += /GF /Gm- /Zp8 /GS /Gy
# /fp:precise # precise - "precise" floating-point model; results are predictable
WIN_CFLAGS += /Zc:wchar_t- /Zc:forScope /Zc:inline /GR-
# On x64, there's only one calling convention. https://msdn.microsoft.com/en-us/library/zthk2dkh.aspx
# WIN_CFLAGS += /Gz # __stdcall calling convention -- is default
# WIN_CFLAGS += /Gr # __fastcall calling convention -- is what we want for linux compat
WIN_CFLAGS += /wd4748 /wd4603 /wd4627 /wd4986 /wd4987 /wd4996
WIN_CFLAGS += /analyze- /errorReport:queue /kernel -cbstring /d1import_no_registry /d2AllowCompatibleILVersions /d2Zi+
C_DEFINES += -D __KERNEL__=1
C_DEFINES += -D __BYTE_ORDER=1 -D __LITTLE_ENDIAN=1 -D __LITTLE_ENDIAN_BITFIELD
# WIN_CFLAGS += /Ze # Microsoft extensions - eg. nameless struct/union. Not enabled because
# The /Ze option is deprecated because its behavior is on by default. We recommend you use the /Zc (Conformance) compiler options to control specific language extension features.
# but there's no setting for that.
WIN_CFLAGS += /wd4201
# drbd-headers\drbd_protocol.h(466): warning C4200: nonstandard extension used: zero-sized array in struct/union
WIN_CFLAGS += /wd4200
WIN_INCLUDE_DIRS += -I"..\\..\\windrbd\\include"
WIN_INCLUDE_DIRS += -I"."
WIN_INCLUDE_DIRS += -I".\\drbd-headers"
WIN_CFLAGS += $(WIN_INCLUDE_DIRS)
ifeq (V,1)
WIN_CFLAGS += /showIncludes
endif
C_DEFINES += -D _WIN64=1
C_DEFINES += -D COMPAT_HAVE_BOOL_TYPE=1 # for "typedef bool" in drbd/linux/lru_cache.h
# C_DEFINES += -D _AMD64_=1
C_DEFINES += -D CONFIG_KREF_DEBUG=1
WIN_CFLAGS += $(C_DEFINES)
# How to calculate the debug name
fPDB = $(patsubst %.c,%.pdb,$(1))
WIN_LDFLAGS += /link # must be first!
# Was:
# WIN_LDFLAGS += /DRIVER:WDM /NODEFAULTLIB /ENTRY:DriverEntry
# However this prevents the driver from being unloaded. We try
# this now:
WIN_LDFLAGS += /DRIVER /SUBSYSTEM:WINDOWS /NODEFAULTLIB /ENTRY:DriverEntry
# Commented out. Else cannot find __imp_KeGetCurrentIrql symbol on linking
# WIN_LDFLAGS += "/LIBPATH:$(EWDK_LIB)/win7/km/x64/"
WIN_LDFLAGS += "/LIBPATH:$(EWDK_LIB)/$(EWDK_VERSION)/km/x64/"
WIN_LDFLAGS += /DEBUG:FULL
WIN_LINK_INPUT += wdm.lib
WIN_LINK_INPUT += ntoskrnl.lib
WIN_LINK_INPUT += bufferoverflowfastfailk.lib # for __security_check_cookie
WIN_LINK_INPUT += netio.lib
WIN_LINK_INPUT += wdmsec.lib
WIN_LINK_INPUT += ksecdd.lib
# TODO: used?
# WIN_LINK_INPUT += "$(EWDK_LIB)/win8/km/x64/aux_klib.lib"
WIN_LINK_INPUT += hal.lib
# WIN_LINK_INPUT += setupapi.lib
DRBD_FILES = drbd_buildtag.c drbd_bitmap.c drbd_proc.c
DRBD_FILES += drbd_sender.c drbd_receiver.c drbd_req.c drbd_actlog.c
DRBD_FILES += lru_cache.c drbd_main.c drbd_strings.c drbd_nl.c
DRBD_FILES += drbd_interval.c drbd_state.c drbd_kref_debug.c
DRBD_FILES += drbd_nla.c drbd_transport.c drbd_transport_tcp.c kref_debug.c
WINDRBD_SRCDIR = ../../windrbd/src
WINDRBD_FILES = $(WINDRBD_SRCDIR)/Attr.c $(WINDRBD_SRCDIR)/disp.c $(WINDRBD_SRCDIR)/drbd_windows.c $(WINDRBD_SRCDIR)/hweight.c \
$(WINDRBD_SRCDIR)/idr.c $(WINDRBD_SRCDIR)/kmalloc_debug.c $(WINDRBD_SRCDIR)/mempool.c $(WINDRBD_SRCDIR)/printk-to-syslog.c \
$(WINDRBD_SRCDIR)/rbtree.c $(WINDRBD_SRCDIR)/seq_file.c $(WINDRBD_SRCDIR)/slab.c $(WINDRBD_SRCDIR)/util.c $(WINDRBD_SRCDIR)/windrbd_bootdevice.c \
$(WINDRBD_SRCDIR)/windrbd_device.c $(WINDRBD_SRCDIR)/windrbd_drbd_url_parser.c $(WINDRBD_SRCDIR)/windrbd_module.c \
$(WINDRBD_SRCDIR)/windrbd_netlink.c $(WINDRBD_SRCDIR)/windrbd_test.c $(WINDRBD_SRCDIR)/windrbd_threads.c \
$(WINDRBD_SRCDIR)/windrbd_usermodehelper.c $(WINDRBD_SRCDIR)/windrbd_waitqueue.c \
$(WINDRBD_SRCDIR)/windrbd_winsocket.c $(WINDRBD_SRCDIR)/windrbd_locking.c \
$(WINDRBD_SRCDIR)/tiktok.c $(WINDRBD_SRCDIR)/partition_table_template.c
all: versioninfo windrbd.sys
.PHONY: versioninfo
versioninfo:
# you can do make VERSION=test to have test as version
cd ../.. && ./versioninfo.sh converted-sources $(VERSION) || true
windrbd.sys: $(patsubst %.c,%.obj,$(DRBD_FILES)) $(patsubst %.c,%.obj,$(WINDRBD_FILES)) resource.res windrbd-event-log.res
rm -f windrbd.pdb "_$@"
$(VC) $(WIN_LINK_INPUT) $^ $(WIN_LDFLAGS) /PDB:"windrbd.pdb" /OUT:"_$@"
mv -f "_$@" "$@"
# currently does not work with wine:
$(WINE) "$(EWDK_BIN)/inf2cat.exe" /driver:. /os:XP_X86,Vista_X86,Vista_X64,7_X86,7_X64,8_X86,8_X64,6_3_X86,6_3_X64,10_X86,10_X64
ifdef R
# Linbit DigiCert certificate (trusted by Microsoft)
# For Windows Server 2008 use SHA1 as secure hash
# "$(EWDK_BIN)/signtool.exe" sign /fd SHA256 /v /ac "C:\cert\DigiCert High Assurance EV Root CA.crt" /a /t http://timestamp.digicert.com "$@"
$(WINE) "$(EWDK_BIN)/signtool.exe" sign /fd SHA256 /v /ac "C:\cert\DigiCertTrustedRootG4.crt" /a /t http://timestamp.digicert.com "$@"
# Thanks to David Grayson (http://www.davidegrayson.com/signing/#howto)
$(WINE) "$(EWDK_BIN)/signtool.exe" sign /fd SHA256 /v /ac "C:\cert\DigiCertTrustedRootG4.crt" /a /t http://timestamp.digicert.com windrbd.cat
else
# We need a self signed certificate which has to be added to the
# Windows certificate store in order to load the driver. See
# readme.txt file in the crypto directory to learn how to create it.
# does not work under wine ... MFC42.dll missing.
$(WINE) "$(EWDK_BIN)/signtool.exe" sign /fd SHA256 /f ../../crypto/$(KEY).pfx /p $(PASSWD) /v "$@"
$(WINE) "$(EWDK_BIN)/signtool.exe" sign /fd SHA256 /f ../../crypto/$(KEY).pfx /p $(PASSWD) /v windrbd.cat
endif
resource.res: resource.rc
$(WINE) "$(EWDK_BIN)/rc.exe" $<
windrbd-event-log.rc: ../../windrbd/windrbd-event-log.mc
$(WINE) "$(EWDK_BIN)/mc.exe" $<
windrbd-event-log.h: ../../windrbd/windrbd-event-log.mc
$(WINE) "$(EWDK_BIN)/mc.exe" $<
$(WINDRBD_SRCDIR)/printk-to-syslog.obj: windrbd-event-log.h
windrbd-event-log.res: windrbd-event-log.rc
$(WINE) "$(EWDK_BIN)/rc.exe" $<
%.obj: %.c
rm -f "$(call fPDB,$<)"
$(VC) $(WIN_CFLAGS) $(WIN_DEF_INCLUDES) "$<" /c /Fo:"$@" /Fd:"$(call fPDB,$<)"
# /Fi:"$(patsubst %.c,%.E,$<)" ... cl : Command line warning D9007 : '/Fi:' requires '/P'; option ignored
echo "-- $@ done --"
%.E: %.c
$(VC) $(WIN_CFLAGS) $(WIN_DEF_INCLUDES) "$<" /E > "$@"
deps:
gcc -D BITS_PER_LONG=64 -D _MSC_VER=1300 -D _WIN32=1 $(C_DEFINES) $(WIN_INCLUDE_DIRS) $(subst /FI,-include ,$(WIN_DEF_INCLUDES)) -M *.c ../../windrbd/src/*.c | perl -pe 's/^(\S+)\.o:/\1.obj \1.E:/' > Makefile.deps
install:
bash -c 'cwd=`pwd` ; /cygdrive/c/Windows/System32/InfDefaultInstall.exe `cygpath -w "$${cwd}"`\\windrbd.inf'
-include Makefile.deps
clean:
rm -f *.obj *.pdb
rm -f $(WINDRBD_SRCDIR)/*.obj $(WINDRBD_SRCDIR)/*.pdb
rm -f windrbd.sys windrbd.cat
rm -f windrbd-event-log.*
package: windrbd.sys
( cd ../../inno-setup && $(WINE) iscc windrbd.iss /DWindrbdSource=$(WINDRBD_SOURCE) /DWindrbdUtilsSource=$(DRBD_UTILS_SOURCE) /DWindrbdDriverDirectory=$(DRIVER_DIR) )
ifdef R
( cd ../../inno-setup && $(WINE) "$(EWDK_BIN)/signtool.exe" sign /fd SHA256 /v /ac "C:\cert\DigiCertTrustedRootG4.crt" /a /t http://timestamp.digicert.com install-`sed -e 's/[^"]*"\([^"]*\).*/\1/g' version.iss`.exe )
endif
chmod a+x ../../inno-setup/install*.exe
# upload: package
upload:
( cd ../../inno-setup && curl -f --netrc-file ../../nexus-password --upload-file install-windrbd-`sed -e 's/[^"]*"\([^"]*\).*/\1/g' version.iss`.exe https://nexus.at.linbit.com/repository/windows/WinDRBD/install-windrbd-`sed -e 's/[^"]*"\([^"]*\).*/\1/g' version.iss`.exe )
# ( cd ../../inno-setup && curl -f --netrc-file ../../nexus-password --upload-file install-`sed -e 's/[^"]*"\([^"]*\).*/\1/g' version.iss`.exe https://nexus.at.linbit.com/repository/windows/WinDRBD/install-windrbd-latest.exe )
# TODO: this is required for Windows Server 2022 and Windows 11
codeql:
# cd ../..
# rm -rf codeql-database
# TODO: generate rebuild-windrbd.cmd must run in Windows dev environment.
# codeql database create codeql-database --language="cpp" --command=rebuild-windrbd.cmd --source-root=.
# codeql database analyze .\codeql-database ..\codeql\Windows-Driver-Developer-Supplemental-Tools\codeql\windows-drivers\queries\suites\windows_driver_mustfix.qls --format=sarif-latest --output=.\visual-studio-2019-files\WinDRBD\WinDRBD\must-fix.sarif
# or:
# codeql database analyze .\codeql-database ..\codeql\Windows-Driver-Developer-Supplemental-Tools\codeql\windows-drivers\queries\suites\windows_driver_recommended.qls --format=sarif-latest --output=.\visual-studio-2019-files\WinDRBD\WinDRBD\recommended.sarif
code-analysis:
cd ../../visual-studio-2019-files/WinDRBD/WinDRBD && $(MSBUILD) WinDRBD.vcxproj /p:Configuration=Release /p:Platform=x64 /p:RunCodeAnalysis=True
sdv:
cd ../../visual-studio-2019-files/WinDRBD/WinDRBD && $(MSBUILD) /t:sdv /p:Inputs="/check:default.sdv /debug" WinDRBD.vcxproj /p:Configuration=Release /p:Platform=x64 /maxCpuCount:8
# No codeql for now, Windows Server 2019 (and before) cannot read it.
dvl:
cd ../../visual-studio-2019-files/WinDRBD/WinDRBD && $(MSBUILD) /t:dvl WinDRBD.vcxproj /p:Configuration=Release /p:Platform=x64
bash -c 'sed -e '/Semmle/d' ../../visual-studio-2019-files/WinDRBD/WinDRBD/WinDRBD.DVL.XML > ../../WinDRBDServer2019.DVL.XML'
@echo 'Now copy the WinDRBDServer2019.DVL.XML file into the C:\DVL directory (create it if it does not exist) on the HLK test client and rerun Static Tools Logo test'
server2019-dvl-rebuild: sdv code-analysis dvl