summaryrefslogtreecommitdiff
path: root/pkg/libfuse/gen.lua
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2017-09-17 00:03:34 -0700
committerMichael Forney <mforney@mforney.org>2017-09-25 19:23:06 -0700
commitba94a8513d9a0aadb3f2c834c74b64aa644c61e8 (patch)
tree48ac6c85baa7b9d960b9e1e726a906e61ca60967 /pkg/libfuse/gen.lua
parentcb362b531d79708a259bbf070dee5104fd63df08 (diff)
Rewrite ninja generation scripts in Lua
Diffstat (limited to 'pkg/libfuse/gen.lua')
-rw-r--r--pkg/libfuse/gen.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkg/libfuse/gen.lua b/pkg/libfuse/gen.lua
new file mode 100644
index 00000000..c59075cb
--- /dev/null
+++ b/pkg/libfuse/gen.lua
@@ -0,0 +1,24 @@
+cflags{
+ '-D FUSE_USE_VERSION=31',
+ '-D fuse_new_31=fuse_new',
+ '-I include',
+ '-I $dir',
+ '-I $srcdir/include',
+ '-I $srcdir/lib',
+}
+
+cc('lib/mount_util.c')
+
+exe('fusermount3', {'util/fusermount.c', 'lib/mount_util.c.o'})
+file('bin/fusermount3', '4755', '$outdir/fusermount3')
+man{'doc/fusermount3.1'}
+
+lib('libfuse.a', [[lib/(
+ fuse.c fuse_loop.c fuse_loop_mt.c
+ fuse_lowlevel.c fuse_opt.c
+ fuse_signals.c buffer.c cuse_lowlevel.c
+ helper.c modules/subdir.c
+ mount.c mount_util.c.o
+)]])
+
+fetch 'git'