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
20 softmmu_ss.add(files('dbus-module.c'))
22 softmmu_ss.add([spice_headers, files('spice-module.c')])
23 softmmu_ss.add(when: spice_protocol, if_true: files('vdagent.c'))
25 softmmu_ss.add(when: 'CONFIG_LINUX', if_true: files(
29 softmmu_ss.add(when: cocoa, if_true: files('cocoa.m'))
31 vnc_ss = ss.source_set()
39 'vnc-auth-vencrypt.c',
44 vnc_ss.add(zlib, jpeg, gnutls)
45 vnc_ss.add(when: sasl, if_true: files('vnc-auth-sasl.c'))
46 softmmu_ss.add_all(when: vnc, if_true: vnc_ss)
47 softmmu_ss.add(when: vnc, if_false: files('vnc-stubs.c'))
52 curses_ss = ss.source_set()
53 curses_ss.add(when: [curses, iconv], if_true: [files('curses.c'), pixman])
54 ui_modules += {'curses' : curses_ss}
57 softmmu_ss.add(opengl)
59 opengl_ss = ss.source_set()
61 opengl_ss.add(when: [opengl, pixman],
62 if_true: files('shader.c', 'console-gl.c', 'egl-helpers.c', 'egl-context.c'))
63 ui_modules += {'opengl' : opengl_ss}
66 if opengl.found() and gbm.found()
67 egl_headless_ss = ss.source_set()
68 egl_headless_ss.add(when: [opengl, gbm, pixman],
69 if_true: files('egl-headless.c'))
70 ui_modules += {'egl-headless' : egl_headless_ss}
74 dbus_ss = ss.source_set()
75 dbus_display1 = custom_target('dbus-display gdbus-codegen',
76 output: ['dbus-display1.h', 'dbus-display1.c'],
77 input: files('dbus-display1.xml'),
78 command: [gdbus_codegen, '@INPUT@',
79 '--glib-min-required', '2.64',
80 '--output-directory', meson.current_build_dir(),
81 '--interface-prefix', 'org.qemu.',
82 '--c-namespace', 'QemuDBus',
83 '--generate-c-code', '@BASENAME@'])
84 dbus_ss.add(when: [gio, pixman, opengl, gbm],
93 ui_modules += {'dbus' : dbus_ss}
97 softmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('win32-kbd-hook.c'))
99 gtk_ss = ss.source_set()
100 gtk_ss.add(gtk, vte, pixman, files('gtk.c'))
101 if have_gtk_clipboard
102 gtk_ss.add(files('gtk-clipboard.c'))
104 gtk_ss.add(when: x11, if_true: files('x_keymap.c'))
105 gtk_ss.add(when: opengl, if_true: files('gtk-gl-area.c'))
106 gtk_ss.add(when: [x11, opengl], if_true: files('gtk-egl.c'))
107 ui_modules += {'gtk' : gtk_ss}
111 softmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('win32-kbd-hook.c'))
113 sdl_ss = ss.source_set()
114 sdl_ss.add(sdl, sdl_image, pixman, glib, files(
119 sdl_ss.add(when: opengl, if_true: files('sdl2-gl.c'))
120 sdl_ss.add(when: x11, if_true: files('x_keymap.c'))
121 ui_modules += {'sdl' : sdl_ss}
125 spice_core_ss = ss.source_set()
126 spice_core_ss.add(spice, pixman, files(
131 ui_modules += {'spice-core' : spice_core_ss}
134 if spice.found() and gio.found()
135 spice_ss = ss.source_set()
136 spice_ss.add(spice, gio, pixman, files('spice-app.c'))
137 ui_modules += {'spice-app': spice_ss}
153 ['xorgevdev', 'qcode'],
154 ['xorgkbd', 'qcode'],
155 ['xorgxquartz', 'qcode'],
156 ['xorgxwin', 'qcode'],
160 if have_system or xkbcommon.found()
162 output = 'input-keymap-@0@-to-@1@.c.inc'.format(e[0], e[1])
163 genh += custom_target(output,
166 input: files('keycodemapdb/data/keymaps.csv'),
167 command: [python, files('keycodemapdb/tools/keymap-gen'),
170 '--varname', 'qemu_input_map_@0@_to_@1@'.format(e[0], e[1]),
171 '@INPUT0@', e[0], e[1]])
180 install_data('qemu.desktop', install_dir: qemu_desktopdir)
183 modules += {'ui': ui_modules}