summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAleksey Samoilov <[email protected]>2026-08-02 01:27:47 +0400
committerGitHub <[email protected]>2026-08-01 21:27:47 +0000
commit1b527834cdca36b3971b63720b8ffb38b4fd57ba (patch)
treeec2f1a4e2f21e620d354c52bd26819d5d6c76346 /data
parent09df5771a28035d781c22677bf2273d551f02a50 (diff)
downloadmate-panel-1b527834cdca36b3971b63720b8ffb38b4fd57ba.tar.bz2
mate-panel-1b527834cdca36b3971b63720b8ffb38b4fd57ba.tar.xz
Add Meson support (#1571)HEADmaster
* Add Meson support * Fix libegg submodule configure * generate schemas before install
Diffstat (limited to 'data')
-rw-r--r--data/meson.build64
1 files changed, 64 insertions, 0 deletions
diff --git a/data/meson.build b/data/meson.build
new file mode 100644
index 00000000..e87e5e1c
--- /dev/null
+++ b/data/meson.build
@@ -0,0 +1,64 @@
+# panel layouts
+install_data(
+ 'default.layout',
+ 'fedora.layout',
+ 'linuxmint.layout',
+ 'mageia.layout',
+ 'opensuse.layout',
+ 'ubuntu.layout',
+ install_dir: mate_panel_layoutsdir,
+)
+
+# gsettings enums
+glib_mkenums = find_program('glib-mkenums')
+
+panel_enums = custom_target('org.mate.panel.enums.xml',
+ input: '../mate-panel/panel-enums-gsettings.h',
+ output: 'org.mate.panel.enums.xml',
+ build_by_default: true,
+ install: true,
+ install_dir: mate_panel_schemadir,
+ command: [
+ glib_mkenums,
+ '--comments', '<!-- @comment@ -->',
+ '--fhead', '<schemalist>',
+ '--vhead', ' <@type@ id=\'org.mate.panel.@EnumName@\'>',
+ '--vprod', ' <value nick=\'@valuenick@\' value=\'@valuenum@\'/>',
+ '--vtail', ' </@type@>',
+ '--ftail', '</schemalist>',
+ '--output', '@OUTPUT@',
+ '@INPUT@',
+ ],
+)
+
+# gsettings schemas
+schemas = []
+foreach schema : [
+ 'org.mate.panel',
+ 'org.mate.panel.object',
+ 'org.mate.panel.toplevel',
+ 'org.mate.panel.menubar',
+ ]
+ schemas += configure_file(
+ input: schema + '.gschema.xml.in',
+ output: schema + '.gschema.xml',
+ configuration: {'GETTEXT_PACKAGE': mate_panel_gettext_package},
+ )
+endforeach
+
+install_data(schemas, install_dir: mate_panel_schemadir)
+
+glib_compile_schemas = find_program('glib-compile-schemas')
+
+gschemas_compiled = custom_target('gschemas.compiled',
+ output: 'gschemas.compiled',
+ input: schemas,
+ build_by_default: true,
+ command: [
+ glib_compile_schemas,
+ meson.current_build_dir(),
+ ],
+)
+
+gnome = import('gnome')
+gnome.post_install(glib_compile_schemas: true)