aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-03-14 17:23:55 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2015-03-14 17:23:55 +0200
commit8ae740bb83da856da2a1fa1dd150eaec2dca62d2 (patch)
tree1fa3953b7a8d218b72693124bbfd973c299520ac /modules
parentd2cb344c91627aeec6b27b6bea0dfdc3832f3ee9 (diff)
downloadmeson-8ae740bb83da856da2a1fa1dd150eaec2dca62d2.zip
meson-8ae740bb83da856da2a1fa1dd150eaec2dca62d2.tar.gz
meson-8ae740bb83da856da2a1fa1dd150eaec2dca62d2.tar.bz2
Added simple gsettings schema compiler to gnome module.
Diffstat (limited to 'modules')
-rw-r--r--modules/gnome.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/gnome.py b/modules/gnome.py
index c160f58..a1c5025 100644
--- a/modules/gnome.py
+++ b/modules/gnome.py
@@ -19,6 +19,7 @@ import build
import os
import subprocess
from coredata import MesonException
+import mlog
class GnomeModule:
@@ -72,5 +73,23 @@ class GnomeModule:
typelib_target = build.CustomTarget(typelib_name, state.subdir, kwargs)
return [scan_target, typelib_target]
+ def compile_schemas(self, state, args, kwargs):
+ if len(args) != 0:
+ raise MesonException('Compile_schemas does not take positional arguments.')
+ srcdir = os.path.join(state.build_to_src, state.subdir)
+ outdir = state.subdir
+ cmd = ['glib-compile-schemas', '--targetdir', outdir, srcdir]
+ kwargs['command'] = cmd
+ kwargs['input'] = []
+ kwargs['output'] = 'gschemas.compiled'
+ if state.subdir == '':
+ targetname = 'gsettings-compile'
+ else:
+ targetname = 'gsettings-compile-' + state.subdir
+ target_g = build.CustomTarget(targetname, state.subdir, kwargs)
+ return target_g
+
def initialize():
+ mlog.log('Warning, glib compiled dependencies will not work until this upstream issue is fixed:',
+ mlog.bold('https://bugzilla.gnome.org/show_bug.cgi?id=745754'))
return GnomeModule()