grim/guifications2

Initial support for building the installer
draft default tip
2021-05-19, Gary Kramlich
e60a596742b7
Initial support for building the installer
if target_machine.system() == 'windows'
MAKENSIS = find_program('makensis')
installer = custom_target('installer',
command : [MAKENSIS,
'/V3',
'-DGUIFICATIONS_VERSION=@0@'.format(meson.project_version()),
'-DBUILD_ROOT=@0@'.format(meson.project_build_root()),
'-DBUILD_DIR=@0@'.format(meson.current_build_dir()),
'-DSOURCE_ROOT=@0@'.format(meson.project_source_root()),
'-DSOURCE_DIR=@0@'.format(meson.current_source_dir()),
'-DPIDGIN_VERSION=@0@'.format(PIDGIN.version()),
meson.current_source_dir() / 'guifications-installer.nsi',
],
output : 'pidgin-guifications-@0@.exe'.format(meson.project_version()),
depends : [guifications2])
alias_target('installer', installer)
endif