[gimp/wip/Jehan/fix-git-version-deps-order] build: use declare_dependency() as a trick to force a build order.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/Jehan/fix-git-version-deps-order] build: use declare_dependency() as a trick to force a build order.
- Date: Mon, 11 Jan 2021 18:04:57 +0000 (UTC)
commit 6943709046cea68f7a5a84e832d504273609769a
Author: Jehan <jehan girinstud io>
Date: Mon Jan 11 19:03:43 2021 +0100
build: use declare_dependency() as a trick to force a build order.
This was proposed in meson bug tracker:
https://github.com/mesonbuild/meson/issues/8123
build/windows/meson.build | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/build/windows/meson.build b/build/windows/meson.build
index 28362f6e10..68d5278a87 100644
--- a/build/windows/meson.build
+++ b/build/windows/meson.build
@@ -1,13 +1,18 @@
# Windows specific
-gimp_plugins_rc = configure_file(
+# The declare_dependency() tricks ensures that gimp-plug-ins.rc and
+# gimp.rc are never used before git-version.h is built first.
+
+gimp_plugins_rc_dep = configure_file(
input : 'gimp-plug-ins.rc.in',
output: 'gimp-plug-ins.rc',
configuration: versionconfig,
)
+gimp_plugins_rc = declare_dependency(sources: [ gimp_plugins_rc_dep, gitversion_h ])
-gimp_app_rc = configure_file(
+gimp_app_rc_dep = configure_file(
input : 'gimp.rc.in',
output: 'gimp.rc',
configuration: versionconfig,
)
+gimp_app_rc = declare_dependency(sources: [ gimp_app_rc_dep, gitversion_h ])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]