| chardev_ss.add(when: 'CONFIG_POSIX', if_true: [files( |
| if targetos in ['linux', 'gnu/kfreebsd', 'freebsd', 'dragonfly'] |
| chardev_ss.add(files('char-parallel.c')) |
| chardev_ss.add(when: 'CONFIG_WIN32', if_true: files( |
| chardev_ss = chardev_ss.apply(config_targetos, strict: false) |
| module_ss = ss.source_set() |
| module_ss.add(when: [brlapi], if_true: [files('baum.c'), pixman]) |
| chardev_modules += { 'baum': module_ss } |
| module_ss = ss.source_set() |
| module_ss.add(when: [spice], if_true: files('spice.c')) |
| chardev_modules += { 'spice': module_ss } |
| modules += { 'chardev': chardev_modules } |