]> git.proxmox.com Git - mirror_qemu.git/blob - chardev/meson.build
Merge remote-tracking branch 'remotes/kraxel/tags/seabios-20200819-pull-request'...
[mirror_qemu.git] / chardev / meson.build
1 chardev_ss = ss.source_set()
2 chardev_ss.add(files(
3 'char-fe.c',
4 'char-file.c',
5 'char-io.c',
6 'char-mux.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 chardev_ss.add(when: 'CONFIG_POSIX', if_true: files(
17 'char-fd.c',
18 'char-parallel.c',
19 'char-pty.c',
20 ))
21 chardev_ss.add(when: 'CONFIG_WIN32', if_true: files(
22 'char-console.c',
23 'char-win-stdio.c',
24 'char-win.c',
25 ))
26
27 chardev_ss = chardev_ss.apply(config_host, strict: false)
28 libchardev = static_library('chardev', chardev_ss.sources() + genh,
29 name_suffix: 'fa',
30 build_by_default: false)
31
32 chardev = declare_dependency(link_whole: libchardev)
33
34 softmmu_ss.add(files('chardev-sysemu.c', 'msmouse.c', 'wctablet.c', 'testdev.c'))
35 softmmu_ss.add(when: ['CONFIG_SPICE', spice], if_true: files('spice.c'))
36
37 chardev_modules = {}
38
39 if config_host.has_key('CONFIG_BRLAPI') and sdl.found()
40 module_ss = ss.source_set()
41 module_ss.add(when: [sdl, brlapi], if_true: files('baum.c'))
42 chardev_modules += { 'brlapi': module_ss }
43 endif
44
45 modules += { 'chardev': chardev_modules }