summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2019-03-21 16:36:07 +0100
committerIñigo Martínez <inigomartinez@gmail.com>2019-03-30 21:15:41 +0100
commit79bd7e5a84b01e4a50365deca3ef799acd8c998b (patch)
tree1b890c265f020a5a200a9ffc6f66c8efc3fd4218 /data
parent9b22a0251053b5869d6c2505aa9e9f34f16e0183 (diff)
downloadglade-79bd7e5a84b01e4a50365deca3ef799acd8c998b.tar.gz
build: Port to meson build system
meson is a build system focused on speed an ease of use, which helps speeding up the software development. meson build system has been added along with autotools.
Diffstat (limited to 'data')
-rw-r--r--data/meson.build71
1 files changed, 71 insertions, 0 deletions
diff --git a/data/meson.build b/data/meson.build
new file mode 100644
index 00000000..9ce56c4a
--- /dev/null
+++ b/data/meson.build
@@ -0,0 +1,71 @@
+desktop_conf = configuration_data()
+desktop_conf.set('VERSION', glade_version)
+
+desktop = glade_name + '.desktop'
+
+desktop_in = configure_file(
+ input: desktop + '.in.in',
+ output: '@BASENAME@',
+ configuration: desktop_conf,
+)
+
+i18n.merge_file(
+ desktop,
+ type: 'desktop',
+ input: desktop_in,
+ output: '@BASENAME@',
+ po_dir: po_dir,
+ install: true,
+ install_dir: glade_datadir / 'applications',
+)
+
+appdata = glade_name + '.appdata.xml'
+
+i18n.merge_file(
+ appdata,
+ input: appdata + '.in',
+ output: '@BASENAME@',
+ po_dir: po_dir,
+ install: true,
+ install_dir: glade_datadir / 'metainfo',
+)
+
+# FIXME: replace these by install_subdir once autotools is removed
+install_data(
+ 'icons/hicolor/scalable/apps/org.gnome.Glade.svg',
+ install_dir: glade_datadir / 'icons/hicolor/scalable/apps',
+)
+
+icon_symbolic_data = files(
+ 'icons/hicolor/symbolic/apps/glade-brand-symbolic.svg',
+ 'icons/hicolor/symbolic/apps/org.gnome.Glade-symbolic.svg',
+)
+
+install_data(
+ icon_symbolic_data,
+ install_dir: glade_datadir / 'icons/hicolor/symbolic/apps',
+)
+
+pixmaps_data = files(
+ 'icons/deprecated-16x16.png',
+ 'icons/deprecated-22x22.png',
+ 'icons/devhelp.png',
+ 'icons/fixed-bg.png',
+ 'icons/placeholder.png',
+ 'icons/plus.png',
+)
+
+install_data(
+ pixmaps_data,
+ install_dir: glade_datadir / glade_pixmapdir,
+)
+
+its_data = files(
+ 'gettext/its/glade-catalog.its',
+ 'gettext/its/glade-catalog.loc',
+)
+
+install_data(
+ its_data,
+ install_dir: glade_datadir / 'gettext/its',
+)