Marc-André Lureau | 848e8ff | 2019-07-15 23:18:07 +0400 | [diff] [blame] | 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 | )) |
Marc-André Lureau | 3f6c2e8 | 2022-03-23 19:57:16 +0400 | [diff] [blame^] | 15 | chardev_ss.add(when: 'CONFIG_POSIX', if_true: [files( |
Marc-André Lureau | 848e8ff | 2019-07-15 23:18:07 +0400 | [diff] [blame] | 16 | 'char-fd.c', |
| 17 | 'char-parallel.c', |
| 18 | 'char-pty.c', |
Marc-André Lureau | 3f6c2e8 | 2022-03-23 19:57:16 +0400 | [diff] [blame^] | 19 | ), util]) |
Marc-André Lureau | 848e8ff | 2019-07-15 23:18:07 +0400 | [diff] [blame] | 20 | chardev_ss.add(when: 'CONFIG_WIN32', if_true: files( |
| 21 | 'char-console.c', |
| 22 | 'char-win-stdio.c', |
| 23 | 'char-win.c', |
| 24 | )) |
| 25 | |
| 26 | chardev_ss = chardev_ss.apply(config_host, strict: false) |
Paolo Bonzini | 2634733 | 2019-07-29 15:40:07 +0200 | [diff] [blame] | 27 | |
Paolo Bonzini | 5a1ee60 | 2020-11-30 13:44:49 -0500 | [diff] [blame] | 28 | softmmu_ss.add(files('msmouse.c', 'wctablet.c', 'testdev.c')) |
Paolo Bonzini | 2634733 | 2019-07-29 15:40:07 +0200 | [diff] [blame] | 29 | |
| 30 | chardev_modules = {} |
| 31 | |
Paolo Bonzini | 8c6d4ff | 2020-11-17 13:02:17 +0100 | [diff] [blame] | 32 | if brlapi.found() |
Paolo Bonzini | 2634733 | 2019-07-29 15:40:07 +0200 | [diff] [blame] | 33 | module_ss = ss.source_set() |
Bruce Rogers | fd6c986 | 2020-09-03 09:29:33 -0600 | [diff] [blame] | 34 | module_ss.add(when: [brlapi], if_true: [files('baum.c'), pixman]) |
Bruce Rogers | 48e33de | 2020-08-24 09:52:36 -0600 | [diff] [blame] | 35 | chardev_modules += { 'baum': module_ss } |
Paolo Bonzini | 2634733 | 2019-07-29 15:40:07 +0200 | [diff] [blame] | 36 | endif |
| 37 | |
Marc-André Lureau | 3f0a5d5 | 2021-10-07 15:08:23 +0200 | [diff] [blame] | 38 | if spice.found() |
Gerd Hoffmann | 23ebeaa | 2020-10-14 14:11:20 +0200 | [diff] [blame] | 39 | module_ss = ss.source_set() |
| 40 | module_ss.add(when: [spice], if_true: files('spice.c')) |
| 41 | chardev_modules += { 'spice': module_ss } |
| 42 | endif |
| 43 | |
Paolo Bonzini | 2634733 | 2019-07-29 15:40:07 +0200 | [diff] [blame] | 44 | modules += { 'chardev': chardev_modules } |