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: [spice, 'CONFIG_SPICE'], if_true: files('spice-core.c', 'spice-input.c', 'spice-display.c'))
19 softmmu_ss.add(when: cocoa, if_true: files('cocoa.m'))
21 vnc_ss = ss.source_set()
29 'vnc-auth-vencrypt.c',
33 vnc_ss.add(zlib, png, jpeg)
34 vnc_ss.add(when: sasl, if_true: files('vnc-auth-sasl.c'))
35 softmmu_ss.add_all(when: vnc, if_true: vnc_ss)
36 softmmu_ss.add(when: vnc, if_false: files('vnc-stubs.c'))
37 softmmu_ss.add(when: [opengl, 'CONFIG_OPENGL'], if_true: files('shader.c', 'console-gl.c', 'egl-helpers.c', 'egl-context.c'))
38 softmmu_ss.add(when: [opengl, 'CONFIG_OPENGL_DMABUF'], if_true: files('egl-headless.c'))
39 specific_ss.add(when: ['CONFIG_SOFTMMU'], if_true: opengl)
44 curses_ss = ss.source_set()
45 curses_ss.add(when: [curses, iconv], if_true: [files('curses.c'), pixman])
46 ui_modules += {'curses' : curses_ss}
49 if config_host.has_key('CONFIG_GTK')
50 softmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('win32-kbd-hook.c'))
52 gtk_ss = ss.source_set()
53 gtk_ss.add(gtk, vte, pixman, files('gtk.c'))
54 gtk_ss.add(when: [x11, 'CONFIG_X11'], if_true: files('x_keymap.c'))
55 gtk_ss.add(when: [opengl, 'CONFIG_OPENGL'], if_true: files('gtk-egl.c'))
56 gtk_ss.add(when: [opengl, 'CONFIG_GTK_GL'], if_true: files('gtk-gl-area.c'))
57 ui_modules += {'gtk' : gtk_ss}
61 softmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('win32-kbd-hook.c'))
63 sdl_ss = ss.source_set()
64 sdl_ss.add(sdl, sdl_image, pixman, glib, files(
69 sdl_ss.add(when: [opengl, 'CONFIG_OPENGL'], if_true: files('sdl2-gl.c'))
70 sdl_ss.add(when: [x11, 'CONFIG_X11'], if_true: files('x_keymap.c'))
71 ui_modules += {'sdl' : sdl_ss}
74 if config_host.has_key('CONFIG_SPICE') and config_host.has_key('CONFIG_GIO')
75 spice_ss = ss.source_set()
76 spice_ss.add(spice, gio, pixman, files('spice-app.c'))
77 ui_modules += {'spice-app': spice_ss}
80 keymap_gen = find_program('keycodemapdb/tools/keymap-gen')
95 ['xorgevdev', 'qcode'],
97 ['xorgxquartz', 'qcode'],
98 ['xorgxwin', 'qcode'],
102 if have_system or xkbcommon.found()
104 output = 'input-keymap-@0@-to-@1@.c.inc'.format(e[0], e[1])
105 genh += custom_target(output,
108 input: files('keycodemapdb/data/keymaps.csv'),
109 command: [python.full_path(), files('keycodemapdb/tools/keymap-gen'),
111 '--varname', 'qemu_input_map_@0@_to_@1@'.format(e[0], e[1]),
112 'code-map', '@INPUT0@', e[0], e[1]])
121 install_data('qemu.desktop', install_dir: config_host['qemu_desktopdir'])
124 modules += {'ui': ui_modules}