2 specific_ss.add(when: ['CONFIG_SOFTMMU'], if_true: pixman) # for the include path
16 softmmu_ss.add(when: 'CONFIG_LINUX', if_true: files('input-linux.c'))
17 softmmu_ss.add(when: 'CONFIG_SPICE', if_true: files('spice-core.c', 'spice-input.c', 'spice-display.c'))
18 softmmu_ss.add(when: [cocoa, 'CONFIG_COCOA'], if_true: files('cocoa.m'))
20 vnc_ss = ss.source_set()
28 'vnc-auth-vencrypt.c',
32 vnc_ss.add(zlib, png, jpeg)
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 softmmu_ss.add(when: [opengl, 'CONFIG_OPENGL'], if_true: files('shader.c', 'console-gl.c', 'egl-helpers.c', 'egl-context.c'))
37 softmmu_ss.add(when: [opengl, 'CONFIG_OPENGL_DMABUF'], if_true: files('egl-headless.c'))
38 specific_ss.add(when: ['CONFIG_SOFTMMU'], if_true: opengl)
42 if config_host.has_key('CONFIG_CURSES')
43 curses_ss = ss.source_set()
44 curses_ss.add(when: [curses, iconv], if_true: [files('curses.c'), pixman])
45 ui_modules += {'curses' : curses_ss}
48 if config_host.has_key('CONFIG_GTK')
49 softmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('win32-kbd-hook.c'))
51 gtk_ss = ss.source_set()
52 gtk_ss.add(gtk, vte, pixman, files('gtk.c'))
53 gtk_ss.add(when: [x11, 'CONFIG_X11'], if_true: files('x_keymap.c'))
54 gtk_ss.add(when: [opengl, 'CONFIG_OPENGL'], if_true: files('gtk-egl.c'))
55 gtk_ss.add(when: [opengl, 'CONFIG_GTK_GL'], if_true: files('gtk-gl-area.c'))
56 ui_modules += {'gtk' : gtk_ss}
60 softmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('win32-kbd-hook.c'))
62 sdl_ss = ss.source_set()
63 sdl_ss.add(sdl, sdl_image, pixman, glib, files(
68 sdl_ss.add(when: [opengl, 'CONFIG_OPENGL'], if_true: files('sdl2-gl.c'))
69 sdl_ss.add(when: [x11, 'CONFIG_X11'], if_true: files('x_keymap.c'))
70 ui_modules += {'sdl' : sdl_ss}
73 if config_host.has_key('CONFIG_SPICE') and config_host.has_key('CONFIG_GIO')
74 spice_ss = ss.source_set()
75 spice_ss.add(spice, gio, pixman, files('spice-app.c'))
76 ui_modules += {'spice-app': spice_ss}
79 keymap_gen = find_program('keycodemapdb/tools/keymap-gen')
94 ['xorgevdev', 'qcode'],
96 ['xorgxquartz', 'qcode'],
97 ['xorgxwin', 'qcode'],
101 if have_system or xkbcommon.found()
103 output = 'input-keymap-@0@-to-@1@.c.inc'.format(e[0], e[1])
104 genh += custom_target(output,
107 input: files('keycodemapdb/data/keymaps.csv'),
108 command: [python.full_path(), files('keycodemapdb/tools/keymap-gen'),
110 '--varname', 'qemu_input_map_@0@_to_@1@'.format(e[0], e[1]),
111 'code-map', '@INPUT0@', e[0], e[1]])
118 install_data('qemu.desktop', install_dir: config_host['qemu_desktopdir'])
120 modules += {'ui': ui_modules}