blob: 32377af383e0b796dd9ade5689684645d3b3da85 [file] [log] [blame]
Marc-André Lureau848e8ff2019-07-15 23:18:07 +04001chardev_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))
15chardev_ss.add(when: 'CONFIG_POSIX', if_true: files(
16 'char-fd.c',
17 'char-parallel.c',
18 'char-pty.c',
19))
20chardev_ss.add(when: 'CONFIG_WIN32', if_true: files(
21 'char-console.c',
22 'char-win-stdio.c',
23 'char-win.c',
24))
25
26chardev_ss = chardev_ss.apply(config_host, strict: false)
Paolo Bonzini26347332019-07-29 15:40:07 +020027
Paolo Bonzini5a1ee602020-11-30 13:44:49 -050028softmmu_ss.add(files('msmouse.c', 'wctablet.c', 'testdev.c'))
Paolo Bonzini26347332019-07-29 15:40:07 +020029
30chardev_modules = {}
31
Paolo Bonzini8c6d4ff2020-11-17 13:02:17 +010032if brlapi.found()
Paolo Bonzini26347332019-07-29 15:40:07 +020033 module_ss = ss.source_set()
Bruce Rogersfd6c9862020-09-03 09:29:33 -060034 module_ss.add(when: [brlapi], if_true: [files('baum.c'), pixman])
Bruce Rogers48e33de2020-08-24 09:52:36 -060035 chardev_modules += { 'baum': module_ss }
Paolo Bonzini26347332019-07-29 15:40:07 +020036endif
37
Gerd Hoffmann23ebeaa2020-10-14 14:11:20 +020038if config_host.has_key('CONFIG_SPICE')
39 module_ss = ss.source_set()
40 module_ss.add(when: [spice], if_true: files('spice.c'))
41 chardev_modules += { 'spice': module_ss }
42endif
43
Paolo Bonzini26347332019-07-29 15:40:07 +020044modules += { 'chardev': chardev_modules }