diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-08-26 15:04:19 +0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-09-01 08:51:34 -0400 |
commit | 8adfeba953e050efb546a92682c15fbddbdac61e (patch) | |
tree | f4f1d8620cacc4b7dad38a5db165853af11b611d /meson.build | |
parent | b81efab7c78777b00c6f385c17a24d19443fe15a (diff) |
meson: add NSIS building
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20200826110419.528931-9-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 164929f310..e8a0f12020 100644 --- a/meson.build +++ b/meson.build @@ -1230,6 +1230,31 @@ if build_docs endif endif +if host_machine.system() == 'windows' + nsis_cmd = [ + find_program('scripts/nsis.py'), + '@OUTPUT@', + get_option('prefix'), + meson.current_source_dir(), + host_machine.cpu_family(), + '--', + '-DDISPLAYVERSION=' + meson.project_version(), + ] + if build_docs + nsis_cmd += '-DCONFIG_DOCUMENTATION=y' + endif + if 'CONFIG_GTK' in config_host + nsis_cmd += '-DCONFIG_GTK=y' + endif + + nsis = custom_target('nsis', + output: 'qemu-setup-' + meson.project_version() + '.exe', + input: files('qemu.nsi'), + build_always_stale: true, + command: nsis_cmd + ['@INPUT@']) + alias_target('installer', nsis) +endif + summary_info = {} summary_info += {'Install prefix': config_host['prefix']} summary_info += {'BIOS directory': config_host['qemu_datadir']} |