Skip to content

Commit 938b657

Browse files
committed
remove all windows system libraries except for kernel32
1 parent a0b8bdb commit 938b657

2 files changed

Lines changed: 1 addition & 15 deletions

File tree

libnvme/src/meson.build

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ deps = [
4545
]
4646
if is_windows
4747
deps += [
48-
ws2_32_dep,
49-
wsock32_dep,
50-
iphlpapi_dep,
51-
bcrypt_dep,
48+
kernel32_dep
5249
]
5350
else
5451
deps += [

meson.build

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,7 @@ conf.set('RUNDIR', '"@0@"'.format(rundir))
130130

131131
if is_windows
132132
# Find Windows system libraries
133-
ws2_32_dep = cc.find_library('ws2_32', required: true)
134-
wsock32_dep = cc.find_library('wsock32', required: true)
135133
kernel32_dep = cc.find_library('kernel32', required: true)
136-
iphlpapi_dep = cc.find_library('iphlpapi', required: true)
137-
bcrypt_dep = cc.find_library('bcrypt', required: true)
138134
endif
139135

140136
# Check for libjson-c availability
@@ -514,10 +510,7 @@ if want_nvme
514510

515511
if is_windows
516512
link_deps += [
517-
ws2_32_dep,
518-
wsock32_dep,
519513
kernel32_dep,
520-
iphlpapi_dep
521514
]
522515
else
523516
link_args_list = ['-ldl']
@@ -641,11 +634,7 @@ dep_dict = {
641634
}
642635
if is_windows
643636
dep_dict += {
644-
'ws2_32': ws2_32_dep.found(),
645-
'wsock32': wsock32_dep.found(),
646637
'kernel32': kernel32_dep.found(),
647-
'iphlpapi': iphlpapi_dep.found(),
648-
'bcrypt': bcrypt_dep.found(),
649638
}
650639
endif
651640
summary(dep_dict, section: 'Dependencies', bool_yn: true)

0 commit comments

Comments
 (0)