summaryrefslogtreecommitdiff
path: root/qga
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2023-08-30 11:29:54 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2023-12-31 09:11:28 +0100
commitdc4954943d3adc82c4052aed592f2dc5a14c3fc7 (patch)
tree0d32d75c6625bf9c1171bc5319422e6c188d6bd4 /qga
parent53e8868d69c195b6b57ccc6847057043c26df1b6 (diff)
meson: remove CONFIG_POSIX and CONFIG_WIN32 from config_targetos
For consistency with other OSes, use if...endif for rules that are target-independent. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qga')
-rw-r--r--qga/meson.build33
1 files changed, 18 insertions, 15 deletions
diff --git a/qga/meson.build b/qga/meson.build
index 50edaf1c3d..1113e7c7fa 100644
--- a/qga/meson.build
+++ b/qga/meson.build
@@ -67,22 +67,25 @@ qga_ss.add(files(
'main.c',
'cutils.c',
))
-qga_ss.add(when: 'CONFIG_POSIX', if_true: files(
- 'channel-posix.c',
- 'commands-posix.c',
- 'commands-posix-ssh.c',
-))
-if targetos == 'linux'
- qga_ss.add(files('commands-linux.c'))
-elif targetos in bsd_oses
- qga_ss.add(files('commands-bsd.c'))
+if targetos == 'windows'
+ qga_ss.add(files(
+ 'channel-win32.c',
+ 'commands-win32.c',
+ 'service-win32.c',
+ 'vss-win32.c'
+ ))
+else
+ qga_ss.add(files(
+ 'channel-posix.c',
+ 'commands-posix.c',
+ 'commands-posix-ssh.c',
+ ))
+ if targetos == 'linux'
+ qga_ss.add(files('commands-linux.c'))
+ elif targetos in bsd_oses
+ qga_ss.add(files('commands-bsd.c'))
+ endif
endif
-qga_ss.add(when: 'CONFIG_WIN32', if_true: files(
- 'channel-win32.c',
- 'commands-win32.c',
- 'service-win32.c',
- 'vss-win32.c'
-))
qga_ss = qga_ss.apply(config_targetos, strict: false)