blob: f1b62fa8c8056690d28865fbb263e0d03504373f [file] [log] [blame]
Marc-André Lureaub2c00bc2019-08-17 12:04:43 +04001fs_ss = ss.source_set()
2fs_ss.add(files(
3 '9p-local.c',
4 '9p-posix-acl.c',
5 '9p-proxy.c',
6 '9p-synth.c',
Marc-André Lureaub2c00bc2019-08-17 12:04:43 +04007 '9p-xattr-user.c',
8 '9p-xattr.c',
9 '9p.c',
10 'codir.c',
11 'cofile.c',
12 'cofs.c',
13 'coth.c',
14 'coxattr.c',
15))
Paolo Bonzinid0cda6f2023-11-03 09:17:48 +010016if host_os == 'darwin'
Paolo Bonzini53e88682023-05-26 12:20:39 +020017 fs_ss.add(files('9p-util-darwin.c'))
Paolo Bonzinid0cda6f2023-11-03 09:17:48 +010018elif host_os == 'linux'
Paolo Bonzini53e88682023-05-26 12:20:39 +020019 fs_ss.add(files('9p-util-linux.c'))
20endif
David Woodhouse4ca8cf02023-01-02 01:26:04 +000021fs_ss.add(when: 'CONFIG_XEN_BUS', if_true: files('xen-9p-backend.c'))
Philippe Mathieu-Daudéde6cd752023-06-13 15:33:47 +020022system_ss.add_all(when: 'CONFIG_FSDEV_9P', if_true: fs_ss)
Marc-André Lureaub2c00bc2019-08-17 12:04:43 +040023
24specific_ss.add(when: 'CONFIG_VIRTIO_9P', if_true: files('virtio-9p-device.c'))