]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qga/meson.build
meson: remove OS definitions from config_targetos
[mirror_qemu.git] / qga / meson.build
index a6af614891a932d5bc27db1e50a74e3f2be4634b..50edaf1c3d4c685818fc76ce9f13b69a4576e7e4 100644 (file)
@@ -72,12 +72,11 @@ qga_ss.add(when: 'CONFIG_POSIX', if_true: files(
   'commands-posix.c',
   'commands-posix-ssh.c',
 ))
-qga_ss.add(when: 'CONFIG_LINUX', if_true: files(
-  'commands-linux.c',
-))
-qga_ss.add(when: 'CONFIG_BSD', if_true: files(
-  'commands-bsd.c',
-))
+if targetos == 'linux'
+  qga_ss.add(files('commands-linux.c'))
+elif targetos in bsd_oses
+  qga_ss.add(files('commands-bsd.c'))
+endif
 qga_ss.add(when: 'CONFIG_WIN32', if_true: files(
   'channel-win32.c',
   'commands-win32.c',