summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-06-19 14:38:42 -0700
committerMichael Forney <mforney@mforney.org>2020-06-22 22:47:59 -0700
commit88c27384043b7574f4ccb2cab45c728d4db2bac9 (patch)
treea0a67683d4fd700b6329b59902330b55f9df30b6 /pkg
parent5e615bae79dfbfebb62159719d21e9b92a43e266 (diff)
b3sum: Install libblake3.a
Diffstat (limited to 'pkg')
-rw-r--r--pkg/b3sum/gen.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/b3sum/gen.lua b/pkg/b3sum/gen.lua
index 2be770f6..39e05913 100644
--- a/pkg/b3sum/gen.lua
+++ b/pkg/b3sum/gen.lua
@@ -3,6 +3,11 @@ cflags{
'-D WITH_ASM',
}
+pkg.hdrs = {
+ copy('$outdir/include', '$srcdir', {'blake3.h'}),
+ install=true,
+}
+
lib('libblake3.a', [[
blake3.c
blake3_dispatch.c
@@ -14,6 +19,7 @@ lib('libblake3.a', [[
blake3_sse41_x86-64_unix.S
)
]])
+file('lib/libblake3.a', '644', '$outdir/libblake3.a')
exe('b3sum', {'b3sum.c', 'libblake3.a'})
file('bin/b3sum', '755', '$outdir/b3sum')