2 specific_ss.add(when: ['CONFIG_SOFTMMU'], if_true: pixman) # for the include path
3 specific_ss.add(when: ['CONFIG_SOFTMMU'], if_true: opengl) # for the include path
19 softmmu_ss.add(files('dbus-module.c'))
21 softmmu_ss.add([spice_headers, files('spice-module.c')])
22 softmmu_ss.add(when: spice_protocol, if_true: files('vdagent.c'))
24 softmmu_ss.add(when: 'CONFIG_LINUX', if_true: files(
28 softmmu_ss.add(when: cocoa, if_true: files('cocoa.m'))
30 vnc_ss = ss.source_set()
38 'vnc-auth-vencrypt.c',
43 vnc_ss.add(zlib, png, jpeg, gnutls)
44 vnc_ss.add(when: sasl, if_true: files('vnc-auth-sasl.c'))
45 softmmu_ss.add_all(when: vnc, if_true: vnc_ss)
46 softmmu_ss.add(when: vnc, if_false: files('vnc-stubs.c'))
51 curses_ss = ss.source_set()
52 curses_ss.add(when: [curses, iconv], if_true: [files('curses.c'), pixman])
53 ui_modules += {'curses' : curses_ss}
56 softmmu_ss.add(opengl)
58 opengl_ss = ss.source_set()
60 opengl_ss.add(when: [opengl, pixman],
61 if_true: files('shader.c', 'console-gl.c', 'egl-helpers.c', 'egl-context.c'))
62 ui_modules += {'opengl' : opengl_ss}
65 if opengl.found() and gbm.found()
66 egl_headless_ss = ss.source_set()
67 egl_headless_ss.add(when: [opengl, gbm, pixman],
68 if_true: files('egl-headless.c'))
69 ui_modules += {'egl-headless' : egl_headless_ss}
73 dbus_ss = ss.source_set()
74 dbus_display1 = custom_target('dbus-display gdbus-codegen',
75 output: ['dbus-display1.h', 'dbus-display1.c'],
76 input: files('dbus-display1.xml'),
77 command: [gdbus_codegen, '@INPUT@',
78 '--glib-min-required', '2.64',
79 '--output-directory', meson.current_build_dir(),
80 '--interface-prefix', 'org.qemu.',
81 '--c-namespace', 'QemuDBus',
82 '--generate-c-code', '@BASENAME@'])
83 dbus_ss.add(when: [gio, pixman, opengl],
92 ui_modules += {'dbus' : dbus_ss}
96 softmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('win32-kbd-hook.c'))
98 gtk_ss = ss.source_set()
99 gtk_ss.add(gtk, vte, pixman, files('gtk.c', 'gtk-clipboard.c'))
100 gtk_ss.add(when: x11, if_true: files('x_keymap.c'))
101 gtk_ss.add(when: opengl, if_true: files('gtk-gl-area.c'))
102 gtk_ss.add(when: [x11, opengl], if_true: files('gtk-egl.c'))
103 ui_modules += {'gtk' : gtk_ss}
107 softmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('win32-kbd-hook.c'))
109 sdl_ss = ss.source_set()
110 sdl_ss.add(sdl, sdl_image, pixman, glib, files(
115 sdl_ss.add(when: opengl, if_true: files('sdl2-gl.c'))
116 sdl_ss.add(when: x11, if_true: files('x_keymap.c'))
117 ui_modules += {'sdl' : sdl_ss}
121 spice_core_ss = ss.source_set()
122 spice_core_ss.add(spice, pixman, files(
127 ui_modules += {'spice-core' : spice_core_ss}
130 if spice.found() and gio.found()
131 spice_ss = ss.source_set()
132 spice_ss.add(spice, gio, pixman, files('spice-app.c'))
133 ui_modules += {'spice-app': spice_ss}
149 ['xorgevdev', 'qcode'],
150 ['xorgkbd', 'qcode'],
151 ['xorgxquartz', 'qcode'],
152 ['xorgxwin', 'qcode'],
156 if have_system or xkbcommon.found()
158 output = 'input-keymap-@0@-to-@1@.c.inc'.format(e[0], e[1])
159 genh += custom_target(output,
162 input: files('keycodemapdb/data/keymaps.csv'),
163 command: [python, files('keycodemapdb/tools/keymap-gen'),
166 '--varname', 'qemu_input_map_@0@_to_@1@'.format(e[0], e[1]),
167 '@INPUT0@', e[0], e[1]])
176 install_data('qemu.desktop', install_dir: qemu_desktopdir)
179 modules += {'ui': ui_modules}