summaryrefslogtreecommitdiffstats
path: root/plugins/time/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/time/meson.build')
-rw-r--r--plugins/time/meson.build68
1 files changed, 68 insertions, 0 deletions
diff --git a/plugins/time/meson.build b/plugins/time/meson.build
new file mode 100644
index 0000000..f3e43a3
--- /dev/null
+++ b/plugins/time/meson.build
@@ -0,0 +1,68 @@
+libtime_sources = files(
+ 'gedit-time-plugin.c',
+)
+
+libtime_deps = [
+ libgedit_dep,
+]
+
+gnome.mkenums(
+ 'org.gnome.gedit.plugins.time.enums.xml',
+ sources: libtime_sources,
+ comments: '<!-- @comment@ -->',
+ fhead: '<schemalist>',
+ vhead: ' <@type@ id="org.gnome.gedit.plugins.time.@EnumName@">',
+ vprod: ' <value nick="@valuenick@" value="@valuenum@"/>',
+ vtail: ' </@type@>',
+ ftail: '</schemalist>',
+ install_header: true,
+ install_dir: join_paths(
+ glibdir,
+ 'schemas',
+ )
+)
+
+subdir('resources')
+
+libtime_sha = shared_module(
+ 'time',
+ sources: libtime_sources,
+ include_directories: root_include_dir,
+ dependencies: libtime_deps,
+ install: true,
+ install_dir: join_paths(
+ pkglibdir,
+ 'plugins',
+ ),
+ name_suffix: module_suffix,
+)
+
+time_gschema_file = files('org.gnome.gedit.plugins.time.gschema.xml')
+install_data(
+ time_gschema_file,
+ install_dir: join_paths(get_option('prefix'), get_option('datadir'), 'glib-2.0/schemas')
+)
+
+if xmllint.found()
+ test(
+ 'validate-time-gschema',
+ xmllint,
+ args: [
+ '--noout',
+ '--dtdvalid', gschema_dtd,
+ time_gschema_file,
+ ]
+ )
+endif
+
+custom_target(
+ 'time.plugin',
+ input: 'time.plugin.desktop.in',
+ output: 'time.plugin',
+ command: msgfmt_plugin_cmd,
+ install: true,
+ install_dir: join_paths(
+ pkglibdir,
+ 'plugins',
+ )
+)