summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authormbkma <[email protected]>2026-03-22 10:18:37 +0100
committermbkma <[email protected]>2026-03-22 22:08:28 +0100
commit4a14e878c1187d6cc1f76b87a24a6007314d996e (patch)
tree14e01a5357bd807b95d368da78202cb495658718 /data
parentf1fd658bda21506fac8966821fcdb4c2a154b590 (diff)
downloadpluma-meson.tar.bz2
pluma-meson.tar.xz
add meson supportmeson
Diffstat (limited to 'data')
-rw-r--r--data/meson.build80
1 files changed, 80 insertions, 0 deletions
diff --git a/data/meson.build b/data/meson.build
new file mode 100644
index 00000000..8e936a3d
--- /dev/null
+++ b/data/meson.build
@@ -0,0 +1,80 @@
+desktop_conf = configuration_data()
+desktop_conf.set('VERSION', meson.project_version())
+desktop_conf.set('FULL_LIBEXECDIR', join_paths(libexecdir, 'pluma'))
+desktop_in = configure_file(
+ input: 'pluma.desktop.in.in',
+ output: 'pluma.desktop.in',
+ configuration: desktop_conf,
+)
+i18n.merge_file(
+ input: desktop_in,
+ output: 'pluma.desktop',
+ type: 'desktop',
+ po_dir: join_paths(meson.project_source_root(), 'po'),
+ install: true,
+ install_dir: join_paths(datadir, 'applications'),
+)
+
+appdata_conf = configuration_data()
+appdata_conf.set('VERSION', meson.project_version())
+appdata_in = configure_file(
+ input: 'pluma.appdata.xml.in.in',
+ output: 'pluma.appdata.xml.in',
+ configuration: appdata_conf,
+)
+i18n.merge_file(
+ input: appdata_in,
+ output: 'pluma.appdata.xml',
+ type: 'xml',
+ po_dir: join_paths(meson.project_source_root(), 'po'),
+ install: true,
+ install_dir: join_paths(datadir, 'metainfo'),
+)
+
+schema_conf = configuration_data()
+schema_conf.set('GETTEXT_PACKAGE', 'pluma')
+schema_conf.set('TOOLBAR_STYLE', 'PLUMA_TOOLBAR_SYSTEM')
+schema_xml = configure_file(
+ input: 'org.mate.pluma.gschema.xml.in',
+ output: 'org.mate.pluma.gschema.xml',
+ configuration: schema_conf,
+ install: true,
+ install_dir: join_paths(datadir, 'glib-2.0', 'schemas'),
+)
+
+glib_compile_schemas = find_program('glib-compile-schemas')
+gsettings_schema_builddir = meson.current_build_dir()
+gsettings_schema_target = custom_target(
+ 'gsettings-schema-compiled',
+ output: 'gschemas.compiled',
+ input: schema_xml,
+ command: [glib_compile_schemas, '--targetdir', gsettings_schema_builddir, gsettings_schema_builddir],
+ build_by_default: true,
+)
+
+install_man('pluma.1')
+
+pluma_pc_conf = configuration_data()
+pluma_pc_conf.set('prefix', prefix)
+pluma_pc_conf.set('exec_prefix', '${prefix}')
+pluma_pc_conf.set('libdir', libdir)
+pluma_pc_conf.set('includedir', includedir)
+pluma_pc_conf.set('VERSION', meson.project_version())
+configure_file(
+ input: 'pluma.pc.in',
+ output: 'pluma.pc',
+ configuration: pluma_pc_conf,
+ install: true,
+ install_dir: join_paths(libdir, 'pkgconfig'),
+)
+
+bugreport_conf = configuration_data()
+bugreport_conf.set('libexecdir', libexecdir)
+configure_file(
+ input: 'pluma-bugreport.sh.in',
+ output: 'pluma-bugreport.sh',
+ configuration: bugreport_conf,
+ install: true,
+ install_dir: join_paths(libexecdir, 'pluma'),
+ install_mode: 'rwxr-xr-x',
+)