[gedit] build: improve a little gschema handling



commit e9890cd6b335a46664910a250ed7fe8a2cf14b6b
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Dec 5 11:26:32 2019 +0100

    build: improve a little gschema handling
    
    Avoid using a global variable (glibdir).

 data/meson.build | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index ef6907bcb..32004cbbc 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -48,10 +48,8 @@ if desktop_file_validate.found()
 endif
 
 quoted_plugins = []
-foreach plugin_name:active_plugins
-  quoted_plugins += [
-    '\'@0@\''.format(plugin_name)
-  ]
+foreach plugin_name : active_plugins
+  quoted_plugins += '\'@0@\''.format(plugin_name)
 endforeach
 
 gschema_in = configuration_data()
@@ -61,10 +59,7 @@ gschema_file = configure_file(
   input: 'org.gnome.gedit.gschema.xml.in',
   output: 'org.gnome.gedit.gschema.xml',
   configuration: gschema_in,
-  install_dir: join_paths(
-    glibdir,
-    'schemas',
-  )
+  install_dir: join_paths(get_option('prefix'), get_option('datadir'), 'glib-2.0/schemas')
 )
 
 gschema_dtd = join_paths(


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