commit e90a03d

hovercats  ·  2024-12-23 00:11:49 +0000 UTC
parent 0ca412d
xxhash: port to oasis
6 files changed,  +32, -0
+3, -0
1@@ -313,3 +313,6 @@
2 [submodule "pkg/pdpmake/src"]
3 	path = pkg/pdpmake/src
4 	url = https://github.com/rmyorston/pdpmake
5+[submodule "pkg/xxhash/src"]
6+	path = pkg/xxhash/src
7+	url = https://github.com/Cyan4973/xxHash
+1, -0
1@@ -108,6 +108,7 @@ subgen 'wayland-protocols'
2 subgen 'wld'
3 subgen 'wpa_supplicant'
4 subgen 'xkeyboard-config'
5+subgen 'xxhash'
6 subgen 'xz'
7 subgen 'yt-dlp'
8 subgen 'zlib'
+1, -0
1@@ -0,0 +1 @@
2+/local.ninja
+25, -0
 1@@ -0,0 +1,25 @@
 2+cflags{
 3+	'-std=c99',
 4+	'-pedantic',
 5+	'-Wall',
 6+}
 7+
 8+pkg.hdrs = copy('$outdir/include', '$srcdir', {'xxh3.h', 'xxhash.h'})
 9+pkg.hdrs.install = true
10+
11+lib('libxxhash.a', {'xxhash.c'})
12+
13+exe('xxhsum', [[
14+	cli/(
15+		xxhsum.c xsum_os_specific.c
16+		xsum_output.c xsum_sanity_check.c
17+		xsum_bench.c
18+	)
19+	libxxhash.a
20+]])
21+
22+file('lib/libxxhash.a', '644', '$outdir/libxxhash.a')
23+file('bin/xxhsum', '755', '$outdir/xxhsum')
24+man{'cli/xxhsum.1'}
25+
26+fetch 'git'
+1, -0
1@@ -0,0 +1 @@
2+Subproject commit bbb27a5efb85b92a0486cf361a8635715a53f6ba
+1, -0
1@@ -0,0 +1 @@
2+0.8.2 r0