Skip to content

Commit 41ae1f4

Browse files
committed
cleanup
1 parent 938b657 commit 41ae1f4

6 files changed

Lines changed: 24 additions & 20 deletions

File tree

libnvme/examples/meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Authors: Martin Belanger <[email protected]>
77
#
88

9-
# Skip for now on Windows.
9+
# Skip examples on Windows for now.
1010
if not is_windows
1111

1212
executable(
@@ -93,4 +93,4 @@ if libdbus_dep.found()
9393
)
9494
endif
9595

96-
endif
96+
endif # not is_windows

libnvme/src/meson.build

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ endif
3636
subdir('nvme') # declares: accessors_dep, accessors_ld_full_path
3737

3838
deps = [
39-
config_dep,
40-
ccan_dep,
41-
json_c_dep,
42-
keyutils_dep,
43-
openssl_dep,
44-
accessors_dep,
39+
config_dep,
40+
ccan_dep,
41+
json_c_dep,
42+
keyutils_dep,
43+
openssl_dep,
44+
accessors_dep,
4545
]
4646
if is_windows
4747
deps += [
@@ -59,6 +59,7 @@ ldfile = 'libnvme.ld'
5959
libnvme_link_args = [
6060
'-Wl,--version-script=@0@'.format(meson.current_source_dir() / ldfile),
6161
]
62+
# Skipping accessor generation for now on Windows. Needs to be ported.
6263
if not is_windows
6364
libnvme_link_args += [
6465
'-Wl,--version-script=@0@'.format(accessors_ld_full_path),

libnvme/test/meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# target. However, they're available for developer use, when hardware is
1111
# available.
1212

13-
# Skip for now on Windows.
13+
# Skip tests on Windows for now.
1414
if not is_windows
1515

1616
main = executable(
@@ -181,4 +181,4 @@ if openssl_dep.found()
181181
)
182182
endif
183183

184-
endif
184+
endif # not is_windows

meson.build

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ want_docs = get_option('docs')
5555
want_docs_build = get_option('docs-build')
5656

5757
feature_python = get_option('python')
58-
if feature_python.disabled() or is_windows
58+
if is_windows or feature_python.disabled()
5959
py3_dep = dependency('', required: false) # Needed for muon
6060
want_python = false
6161
else
@@ -115,9 +115,10 @@ version_tag = get_option('version-tag')
115115
if version_tag != ''
116116
conf.set('GIT_VERSION', '"@0@"'.format(version_tag))
117117
else
118-
vcs_cmd = is_windows ? ['powershell', '-File', 'scripts/meson-vcs-tag.ps1'] : 'scripts/meson-vcs-tag.sh'
118+
windows_vcs_cmd = ['powershell', '-File', 'scripts/meson-vcs-tag.ps1']
119+
linux_vcs_cmd = 'scripts/meson-vcs-tag.sh'
119120
r = run_command(
120-
vcs_cmd,
121+
is_windows ? windows_vcs_cmd : linux_vcs_cmd,
121122
meson.current_source_dir(),
122123
meson.project_version(),
123124
check: true,
@@ -129,7 +130,6 @@ conf.set('SYSCONFDIR', '"@0@"'.format(sysconfdir))
129130
conf.set('RUNDIR', '"@0@"'.format(rundir))
130131

131132
if is_windows
132-
# Find Windows system libraries
133133
kernel32_dep = cc.find_library('kernel32', required: true)
134134
endif
135135

plugins/meson.build

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# SPDX-License-Identifier: GPL-2.0-or-later
2-
if is_windows
3-
plugin_sources = []
4-
else
5-
plugin_sources = [
2+
3+
plugin_sources = []
4+
5+
if not is_windows
6+
plugin_sources += [
67
'plugins/amzn/amzn-nvme.c',
78
'plugins/dapustor/dapustor-nvme.c',
89
'plugins/dell/dell-nvme.c',

util/meson.build

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# SPDX-License-Identifier: GPL-2.0-or-later
22

3+
util_sources = []
4+
35
if is_windows
4-
util_sources = []
6+
util_sources += []
57
else
6-
util_sources = [
8+
util_sources += [
79
'util/argconfig.c',
810
'util/base64.c',
911
'util/crc32.c',

0 commit comments

Comments
 (0)