summaryrefslogtreecommitdiffstats
path: root/plugins/externaltools/meson.build
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--plugins/externaltools/meson.build35
1 files changed, 35 insertions, 0 deletions
diff --git a/plugins/externaltools/meson.build b/plugins/externaltools/meson.build
new file mode 100644
index 0000000..d46d0dd
--- /dev/null
+++ b/plugins/externaltools/meson.build
@@ -0,0 +1,35 @@
+subdir('scripts')
+subdir('tools')
+subdir('data')
+
+externaltools_gschema_file = files('org.gnome.gedit.plugins.externaltools.gschema.xml')
+install_data(
+ externaltools_gschema_file,
+ install_dir: join_paths(get_option('prefix'), get_option('datadir'), 'glib-2.0/schemas')
+)
+
+if xmllint.found()
+ test(
+ 'validate-externaltools-gschema',
+ xmllint,
+ args: [
+ '--noout',
+ '--dtdvalid', gschema_dtd,
+ externaltools_gschema_file,
+ ]
+ )
+endif
+
+custom_target(
+ 'externaltools.plugin',
+ input: 'externaltools.plugin.desktop.in',
+ output: 'externaltools.plugin',
+ command: msgfmt_plugin_cmd,
+ install: true,
+ install_dir: join_paths(
+ pkglibdir,
+ 'plugins',
+ )
+)
+
+subdir('tests')