]>
Commit | Line | Data |
---|---|---|
848e8ff6 MAL |
1 | chardev_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 | )) | |
3f6c2e8b | 15 | chardev_ss.add(when: 'CONFIG_POSIX', if_true: [files( |
848e8ff6 | 16 | 'char-fd.c', |
848e8ff6 | 17 | 'char-pty.c', |
3f6c2e8b | 18 | ), util]) |
1baf34a1 PB |
19 | if targetos in ['linux', 'gnu/kfreebsd', 'freebsd', 'dragonfly'] |
20 | chardev_ss.add(files('char-parallel.c')) | |
21 | endif | |
22 | ||
848e8ff6 MAL |
23 | chardev_ss.add(when: 'CONFIG_WIN32', if_true: files( |
24 | 'char-console.c', | |
25 | 'char-win-stdio.c', | |
26 | 'char-win.c', | |
27 | )) | |
28 | ||
29 | chardev_ss = chardev_ss.apply(config_host, strict: false) | |
2634733c | 30 | |
b7d75c0b MA |
31 | softmmu_ss.add(files( |
32 | 'char-hmp-cmds.c', | |
33 | 'msmouse.c', | |
34 | 'wctablet.c', | |
35 | 'testdev.c')) | |
2634733c PB |
36 | |
37 | chardev_modules = {} | |
38 | ||
8c6d4ff4 | 39 | if brlapi.found() |
2634733c | 40 | module_ss = ss.source_set() |
fd6c986d | 41 | module_ss.add(when: [brlapi], if_true: [files('baum.c'), pixman]) |
48e33de5 | 42 | chardev_modules += { 'baum': module_ss } |
2634733c PB |
43 | endif |
44 | ||
3f0a5d55 | 45 | if spice.found() |
23ebeaae GH |
46 | module_ss = ss.source_set() |
47 | module_ss.add(when: [spice], if_true: files('spice.c')) | |
48 | chardev_modules += { 'spice': module_ss } | |
49 | endif | |
50 | ||
2634733c | 51 | modules += { 'chardev': chardev_modules } |