1848e8ff6SMarc-André Lureauchardev_ss = ss.source_set() 2848e8ff6SMarc-André Lureauchardev_ss.add(files( 3848e8ff6SMarc-André Lureau 'char-fe.c', 4848e8ff6SMarc-André Lureau 'char-file.c', 5848e8ff6SMarc-André Lureau 'char-io.c', 6848e8ff6SMarc-André Lureau 'char-mux.c', 7848e8ff6SMarc-André Lureau 'char-null.c', 8848e8ff6SMarc-André Lureau 'char-pipe.c', 9848e8ff6SMarc-André Lureau 'char-ringbuf.c', 10848e8ff6SMarc-André Lureau 'char-serial.c', 11848e8ff6SMarc-André Lureau 'char-socket.c', 12848e8ff6SMarc-André Lureau 'char-stdio.c', 13848e8ff6SMarc-André Lureau 'char-udp.c', 14848e8ff6SMarc-André Lureau 'char.c', 15848e8ff6SMarc-André Lureau)) 16848e8ff6SMarc-André Lureauchardev_ss.add(when: 'CONFIG_POSIX', if_true: files( 17848e8ff6SMarc-André Lureau 'char-fd.c', 18848e8ff6SMarc-André Lureau 'char-parallel.c', 19848e8ff6SMarc-André Lureau 'char-pty.c', 20848e8ff6SMarc-André Lureau)) 21848e8ff6SMarc-André Lureauchardev_ss.add(when: 'CONFIG_WIN32', if_true: files( 22848e8ff6SMarc-André Lureau 'char-console.c', 23848e8ff6SMarc-André Lureau 'char-win-stdio.c', 24848e8ff6SMarc-André Lureau 'char-win.c', 25848e8ff6SMarc-André Lureau)) 26848e8ff6SMarc-André Lureau 27848e8ff6SMarc-André Lureauchardev_ss = chardev_ss.apply(config_host, strict: false) 28848e8ff6SMarc-André Lureaulibchardev = static_library('chardev', chardev_ss.sources() + genh, 29848e8ff6SMarc-André Lureau name_suffix: 'fa', 30848e8ff6SMarc-André Lureau build_by_default: false) 31848e8ff6SMarc-André Lureau 32848e8ff6SMarc-André Lureauchardev = declare_dependency(link_whole: libchardev) 332634733cSPaolo Bonzini 342634733cSPaolo Bonzinisoftmmu_ss.add(files('chardev-sysemu.c', 'msmouse.c', 'wctablet.c', 'testdev.c')) 352634733cSPaolo Bonzinisoftmmu_ss.add(when: ['CONFIG_SPICE', spice], if_true: files('spice.c')) 362634733cSPaolo Bonzini 372634733cSPaolo Bonzinichardev_modules = {} 382634733cSPaolo Bonzini 3935be72baSPaolo Bonziniif config_host.has_key('CONFIG_BRLAPI') and sdl.found() 402634733cSPaolo Bonzini module_ss = ss.source_set() 412634733cSPaolo Bonzini module_ss.add(when: [sdl, brlapi], if_true: files('baum.c')) 42*48e33de5SBruce Rogers chardev_modules += { 'baum': module_ss } 432634733cSPaolo Bonziniendif 442634733cSPaolo Bonzini 452634733cSPaolo Bonzinimodules += { 'chardev': chardev_modules } 46