| 1 | fs_ss = ss.source_set() |
| 2 | fs_ss.add(files( |
| 3 | '9p-local.c', |
| 4 | '9p-posix-acl.c', |
| 5 | '9p-synth.c', |
| 6 | '9p-util-generic.c', |
| 7 | '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 | )) |
| 16 | if host_os == 'darwin' |
| 17 | fs_ss.add(files('9p-util-darwin.c')) |
| 18 | elif host_os == 'freebsd' |
| 19 | fs_ss.add(files('9p-util-freebsd.c')) |
| 20 | elif host_os == 'linux' |
| 21 | fs_ss.add(files('9p-util-linux.c')) |
| 22 | endif |
| 23 | fs_ss.add(when: 'CONFIG_XEN_BUS', if_true: files('xen-9p-backend.c')) |
| 24 | system_ss.add_all(when: 'CONFIG_FSDEV_9P', if_true: fs_ss) |
| 25 | |
| 26 | system_ss.add(when: 'CONFIG_VIRTIO_9P', if_true: files('virtio-9p-device.c')) |