[gnome-dictionary] build: Fix test dependencies with Meson 0.57



commit 87c026cfe4acbcfc62d15950f88a71d8d9678c7e
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Apr 22 15:11:59 2021 +0100

    build: Fix test dependencies with Meson 0.57
    
    We need to explicitly depend on the generated files.

 data/appdata/meson.build | 3 ++-
 data/meson.build         | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/data/appdata/meson.build b/data/appdata/meson.build
index 1dc4ed7..ef95c85 100644
--- a/data/appdata/meson.build
+++ b/data/appdata/meson.build
@@ -1,6 +1,6 @@
 appdata_conf = configuration_data()
 appdata_conf.set('application_id', application_id)
-i18n.merge_file('appdata',
+appdata_file = i18n.merge_file('appdata',
   input: configure_file(
     input: 'org.gnome.Dictionary.appdata.xml.in.in',
     output: 'org.gnome.Dictionary.appdata.xml.in',
@@ -18,6 +18,7 @@ if appstream_util.found()
     appstream_util,
     args: [ 'validate', '--nonet', application_id + '.appdata.xml' ],
     workdir: meson.current_build_dir(),
+    depends: appdata_file,
   )
 endif
 
diff --git a/data/meson.build b/data/meson.build
index 660e6b8..1723c8f 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -3,7 +3,7 @@ subdir('appdata')
 desktop_conf = configuration_data()
 desktop_conf.set('icon', application_id)
 desktop_conf.set('application_id', application_id)
-i18n.merge_file('desktop',
+desktop_file = i18n.merge_file('desktop',
   input: configure_file(
     input: 'org.gnome.Dictionary.desktop.in.in',
     output: 'org.gnome.Dictionary.desktop.in',
@@ -22,6 +22,7 @@ if desktop_file_validate.found()
     desktop_file_validate,
     args: application_id + '.desktop',
     workdir: meson.current_build_dir(),
+    depends: desktop_file,
   )
 endif
 


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