summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2019-05-08 08:27:38 +0200
committerGünther Wagner <info@gunibert.de>2021-10-21 12:52:27 +0200
commitafcf2ed34ca0b47aaee6f81625d4deec2c3d6bb9 (patch)
tree43bad38eb62e220408b4cc053c54ced78db8ae28 /examples
parent409dec8b596bb6cc3b8e25d0572bf5cd38130968 (diff)
downloadlibrest-afcf2ed34ca0b47aaee6f81625d4deec2c3d6bb9.tar.gz
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
Diffstat (limited to 'examples')
-rw-r--r--examples/meson.build25
1 files changed, 25 insertions, 0 deletions
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