PIKApp/build/windows/meson.build

36 lines
1009 B
Meson

# Windows specific
configure_file(
input : 'pika-plug-ins.rc.in',
output: 'pika-plug-ins.rc',
configuration: versionconfig,
)
configure_file(
input : 'pika.rc.in',
output: 'pika.rc',
configuration: versionconfig,
)
# Basically, the build rules below do nothing (a mere `python -c 'exit()'` call).
# But because they depends on `git-version.h`, meson ensure that it gets built first,
# Then the result of this targets is used in 35+ resource compiler build rules.
#
# Nasty trick indeed, but it fixes race condition issue described in GNOME/PIKA#6257.
pika_plugins_rc = custom_target('pika_plugins_rc',
build_by_default: true,
build_always_stale: true,
command: [python, '-c', 'exit()'],
depends: generate_version_h ? [gitversion_h] : [],
output: ['pika-plug-ins.rc']
)
pika_app_rc = custom_target('pika_app_rc',
build_by_default: true,
build_always_stale: true,
command: [python, '-c', 'exit()'],
depends: generate_version_h ? [gitversion_h] : [],
output: ['pika.rc']
)