summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgnacio Casal Quinteiro <qignacio@amazon.com>2019-01-14 12:10:06 +0100
committerIgnacio Casal Quinteiro <qignacio@amazon.com>2019-01-14 12:10:06 +0100
commitd2cda9f405d536ef4446177d679326f3c01d5203 (patch)
tree617cb8c808518cbeb3b8491b4a08ce37c46d81fe
parentf11a78275c7940808be943cc35d12e6152e1ff85 (diff)
downloadgsettings-desktop-schemas-wip/nacho/enum-schemas.tar.gz
meson: generate and install the enum schemaswip/nacho/enum-schemas
-rw-r--r--schemas/meson.build13
1 files changed, 13 insertions, 0 deletions
diff --git a/schemas/meson.build b/schemas/meson.build
index 69a3f98..3f3323a 100644
--- a/schemas/meson.build
+++ b/schemas/meson.build
@@ -39,6 +39,19 @@ conf.set('datarootdir', datadir)
conf.set('datadir', datadir)
conf.set('includedir', includedir)
+gnome.mkenums(
+ 'org.gnome.desktop.enums.xml',
+ sources: headers,
+ comments: '<!-- @comment@ -->',
+ fhead: '<schemalist>',
+ vhead: ' <@type@ id="org.gnome.desktop.@EnumName@">',
+ vprod: ' <value nick="@valuenick@" value="@valuenum@"/>',
+ vtail: ' </@type@>',
+ ftail: '</schemalist>',
+ install_header: true,
+ install_dir: schemasdir
+)
+
generated_schemas = []
foreach schema: schemas
generated_schemas += configure_file(