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)
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}
60 if config_host.has_key('CONFIG_GTK')
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, 'CONFIG_X11'], if_true: files('x_keymap.c'))
66 gtk_ss.add(when: [opengl, 'CONFIG_OPENGL'], if_true: files('gtk-egl.c'))
67 gtk_ss.add(when: [opengl, 'CONFIG_GTK_GL'], if_true: files('gtk-gl-area.c'))
68 ui_modules += {'gtk' : gtk_ss}
72 softmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('win32-kbd-hook.c'))
74 sdl_ss = ss.source_set()
75 sdl_ss.add(sdl, sdl_image, pixman, glib, files(
80 sdl_ss.add(when: [opengl, 'CONFIG_OPENGL'], if_true: files('sdl2-gl.c'))
81 sdl_ss.add(when: [x11, 'CONFIG_X11'], if_true: files('x_keymap.c'))
82 ui_modules += {'sdl' : sdl_ss}
85 if config_host.has_key('CONFIG_SPICE')
86 spice_core_ss = ss.source_set()
87 spice_core_ss.add(spice, pixman, files(
92 ui_modules += {'spice-core' : spice_core_ss}
95 if config_host.has_key('CONFIG_SPICE') and config_host.has_key('CONFIG_GIO')
96 spice_ss = ss.source_set()
97 spice_ss.add(spice, gio, pixman, files('spice-app.c'))
98 ui_modules += {'spice-app': spice_ss}
101 keymap_gen = find_program('keycodemapdb/tools/keymap-gen')
116 ['xorgevdev', 'qcode'],
117 ['xorgkbd', 'qcode'],
118 ['xorgxquartz', 'qcode'],
119 ['xorgxwin', 'qcode'],
123 if have_system or xkbcommon.found()
125 output = 'input-keymap-@0@-to-@1@.c.inc'.format(e[0], e[1])
126 genh += custom_target(output,
129 input: files('keycodemapdb/data/keymaps.csv'),
130 command: [python.full_path(), files('keycodemapdb/tools/keymap-gen'),
132 '--varname', 'qemu_input_map_@0@_to_@1@'.format(e[0], e[1]),
133 'code-map', '@INPUT0@', e[0], e[1]])
142 install_data('qemu.desktop', install_dir: config_host['qemu_desktopdir'])
145 modules += {'ui': ui_modules}