xref: /haiku/src/system/kernel/lib/zstd/Jamfile (revision 6ac3a280f4e2eb65b9fcc246fc5d3c7ec327f22d)
1*6ac3a280SJérôme DuvalSubDir HAIKU_TOP src system kernel lib zstd ;
2*6ac3a280SJérôme Duval
3*6ac3a280SJérôme Duvallocal zstdSourceDirectory = [ BuildFeatureAttribute zstd : sources : path ] ;
4*6ac3a280SJérôme DuvalUseHeaders [ FDirName $(zstdSourceDirectory) lib ] ;
5*6ac3a280SJérôme DuvalUseHeaders [ FDirName $(zstdSourceDirectory) lib common ] ;
6*6ac3a280SJérôme Duval
7*6ac3a280SJérôme Duvallocal zstdCommonSources =
8*6ac3a280SJérôme Duval	error_private.c
9*6ac3a280SJérôme Duval	entropy_common.c fse_decompress.c zstd_common.c
10*6ac3a280SJérôme Duval	xxhash.c
11*6ac3a280SJérôme Duval	;
12*6ac3a280SJérôme Duvallocal zstdDecSources =
13*6ac3a280SJérôme Duval	huf_decompress.c zstd_decompress.c
14*6ac3a280SJérôme Duval	;
15*6ac3a280SJérôme Duval
16*6ac3a280SJérôme DuvalLOCATE on [ FGristFiles $(zstdCommonSources) ] =
17*6ac3a280SJérôme Duval	[ FDirName $(zstdSourceDirectory) lib common ] ;
18*6ac3a280SJérôme DuvalLOCATE on [ FGristFiles $(zstdDecSources) ] =
19*6ac3a280SJérôme Duval	[ FDirName $(zstdSourceDirectory) lib decompress ] ;
20*6ac3a280SJérôme DuvalDepends [ FGristFiles $(zstdCommonSources) $(zstdDecSources) ]
21*6ac3a280SJérôme Duval	: [ BuildFeatureAttribute zstd : sources ] ;
22*6ac3a280SJérôme Duval
23*6ac3a280SJérôme Duval# Build zstd with PIC, such that it can be used by kernel add-ons (filesystems).
24*6ac3a280SJérôme DuvalKernelStaticLibrary kernel_libzstd.a :
25*6ac3a280SJérôme Duval	$(zstdCommonSources) $(zstdDecSources)
26*6ac3a280SJérôme Duval	;
27