[tracker/sam/gsettings-dep-fix] build: Add dependency between glib-compile-schemas and the schemas



commit 067d0b820fd89fa5997ab0f8e2eec5e54e0fd225
Author: Sam Thursfield <sam afuera me uk>
Date:   Wed Sep 4 16:13:47 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 | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index 16e70d339..877c9fbec 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -6,7 +6,7 @@ tracker_gsettings_schemas = files([
 ])
 
 foreach schema : tracker_gsettings_schemas
-  schemas = configure_file(
+  configure_file(
     input: schema,
     output: '@PLAINNAME@',
     copy: true,
@@ -35,6 +35,7 @@ custom_target('compile-schemas',
   output: 'gschemas.compiled',
   command: [glib_compile_schemas, meson.current_build_dir()],
   build_by_default: true,
-  depends: tracker_store_settings_enums)
+  depends: tracker_store_settings_enums,
+  depend_files: tracker_gsettings_schemas)
 
 tracker_uninstalled_gsettings_schema_dir = meson.current_build_dir()


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