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