2 specific_ss.add(when: ['CONFIG_SOFTMMU'], if_true: pixman) # for the include path
16 softmmu_ss.add([spice_headers, files('spice-module.c')])
17 softmmu_ss.add(when: spice_protocol, if_true: files('vdagent.c'))
19 softmmu_ss.add(when: 'CONFIG_LINUX', if_true: files(
23 softmmu_ss.add(when: cocoa, if_true: files('cocoa.m'))
25 vnc_ss = ss.source_set()
33 'vnc-auth-vencrypt.c',
38 vnc_ss.add(zlib, png, jpeg, gnutls)
39 vnc_ss.add(when: sasl, if_true: files('vnc-auth-sasl.c'))
40 softmmu_ss.add_all(when: vnc, if_true: vnc_ss)
41 softmmu_ss.add(when: vnc, if_false: files('vnc-stubs.c'))
42 specific_ss.add(when: ['CONFIG_SOFTMMU'], if_true: opengl)
47 curses_ss = ss.source_set()
48 curses_ss.add(when: [curses, iconv], if_true: [files('curses.c'), pixman])
49 ui_modules += {'curses' : curses_ss}
52 if config_host.has_key('CONFIG_OPENGL')
53 opengl_ss = ss.source_set()
55 opengl_ss.add(when: [opengl, pixman, 'CONFIG_OPENGL'],
56 if_true: files('shader.c', 'console-gl.c', 'egl-helpers.c', 'egl-context.c'))
57 ui_modules += {'opengl' : opengl_ss}
60 if config_host.has_key('CONFIG_OPENGL') and gbm.found()
61 egl_headless_ss = ss.source_set()
62 egl_headless_ss.add(when: [opengl, gbm, pixman, 'CONFIG_OPENGL'],
63 if_true: files('egl-headless.c'))
64 ui_modules += {'egl-headless' : egl_headless_ss}
68 softmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('win32-kbd-hook.c'))
70 gtk_ss = ss.source_set()
71 gtk_ss.add(gtk, vte, pixman, files('gtk.c', 'gtk-clipboard.c'))
72 gtk_ss.add(when: x11, if_true: files('x_keymap.c'))
73 gtk_ss.add(when: [opengl, 'CONFIG_OPENGL'], if_true: files('gtk-gl-area.c'))
74 gtk_ss.add(when: [x11, opengl, 'CONFIG_OPENGL'], if_true: files('gtk-egl.c'))
75 ui_modules += {'gtk' : gtk_ss}
79 softmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('win32-kbd-hook.c'))
81 sdl_ss = ss.source_set()
82 sdl_ss.add(sdl, sdl_image, pixman, glib, files(
87 sdl_ss.add(when: [opengl, 'CONFIG_OPENGL'], if_true: files('sdl2-gl.c'))
88 sdl_ss.add(when: x11, if_true: files('x_keymap.c'))
89 ui_modules += {'sdl' : sdl_ss}
93 spice_core_ss = ss.source_set()
94 spice_core_ss.add(spice, pixman, files(
99 ui_modules += {'spice-core' : spice_core_ss}
102 if spice.found() and config_host.has_key('CONFIG_GIO')
103 spice_ss = ss.source_set()
104 spice_ss.add(spice, gio, pixman, files('spice-app.c'))
105 ui_modules += {'spice-app': spice_ss}
121 ['xorgevdev', 'qcode'],
122 ['xorgkbd', 'qcode'],
123 ['xorgxquartz', 'qcode'],
124 ['xorgxwin', 'qcode'],
128 if have_system or xkbcommon.found()
130 output = 'input-keymap-@0@-to-@1@.c.inc'.format(e[0], e[1])
131 genh += custom_target(output,
134 input: files('keycodemapdb/data/keymaps.csv'),
135 command: [python, files('keycodemapdb/tools/keymap-gen'),
138 '--varname', 'qemu_input_map_@0@_to_@1@'.format(e[0], e[1]),
139 '@INPUT0@', e[0], e[1]])
148 install_data('qemu.desktop', install_dir: qemu_desktopdir)
151 modules += {'ui': ui_modules}