xref: /openbmc/qemu/chardev/meson.build (revision 03582094)
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-parallel.c',
25      'char-pty.c',
26    ), util)
27endif
28
29chardev_ss = chardev_ss.apply({})
30
31system_ss.add(files(
32    'char-hmp-cmds.c',
33    'msmouse.c',
34    'wctablet.c',
35    'testdev.c'))
36
37chardev_modules = {}
38
39if brlapi.found()
40  module_ss = ss.source_set()
41  module_ss.add(when: [brlapi], if_true: [files('baum.c'), pixman])
42  chardev_modules += { 'baum': module_ss }
43endif
44
45if spice.found()
46  module_ss = ss.source_set()
47  module_ss.add(when: [spice], if_true: files('spice.c'))
48  chardev_modules += { 'spice': module_ss }
49endif
50
51modules += { 'chardev': chardev_modules }
52