[gimp] Issue #8537: GIMP 2.99 tarball fails to configure with Meson.



commit 76df38399c8962e215ae6cf1b514a204663b5594
Author: Jehan <jehan girinstud io>
Date:   Tue Aug 30 23:58:24 2022 +0200

    Issue #8537: GIMP 2.99 tarball fails to configure with Meson.

 plug-ins/common/meson.build | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/plug-ins/common/meson.build b/plug-ins/common/meson.build
index a2e50069ab..88b5071def 100644
--- a/plug-ins/common/meson.build
+++ b/plug-ins/common/meson.build
@@ -175,6 +175,15 @@ foreach plugin : common_plugins_list
       copy: true,
     )
 
+    # See https://gitlab.gnome.org/GNOME/gimp/-/issues/8537
+    if generate_version_h
+      compile_resources_depfiles = []
+      compile_resources_depends  = [ gitversion_h ]
+    else
+      compile_resources_depfiles = [ gitversion_h ]
+      compile_resources_depends  = []
+    endif
+
     plugin_sources += windows.compile_resources(
       plugin_rc,
       args: [
@@ -185,7 +194,8 @@ foreach plugin : common_plugins_list
       include_directories: [
         rootInclude, appInclude,
       ],
-      depends: [ gitversion_h ],
+      depend_files: compile_resources_depfiles,
+      depends: compile_resources_depends
     )
   endif
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]