2017-12-29 17:12:55 +01:00
|
|
|
windows_conf = configuration_data()
|
|
|
|
windows_conf.set('VERSION', meson.project_version())
|
|
|
|
|
2019-03-18 09:58:35 +01:00
|
|
|
splitted_version = meson.project_version().split('~')[0].split('.')
|
2017-12-29 17:12:55 +01:00
|
|
|
windows_conf.set('VERSION_MAJOR', splitted_version[0])
|
|
|
|
windows_conf.set('VERSION_MINOR', splitted_version.get(1, '0'))
|
|
|
|
windows_conf.set('VERSION_REVISION', splitted_version.get(2, '0'))
|
|
|
|
windows_conf.set('VERSION_EXTRA', splitted_version.get(3, '0'))
|
|
|
|
windows_conf.set('srcdir', meson.current_source_dir())
|
|
|
|
|
|
|
|
mpd_rc = configure_file(
|
|
|
|
input: 'mpd.rc.in',
|
|
|
|
output: 'mpd.rc',
|
|
|
|
configuration: windows_conf,
|
|
|
|
)
|
|
|
|
|
|
|
|
windows_mod = import('windows')
|
|
|
|
windows_resources = windows_mod.compile_resources(mpd_rc)
|