| 1 | vnca = vnc_ss.apply({}, strict: false) |
| 2 | |
| 3 | qemu_vnc1 = custom_target('qemu-vnc1 gdbus-codegen', |
| 4 | output: ['qemu-vnc1.h', 'qemu-vnc1.c'], |
| 5 | input: files('qemu-vnc1.xml'), |
| 6 | command: [gdbus_codegen, '@INPUT@', |
| 7 | '--glib-min-required', '2.64', |
| 8 | '--output-directory', meson.current_build_dir(), |
| 9 | '--interface-prefix', 'org.qemu.', |
| 10 | '--c-namespace', 'Qemu', |
| 11 | '--generate-c-code', '@BASENAME@']) |
| 12 | |
| 13 | qemu_vnc = executable('qemu-vnc', |
| 14 | sources: ['qemu-vnc.c', 'display.c', 'input.c', |
| 15 | 'audio.c', 'chardev.c', 'clipboard.c', 'console.c', |
| 16 | 'dbus.c', 'stubs.c', 'utils.c', |
| 17 | vnca.sources(), dbus_display1, qemu_vnc1], |
| 18 | dependencies: [vnca.dependencies(), io, crypto, qemuutil, gio, ui]) |
| 19 | |
| 20 | # The executable lives in a subdirectory of the build tree, but |
| 21 | # get_relocated_path() looks for qemu-bundle relative to the binary. |
| 22 | # Create a symlink so that firmware/keymap lookup works during development. |
| 23 | run_command('ln', '-sfn', |
| 24 | '../../qemu-bundle', |
| 25 | meson.current_build_dir() / 'qemu-bundle', |
| 26 | check: false) |