aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2017-01-05 09:37:00 -0800
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2017-01-12 15:19:04 -0800
commit9f96db71252fc66b72c433e2ca0d49e031c6a5fd (patch)
tree494132dae14dba3de18a9013f2299cfc37cceda5 /example
parent3006686b536942f6f96675e3d12b793087e78e6a (diff)
Added experimental support for building with Meson+Ninja
Diffstat (limited to 'example')
-rw-r--r--example/Makefile.am2
-rw-r--r--example/meson.build29
2 files changed, 31 insertions, 0 deletions
diff --git a/example/Makefile.am b/example/Makefile.am
index 81b9555..c83c81f 100644
--- a/example/Makefile.am
+++ b/example/Makefile.am
@@ -17,3 +17,5 @@ ioctl_client_LDADD =
poll_client_CPPFLAGS =
poll_client_LDFLAGS =
poll_client_LDADD =
+
+EXTRA_DIST = meson.build
diff --git a/example/meson.build b/example/meson.build
new file mode 100644
index 0000000..4497288
--- /dev/null
+++ b/example/meson.build
@@ -0,0 +1,29 @@
+# Attention, emacs, please use -*- mode: python -*-
+# (even though this isn't actually Python code)
+
+examples = [ 'passthrough', 'passthrough_fh', 'null', 'hello', 'hello_ll',
+ 'ioctl', 'ioctl_client', 'poll_client',
+ 'passthrough_ll', 'cuse', 'cuse_client' ]
+
+threaded_examples = [ 'notify_inval_inode',
+ 'notify_store_retrieve',
+ 'notify_inval_entry',
+ 'poll' ]
+
+foreach ex : examples
+ executable(ex, ex + '.c',
+ include_directories: include_dirs,
+ link_with: [ libfuse ],
+ install: false)
+endforeach
+
+
+foreach ex : threaded_examples
+ executable(ex, ex + '.c',
+ include_directories: include_dirs,
+ link_with: [ libfuse ],
+ dependencies: thread_dep,
+ install: false)
+endforeach
+
+# TODO: Link passthrough_fh with ulockmgr if available