2 specific_ss.add(when: ['CONFIG_SOFTMMU'], if_true: pixman) # for the include path
15 softmmu_ss.add([spice_headers, files('spice-module.c')])
17 softmmu_ss.add(when: 'CONFIG_LINUX', if_true: files('input-linux.c'))
18 softmmu_ss.add(when: cocoa, if_true: files('cocoa.m'))
20 vnc_ss = ss.source_set()
28 'vnc-auth-vencrypt.c',
32 vnc_ss.add(zlib, png, jpeg, gnutls)
33 vnc_ss.add(when: sasl, if_true: files('vnc-auth-sasl.c'))
34 softmmu_ss.add_all(when: vnc, if_true: vnc_ss)
35 softmmu_ss.add(when: vnc, if_false: files('vnc-stubs.c'))
36 specific_ss.add(when: ['CONFIG_SOFTMMU'], if_true: opengl)
41 curses_ss = ss.source_set()
42 curses_ss.add(when: [curses, iconv], if_true: [files('curses.c'), pixman])
43 ui_modules += {'curses' : curses_ss}
46 if config_host.has_key('CONFIG_OPENGL')
47 opengl_ss = ss.source_set()
48 opengl_ss.add(when: [opengl, pixman, 'CONFIG_OPENGL'],
49 if_true: files('shader.c', 'console-gl.c', 'egl-helpers.c', 'egl-context.c'))
50 ui_modules += {'opengl' : opengl_ss}
53 if config_host.has_key('CONFIG_OPENGL_DMABUF')
54 egl_headless_ss = ss.source_set()
55 egl_headless_ss.add(when: [opengl, pixman, 'CONFIG_OPENGL_DMABUF'],
56 if_true: files('egl-headless.c'))
57 ui_modules += {'egl-headless' : egl_headless_ss}
61 softmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('win32-kbd-hook.c'))
63 gtk_ss = ss.source_set()
64 gtk_ss.add(gtk, vte, pixman, files('gtk.c'))
65 gtk_ss.add(when: x11, if_true: files('x_keymap.c'))
66 gtk_ss.add(when: [opengl, 'CONFIG_OPENGL'], if_true: files('gtk-egl.c', 'gtk-gl-area.c'))
67 ui_modules += {'gtk' : gtk_ss}
71 softmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('win32-kbd-hook.c'))
73 sdl_ss = ss.source_set()
74 sdl_ss.add(sdl, sdl_image, pixman, glib, files(
79 sdl_ss.add(when: [opengl, 'CONFIG_OPENGL'], if_true: files('sdl2-gl.c'))
80 sdl_ss.add(when: x11, if_true: files('x_keymap.c'))
81 ui_modules += {'sdl' : sdl_ss}
84 if config_host.has_key('CONFIG_SPICE')
85 spice_core_ss = ss.source_set()
86 spice_core_ss.add(spice, pixman, files(
91 ui_modules += {'spice-core' : spice_core_ss}
94 if config_host.has_key('CONFIG_SPICE') and config_host.has_key('CONFIG_GIO')
95 spice_ss = ss.source_set()
96 spice_ss.add(spice, gio, pixman, files('spice-app.c'))
97 ui_modules += {'spice-app': spice_ss}
100 keymap_gen = find_program('keycodemapdb/tools/keymap-gen')
115 ['xorgevdev', 'qcode'],
116 ['xorgkbd', 'qcode'],
117 ['xorgxquartz', 'qcode'],
118 ['xorgxwin', 'qcode'],
122 if have_system or xkbcommon.found()
124 output = 'input-keymap-@0@-to-@1@.c.inc'.format(e[0], e[1])
125 genh += custom_target(output,
128 input: files('keycodemapdb/data/keymaps.csv'),
129 command: [python.full_path(), files('keycodemapdb/tools/keymap-gen'),
131 '--varname', 'qemu_input_map_@0@_to_@1@'.format(e[0], e[1]),
132 'code-map', '@INPUT0@', e[0], e[1]])
141 install_data('qemu.desktop', install_dir: qemu_desktopdir)
144 modules += {'ui': ui_modules}