From 79bd7e5a84b01e4a50365deca3ef799acd8c998b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1igo=20Mart=C3=ADnez?= Date: Thu, 21 Mar 2019 16:36:07 +0100 Subject: 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. --- data/meson.build | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 data/meson.build (limited to 'data') 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', +) -- cgit v1.2.1