summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorErnestas Kulik <ernestask@src.gnome.org>2016-09-28 09:16:11 +0300
committerErnestas Kulik <ernestask@src.gnome.org>2017-02-24 00:24:27 +0200
commited5652c89ac0654df2e82b54b00b27d51c825465 (patch)
treefa5f60a817818116e871c12a69ebcf73bbf2721f /eel
parent728300331dc5caa6142704e0e4cd70004bf0037a (diff)
downloadnautilus-ed5652c89ac0654df2e82b54b00b27d51c825465.tar.gz
general: add support for Meson
Since it’s 2017 already, Nautilus should use a build system that doesn’t take longer to set up the build than it takes to actually build. An observed build time using Ninja of roughly one-fifth of what it took Autotools is more than reason enough to add support for Meson. Along with that, this commit adds a convenience script to generate a tarball for releases, since we use libgd as a submodule and Meson does not handle source distributions. https://bugzilla.gnome.org/show_bug.cgi?id=778167
Diffstat (limited to 'eel')
-rw-r--r--eel/meson.build47
1 files changed, 47 insertions, 0 deletions
diff --git a/eel/meson.build b/eel/meson.build
new file mode 100644
index 000000000..ac2edeabc
--- /dev/null
+++ b/eel/meson.build
@@ -0,0 +1,47 @@
+libeel_2_sources = [
+ 'eel-accessibility.h',
+ 'eel-accessibility.c',
+ 'eel-art-extensions.h',
+ 'eel-art-extensions.c',
+ 'eel-canvas.h',
+ 'eel-canvas.c',
+ 'eel-debug.h',
+ 'eel-debug.c',
+ 'eel-gdk-extensions.h',
+ 'eel-gdk-extensions.c',
+ 'eel-glib-extensions.h',
+ 'eel-glib-extensions.c',
+ 'eel-gnome-extensions.h',
+ 'eel-gnome-extensions.c',
+ 'eel-graphic-effects.h',
+ 'eel-graphic-effects.c',
+ 'eel-gtk-extensions.h',
+ 'eel-self-checks.h',
+ 'eel-self-checks.c',
+ 'eel-stock-dialogs.h',
+ 'eel-stock-dialogs.c',
+ 'eel-string.h',
+ 'eel-string.c',
+ 'eel-vfs-extensions.h',
+ 'eel-vfs-extensions.c',
+ 'eel.h',
+ 'eel-gtk-extensions.c',
+ 'eel-lib-self-check-functions.h',
+ 'eel-lib-self-check-functions.c',
+]
+
+libeel_2_deps = [glib, gtk, gail, libm, x11]
+
+libeel_2 = static_library ('eel-2', libeel_2_sources,
+ dependencies: libeel_2_deps,
+ include_directories: nautilus_include_dirs)
+
+eel_2 = declare_dependency (link_with: libeel_2,
+ include_directories: nautilus_include_dirs,
+ dependencies: libeel_2_deps)
+
+check_eel = executable ('check-eel',
+ 'check-program.c',
+ dependencies: [eel_2, xml])
+
+test ('check-eel', check_eel)