4 'qga-qapi-emit-events.c',
5 'qga-qapi-emit-events.h',
8 'qga-qapi-init-commands.c',
9 'qga-qapi-init-commands.h',
10 'qga-qapi-introspect.c',
11 'qga-qapi-introspect.h',
18 qga_qapi_files = custom_target('QGA QAPI files',
19 output: qga_qapi_outputs,
20 input: 'qapi-schema.json',
21 command: [ qapi_gen, '-o', 'qga', '-p', 'qga-', '@INPUT0@' ],
22 depend_files: qapi_gen_depends)
24 qga_ss = ss.source_set()
26 foreach output: qga_qapi_outputs
27 qga_ss.add(qga_qapi_files[i])
33 'guest-agent-command-state.c',
36 qga_ss.add(when: 'CONFIG_POSIX', if_true: files(
39 qga_ss.add(when: 'CONFIG_WIN32', if_true: files(
46 qga_ss = qga_ss.apply(config_host, strict: false)
48 qga = executable('qemu-ga', qga_ss.sources(),
49 link_args: config_host['LIBS_QGA'].split(),
50 dependencies: [qemuutil, libudev],
54 if targetos == 'windows'
55 if 'CONFIG_QGA_VSS' in config_host
61 wixl = find_program('wixl', required: false)
64 if 'CONFIG_QGA_VSS' in config_host and 'QEMU_GA_MSI_WITH_VSS' in config_host
67 qga_msi = custom_target('QGA MSI',
68 input: files('installer/qemu-ga.wxs'),
69 output: 'qemu-ga-@0@.msi'.format(config_host['ARCH']),
73 'QEMU_GA_VERSION=' + config_host['QEMU_GA_VERSION'],
74 'QEMU_GA_MANUFACTURER=' + config_host['QEMU_GA_MANUFACTURER'],
75 'QEMU_GA_DISTRO=' + config_host['QEMU_GA_DISTRO'],
76 'BUILD_DIR=' + meson.build_root(),
77 wixl, '-o', '@OUTPUT0@', '@INPUT0@',
78 config_host['QEMU_GA_MSI_ARCH'].split(),
79 config_host['QEMU_GA_MSI_WITH_VSS'].split(),
80 config_host['QEMU_GA_MSI_MINGW_DLL_PATH'].split(),
83 alias_target('msi', qga_msi)
86 install_subdir('run', install_dir: get_option('localstatedir'))
89 alias_target('qemu-ga', all_qga)