summaryrefslogtreecommitdiff
path: root/pkg/b3sum
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-06-22 22:41:35 -0700
committerMichael Forney <mforney@mforney.org>2020-06-22 23:33:21 -0700
commit2df90914df3e9e1197b267791024cb97b5638d7f (patch)
tree16436e8bada6896a03c01c78b834d0b142ae4e66 /pkg/b3sum
parentd94a0753e7ada0fd8ff204b75a6b385188ad80f0 (diff)
Add blake3 hashes to fspec files
Diffstat (limited to 'pkg/b3sum')
-rw-r--r--pkg/b3sum/.gitignore1
-rw-r--r--pkg/b3sum/gen.lua7
2 files changed, 8 insertions, 0 deletions
diff --git a/pkg/b3sum/.gitignore b/pkg/b3sum/.gitignore
new file mode 100644
index 00000000..b38f5394
--- /dev/null
+++ b/pkg/b3sum/.gitignore
@@ -0,0 +1 @@
+/host.ninja
diff --git a/pkg/b3sum/gen.lua b/pkg/b3sum/gen.lua
index 39e05913..0b40a4f4 100644
--- a/pkg/b3sum/gen.lua
+++ b/pkg/b3sum/gen.lua
@@ -8,6 +8,13 @@ pkg.hdrs = {
install=true,
}
+sub('host.ninja', function()
+ set('outdir', '$outdir/host')
+ toolchain(config.host)
+
+ lib('libblake3.a', {'blake3.c', 'blake3_dispatch.c', 'blake3_portable.c'})
+end)
+
lib('libblake3.a', [[
blake3.c
blake3_dispatch.c