From afcf2ed34ca0b47aaee6f81625d4deec2c3d6bb9 Mon Sep 17 00:00:00 2001 From: Niels De Graef Date: Wed, 8 May 2019 08:27:38 +0200 Subject: Port to the Meson build system See the [Meson website] for a full reference. To build, test and/or install the librest library, you essentially need the following commands: ``` $ meson build $ ninja -C build $ meson test -C build $ ninja -C build install ``` For the GNOME initiative, see https://wiki.gnome.org/Initiatives/GnomeGoals/MesonPorting [Meson website]: http://mesonbuild.com/ https://gitlab.gnome.org/GNOME/librest/merge_requests/1 --- examples/meson.build | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 examples/meson.build (limited to 'examples') diff --git a/examples/meson.build b/examples/meson.build new file mode 100644 index 0000000..7d16dc7 --- /dev/null +++ b/examples/meson.build @@ -0,0 +1,25 @@ +example_names = [ + 'test-raw', + 'test-xml', + 'dump-xml', + 'post-twitter', + 'post-twitter-media', + 'get-flickr-favorites', + 'lastfm-shout', + 'continuous-twitter', +] + +example_deps = [ + glib_dep, + libsoup_dep, + librest_dep, + librest_extras_dep, +] + +foreach name : example_names + example = executable(name, + '@0@.c'.format(name), + dependencies: example_deps, + include_directories: config_h_inc, + ) +endforeach -- cgit v1.2.1