]> git.proxmox.com Git - mirror_qemu.git/blobdiff - fsdev/meson.build
meson: remove OS definitions from config_targetos
[mirror_qemu.git] / fsdev / meson.build
index 30e23199606e27dafc7d6b734dcaff8e4732f240..c76347615df062475fb263dc430adf81db0a334f 100644 (file)
@@ -1,4 +1,15 @@
-have_virtfs_proxy_helper = have_tools and libattr.found() and libcap_ng.found() and 'CONFIG_VIRTFS' in config_host
+fsdev_ss = ss.source_set()
+fsdev_ss.add(files('qemu-fsdev-opts.c', 'qemu-fsdev-throttle.c'))
+fsdev_ss.add(when: 'CONFIG_ALL', if_true: files('qemu-fsdev-dummy.c'))
+fsdev_ss.add(when: ['CONFIG_FSDEV_9P'], if_true: files(
+  '9p-iov-marshal.c',
+  '9p-marshal.c',
+  'qemu-fsdev.c',
+), if_false: files('qemu-fsdev-dummy.c'))
+if targetos in ['linux', 'darwin']
+  system_ss.add_all(fsdev_ss)
+endif
+
 if have_virtfs_proxy_helper
   executable('virtfs-proxy-helper',
              files('virtfs-proxy-helper.c', '9p-marshal.c', '9p-iov-marshal.c'),