[tracker-miners/tracker-miners-2.3: 1/4] build: Add dependency between glib-compile-schemas and the schemas



commit d74cba88eb9ccc156beb82c18500b9ebacc43eaa
Author: Sam Thursfield <sam afuera me uk>
Date:   Wed Sep 4 16:09:59 2019 +0200

    build: Add dependency between glib-compile-schemas and the schemas
    
    This ensures that glib-compile-schemas runs when the settings schemas
    change.

 data/meson.build | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index 66659013b..6da887ce4 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -5,7 +5,7 @@ schemas = [
 ]
 
 foreach schema : schemas
-  schemas = configure_file(
+  configure_file(
     input: schema,
     output: schema,
     copy: true,
@@ -32,6 +32,7 @@ tracker_miners_settings_enums = custom_target('tracker-miners-common-settings-en
 # them being installed into /usr.
 #
 compile_schemas_deps = [tracker_miners_settings_enums]
+
 if get_option('tracker_core') == 'subproject'
   # Here we do an ugly dance to place GSettings schemas from tracker
   # and tracker-miners into the same directory. The `glib-compile-schemas`
@@ -64,6 +65,7 @@ custom_target('tracker-miners-compile-schemas',
   output: 'gschemas.compiled',
   command: [glib_compile_schemas, meson.current_build_dir()],
   build_by_default: true,
-  depends: compile_schemas_deps)
+  depends: compile_schemas_deps,
+  depend_files: schemas)
 
 tracker_miners_uninstalled_gsettings_schema_dir = meson.current_build_dir()


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