diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2018-12-13 18:09:28 +0100 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@igalia.com> | 2019-07-29 14:32:34 -0500 |
commit | 306f19603a817c95292eaad0fe053f9e3f217c2d (patch) | |
tree | 1f180d7c042b53ffab3f2ef71c4d2facdce3b25e /src | |
parent | 9a3375e367cc4f3ed7e88b4aecd8d8832f0fe3fd (diff) | |
download | cheese-306f19603a817c95292eaad0fe053f9e3f217c2d.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.
Diffstat (limited to 'src')
-rw-r--r-- | src/meson.build | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/meson.build b/src/meson.build new file mode 100644 index 00000000..b1800127 --- /dev/null +++ b/src/meson.build @@ -0,0 +1,38 @@ +sources = files( + 'cheese-application.vala', + 'cheese-countdown.vala', + 'cheese-effects-manager.vala', + 'cheese-main.vala', + 'cheese-preferences.vala', + 'cheese-window.vala', + 'thumbview/cheese-thumbnail.c', + 'thumbview/cheese-thumb-view.c', + 'thumbview/eog-thumb-nav.c', +) + +deps = [ + cheese_common_dep, + cheese_thumbview_dep, + config_dep, + gnome_desktop_dep, + eogthumbnav_dep, + libcanberra_dep, + libcanberra_gtk_dep, + libcheese_gtk_dep, + posix_dep, +] + +cflags = [ + '-DPACKAGE_LOCALEDIR="@0@"'.format(cheese_prefix / cheese_localedir), + '-DGNOME_DESKTOP_USE_UNSTABLE_API=1', + '-DGETTEXT_PACKAGE="@0@"'.format(cheese_name), +] + +executable( + cheese_name, + sources: sources + resource_sources, + include_directories: top_inc, + dependencies: deps, + c_args: cflags, + install: true, +) |