| 1 | chardev_ss.add(files( |
| 2 | 'char-fe.c', |
| 3 | 'char-file.c', |
| 4 | 'char-io.c', |
| 5 | 'char-mux.c', |
| 6 | 'char-hub.c', |
| 7 | 'char-null.c', |
| 8 | 'char-pipe.c', |
| 9 | 'char-ringbuf.c', |
| 10 | 'char-serial.c', |
| 11 | 'char-socket.c', |
| 12 | 'char-stdio.c', |
| 13 | 'char-udp.c', |
| 14 | 'char.c', |
| 15 | )) |
| 16 | if host_os == 'windows' |
| 17 | chardev_ss.add(files( |
| 18 | 'char-console.c', |
| 19 | 'char-win-stdio.c', |
| 20 | 'char-win.c', |
| 21 | )) |
| 22 | else |
| 23 | chardev_ss.add(files( |
| 24 | 'char-fd.c', |
| 25 | 'char-parallel.c', |
| 26 | 'char-pty.c', |
| 27 | ), util) |
| 28 | endif |
| 29 | |
| 30 | chardev_ss = chardev_ss.apply({}) |
| 31 | |
| 32 | system_ss.add(files( |
| 33 | 'msmouse.c', |
| 34 | 'wctablet.c', |
| 35 | 'testdev.c')) |
| 36 | |
| 37 | if have_hmp |
| 38 | system_ss.add(files('char-hmp-cmds.c')) |
| 39 | endif |
| 40 | |
| 41 | chardev_modules = {} |
| 42 | |
| 43 | if brlapi.found() |
| 44 | module_ss = ss.source_set() |
| 45 | module_ss.add(when: [brlapi], if_true: [files('baum.c'), pixman]) |
| 46 | chardev_modules += { 'baum': module_ss } |
| 47 | endif |
| 48 | |
| 49 | if spice.found() |
| 50 | module_ss = ss.source_set() |
| 51 | module_ss.add(when: [spice], if_true: files('spice.c')) |
| 52 | chardev_modules += { 'spice': module_ss } |
| 53 | endif |
| 54 | |
| 55 | modules += { 'chardev': chardev_modules } |