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()
49 opengl_ss.add(when: [opengl, pixman, 'CONFIG_OPENGL'],
50 if_true: files('shader.c', 'console-gl.c', 'egl-helpers.c', 'egl-context.c'))
51 ui_modules += {'opengl' : opengl_ss}
54 if config_host.has_key('CONFIG_OPENGL') and gbm.found()
55 egl_headless_ss = ss.source_set()
56 egl_headless_ss.add(when: [opengl, gbm, pixman, 'CONFIG_OPENGL'],
57 if_true: files('egl-headless.c'))
58 ui_modules += {'egl-headless' : egl_headless_ss}
62 softmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('win32-kbd-hook.c'))
64 gtk_ss = ss.source_set()
65 gtk_ss.add(gtk, vte, pixman, files('gtk.c'))
66 gtk_ss.add(when: x11, if_true: files('x_keymap.c'))
67 gtk_ss.add(when: [opengl, 'CONFIG_OPENGL'], if_true: files('gtk-gl-area.c'))
68 gtk_ss.add(when: [x11, opengl, 'CONFIG_OPENGL'], if_true: files('gtk-egl.c'))
69 ui_modules += {'gtk' : gtk_ss}
73 softmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('win32-kbd-hook.c'))
75 sdl_ss = ss.source_set()
76 sdl_ss.add(sdl, sdl_image, pixman, glib, files(
81 sdl_ss.add(when: [opengl, 'CONFIG_OPENGL'], if_true: files('sdl2-gl.c'))
82 sdl_ss.add(when: x11, if_true: files('x_keymap.c'))
83 ui_modules += {'sdl' : sdl_ss}
86 if config_host.has_key('CONFIG_SPICE')
87 spice_core_ss = ss.source_set()
88 spice_core_ss.add(spice, pixman, files(
93 ui_modules += {'spice-core' : spice_core_ss}
96 if config_host.has_key('CONFIG_SPICE') and config_host.has_key('CONFIG_GIO')
97 spice_ss = ss.source_set()
98 spice_ss.add(spice, gio, pixman, files('spice-app.c'))
99 ui_modules += {'spice-app': spice_ss}
102 keymap_gen = find_program('keycodemapdb/tools/keymap-gen')
117 ['xorgevdev', 'qcode'],
118 ['xorgkbd', 'qcode'],
119 ['xorgxquartz', 'qcode'],
120 ['xorgxwin', 'qcode'],
124 if have_system or xkbcommon.found()
126 output = 'input-keymap-@0@-to-@1@.c.inc'.format(e[0], e[1])
127 genh += custom_target(output,
130 input: files('keycodemapdb/data/keymaps.csv'),
131 command: [python.full_path(), files('keycodemapdb/tools/keymap-gen'),
134 '--varname', 'qemu_input_map_@0@_to_@1@'.format(e[0], e[1]),
135 '@INPUT0@', e[0], e[1]])
144 install_data('qemu.desktop', install_dir: qemu_desktopdir)
147 modules += {'ui': ui_modules}