summaryrefslogtreecommitdiff
path: root/plugins/pythonconsole
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pythonconsole')
-rw-r--r--plugins/pythonconsole/meson.build28
-rw-r--r--plugins/pythonconsole/pythonconsole/meson.build11
2 files changed, 39 insertions, 0 deletions
diff --git a/plugins/pythonconsole/meson.build b/plugins/pythonconsole/meson.build
new file mode 100644
index 00000000..80a11519
--- /dev/null
+++ b/plugins/pythonconsole/meson.build
@@ -0,0 +1,28 @@
+subdir('pythonconsole')
+
+plugin_conf = configuration_data()
+plugin_conf.set('PACKAGE_URL', 'https://github.com/mate-desktop/pluma')
+
+plugin_in = configure_file(
+ input: 'pythonconsole.plugin.desktop.in.in',
+ output: 'pythonconsole.plugin.desktop.in',
+ configuration: plugin_conf,
+)
+i18n.merge_file(
+ input: plugin_in,
+ output: 'pythonconsole.plugin',
+ po_dir: join_paths(meson.project_source_root(), 'po'),
+ type: 'desktop',
+ install: true,
+ install_dir: pluginsdir,
+)
+
+schema_conf = configuration_data()
+schema_conf.set('GETTEXT_PACKAGE', 'pluma')
+configure_file(
+ input: 'org.mate.pluma.plugins.pythonconsole.gschema.xml.in',
+ output: 'org.mate.pluma.plugins.pythonconsole.gschema.xml',
+ configuration: schema_conf,
+ install: true,
+ install_dir: join_paths(datadir, 'glib-2.0', 'schemas'),
+)
diff --git a/plugins/pythonconsole/pythonconsole/meson.build b/plugins/pythonconsole/pythonconsole/meson.build
new file mode 100644
index 00000000..be572f72
--- /dev/null
+++ b/plugins/pythonconsole/pythonconsole/meson.build
@@ -0,0 +1,11 @@
+install_data(
+ '__init__.py',
+ 'console.py',
+ 'config.py',
+ install_dir: join_paths(pluginsdir, 'pythonconsole'),
+)
+
+install_data(
+ 'config.ui',
+ install_dir: join_paths(datadir, 'pluma', 'plugins', 'pythonconsole', 'ui'),
+)