16ac3a280SJérôme DuvalSubDir HAIKU_TOP src system kernel lib zstd ; 26ac3a280SJérôme Duval 36ac3a280SJérôme Duvallocal zstdSourceDirectory = [ BuildFeatureAttribute zstd : sources : path ] ; 46ac3a280SJérôme DuvalUseHeaders [ FDirName $(zstdSourceDirectory) lib ] ; 56ac3a280SJérôme DuvalUseHeaders [ FDirName $(zstdSourceDirectory) lib common ] ; 66ac3a280SJérôme Duval 7969aecd6SAugustin Cavalier# disable -Werror for this directory only 8969aecd6SAugustin CavalierSubDirCcFlags -Wno-error ; 9969aecd6SAugustin Cavalier 106ac3a280SJérôme Duvallocal zstdCommonSources = 116ac3a280SJérôme Duval error_private.c 126ac3a280SJérôme Duval entropy_common.c fse_decompress.c zstd_common.c 136ac3a280SJérôme Duval xxhash.c 146ac3a280SJérôme Duval ; 156ac3a280SJérôme Duvallocal zstdDecSources = 16*92ca8543SAugustin Cavalier huf_decompress.c zstd_ddict.c zstd_decompress.c zstd_decompress_block.c 176ac3a280SJérôme Duval ; 186ac3a280SJérôme Duval 196ac3a280SJérôme DuvalLOCATE on [ FGristFiles $(zstdCommonSources) ] = 206ac3a280SJérôme Duval [ FDirName $(zstdSourceDirectory) lib common ] ; 216ac3a280SJérôme DuvalLOCATE on [ FGristFiles $(zstdDecSources) ] = 226ac3a280SJérôme Duval [ FDirName $(zstdSourceDirectory) lib decompress ] ; 236ac3a280SJérôme DuvalDepends [ FGristFiles $(zstdCommonSources) $(zstdDecSources) ] 246ac3a280SJérôme Duval : [ BuildFeatureAttribute zstd : sources ] ; 256ac3a280SJérôme Duval 266ac3a280SJérôme Duval# Build zstd with PIC, such that it can be used by kernel add-ons (filesystems). 276ac3a280SJérôme DuvalKernelStaticLibrary kernel_libzstd.a : 286ac3a280SJérôme Duval $(zstdCommonSources) $(zstdDecSources) 296ac3a280SJérôme Duval ; 30