From 9f96db71252fc66b72c433e2ca0d49e031c6a5fd Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Thu, 5 Jan 2017 09:37:00 -0800 Subject: Added experimental support for building with Meson+Ninja --- util/meson.build | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 util/meson.build (limited to 'util/meson.build') diff --git a/util/meson.build b/util/meson.build new file mode 100644 index 0000000..43c4973 --- /dev/null +++ b/util/meson.build @@ -0,0 +1,27 @@ +# Attention, emacs, please use -*- mode: python -*- +# (even though this isn't actually Python code) + +# we re-use mount_util.c from the library, but do want to keep ourself +# as stand-alone as possible. in order to make an out-of-source build +# possible, we "generate" the file from its original location by +# copying it over. +mount_util_c = custom_target('mount_util', + input : '../lib/mount_util.c', + output : 'mount_util.c', + command : ['cp', '-a', '@INPUT@', '@OUTPUT@'], +) + +executable('fusermount3', ['fusermount.c', mount_util_c], + include_directories: include_dirs, + install: true, + install_dir: get_option('bindir')) + +executable('mount.fuse3', ['mount.fuse.c'], + include_directories: include_dirs, + install: true, + install_dir: get_option('sbindir')) + +meson.add_install_script('install_helper.sh', get_option('sysconfdir'), + get_option('bindir'), get_option('libdir')) + + -- cgit v1.2.3