diff options
| author | Michael Forney <mforney@mforney.org> | 2017-09-17 00:03:34 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2017-09-25 19:23:06 -0700 |
| commit | ba94a8513d9a0aadb3f2c834c74b64aa644c61e8 (patch) | |
| tree | 48ac6c85baa7b9d960b9e1e726a906e61ca60967 /pkg/libusb | |
| parent | cb362b531d79708a259bbf070dee5104fd63df08 (diff) | |
Rewrite ninja generation scripts in Lua
Diffstat (limited to 'pkg/libusb')
| -rw-r--r-- | pkg/libusb/gen.lua | 14 | ||||
| -rw-r--r-- | pkg/libusb/gen.rc | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/pkg/libusb/gen.lua b/pkg/libusb/gen.lua new file mode 100644 index 00000000..2612b6d3 --- /dev/null +++ b/pkg/libusb/gen.lua @@ -0,0 +1,14 @@ +cflags{ + '-I include', + '-I $dir', + '-I $srcdir/libusb', +} + +pkg.hdrs = copy('$outdir/include', '$srcdir/libusb', {'libusb.h'}) + +lib('libusb-1.0.a', [[libusb/( + core.c descriptor.c hotplug.c io.c strerror.c sync.c + os/(poll_posix.c threads_posix.c linux_usbfs.c linux_netlink.c) +)]]) + +fetch 'git' diff --git a/pkg/libusb/gen.rc b/pkg/libusb/gen.rc deleted file mode 100644 index e57cdd13..00000000 --- a/pkg/libusb/gen.rc +++ /dev/null @@ -1,14 +0,0 @@ -cflags\ - -I include\ - -I '$dir' \ - -I '$srcdir'/libusb - -build '$outdir'/include/libusb.h copy '$srcdir'/libusb/libusb.h -phony headers '$outdir'/include/libusb.h - -lib libusb-1.0.a libusb/^(\ - core.c descriptor.c hotplug.c io.c strerror.c sync.c\ - os/^(poll_posix.c threads_posix.c linux_usbfs.c linux_netlink.c)\ -) - -fetch git |
