diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2017-06-29 18:05:02 +0200 |
---|---|---|
committer | Felix Riemann <friemann@gnome.org> | 2017-11-12 13:58:45 +0100 |
commit | b55f66560e6eff902b08346198ceb15b5500aed3 (patch) | |
tree | ead4c7f2ec4d8166fe04af40903b20ae77d0159f /plugins | |
parent | 9fe34b11eedbec4a294168a6a4936cf66702bef0 (diff) | |
download | eog-b55f66560e6eff902b08346198ceb15b5500aed3.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. This patch adds meson
support along autotools.
https://bugzilla.gnome.org/show_bug.cgi?id=784354
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Makefile.am | 4 | ||||
-rw-r--r-- | plugins/meson.build | 34 |
2 files changed, 37 insertions, 1 deletions
diff --git a/plugins/Makefile.am b/plugins/Makefile.am index 4026dcad..ee4434be 100644 --- a/plugins/Makefile.am +++ b/plugins/Makefile.am @@ -64,6 +64,8 @@ $(plugins_DATA): %.plugin: %.plugin.desktop.in $(wildcard $(top_srcdir)/po/*po) DISTCLEANFILES = $(plugins_DATA) CLEANFILES = $(plugins_DATA) -EXTRA_DIST = $(plugins_in_files) +EXTRA_DIST = \ + $(plugins_in_files) \ + meson.build -include $(top_srcdir)/git.mk diff --git a/plugins/meson.build b/plugins/meson.build new file mode 100644 index 00000000..c54ca8a6 --- /dev/null +++ b/plugins/meson.build @@ -0,0 +1,34 @@ +msgfmt = find_program('msgfmt') + +plugins = [ + 'fullscreen', + 'reload' +] + +if have_exif + plugins += 'statusbar-date' +endif + +foreach plugin: plugins + shared_module( + plugin, + sources: '@0@/eog-@0@-plugin.c'.format(plugin), + include_directories: top_inc, + dependencies: libeog_dep, + install: true, + install_dir: eog_pluginsdir + ) + + plugin_data = plugin + '.plugin' + + # FIXME: Move custom_target to i18n.merge_file when gettext acquires plugin support. + # http://lists.gnu.org/archive/html/bug-gettext/2017-06/msg00001.html + custom_target( + plugin_data, + input: '@0@/@1@.desktop.in'.format(plugin, plugin_data), + output: plugin_data, + command: [msgfmt, '--desktop', '--keyword=Name', '--keyword=Description', '--template', '@INPUT@', '-d', po_dir, '-o', '@OUTPUT@'], + install: true, + install_dir: eog_pluginsdir + ) +endforeach |