summaryrefslogtreecommitdiff
path: root/pkg/fspec-sync/gen.lua
blob: b1ccaa1138da18d5af5bcfbcb2f8808e0bc0d6f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
cflags{
	'-std=c99', '-Wall', '-Wpedantic', '-Wno-maybe-uninitialized',
	'-isystem $builddir/pkg/b3sum/include',
}

sub('host.ninja', function()
	set('outdir', '$outdir/host')
	toolchain(config.host)
	cflags{'-isystem $builddir/pkg/b3sum/include'}

	lib('libcommon.a', {'fatal.c', 'parse.c', 'reallocarray.c'})
	exe('fspec-hash', {'fspec-hash.c', 'libcommon.a', '$builddir/pkg/b3sum/host/libblake3.a'}, {'pkg/b3sum/headers'})
end)

lib('libcommon.a', {'fatal.c', 'parse.c', 'reallocarray.c'})

exe('fspec-hash', {'fspec-hash.c', 'libcommon.a', '$builddir/pkg/b3sum/libblake3.a'}, {'pkg/b3sum/headers'})
exe('fspec-sort', {'fspec-sort.c', 'libcommon.a'})
exe('fspec-tar', {'fspec-tar.c', 'libcommon.a'})

fetch 'git'