xref: /haiku/src/system/boot/loader/file_systems/packagefs/Jamfile (revision f6166140a197ba64ff01f84e57ff74a58ea2428d)
1cbc85916SIngo WeinholdSubDir HAIKU_TOP src system boot loader file_systems packagefs ;
2cbc85916SIngo Weinhold
3e527b796SIngo WeinholdUsePrivateHeaders kernel shared storage support ;
47c6bff17SIngo WeinholdUseBuildFeatureHeaders zlib ;
5d3ed786fSAugustin CavalierUseBuildFeatureHeaders zstd ;
6cbc85916SIngo Weinhold
7*49159268SAlexander von Gluck IVif [ FIsBuildFeatureEnabled zstd ] {
8*49159268SAlexander von Gluck IV	DEFINES += ZSTD_ENABLED ;
9*49159268SAlexander von Gluck IV}
10cbc85916SIngo Weinhold
11cbc85916SIngo Weinholdlocal kernelC++Header = [ FDirName $(HAIKU_TOP) headers private kernel util
12cbc85916SIngo Weinhold	kernel_cpp.h ] ;
13cbc85916SIngo Weinhold
14cbc85916SIngo WeinholdSubDirC++Flags -fno-rtti -include $(kernelC++Header) ;
15cbc85916SIngo Weinhold
161f96a3cbSJessica Hamiltonlocal platform ;
171f96a3cbSJessica Hamiltonfor platform in [ MultiBootSubDirSetup ] {
181f96a3cbSJessica Hamilton	on $(platform) {
191f96a3cbSJessica Hamilton		UsePrivateHeaders [ FDirName kernel boot platform $(TARGET_BOOT_PLATFORM) ] ;
201f96a3cbSJessica Hamilton
21cbc85916SIngo Weinhold		SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package ] ;
22cbc85916SIngo Weinhold		SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits package hpkg ] ;
23e527b796SIngo Weinhold		SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits storage ] ;
246a89a36aSIngo Weinhold		SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits support ] ;
25cbc85916SIngo Weinhold
261f96a3cbSJessica Hamilton		BootStaticLibrary [ MultiBootGristFiles boot_packagefs ] :
27f648efd3SIngo Weinhold			packagefs.cpp
28f648efd3SIngo Weinhold			PackageSettingsItem.cpp
29f648efd3SIngo Weinhold
30f648efd3SIngo Weinhold			# package kit/hpkg
31cbc85916SIngo Weinhold			DataReader.cpp
32cbc85916SIngo Weinhold			ErrorOutput.cpp
33cbc85916SIngo Weinhold			FDDataReader.cpp
34cbc85916SIngo Weinhold			PackageContentHandler.cpp
35cbc85916SIngo Weinhold			PackageData.cpp
36cbc85916SIngo Weinhold			PackageDataReader.cpp
37cbc85916SIngo Weinhold			PackageEntry.cpp
38cbc85916SIngo Weinhold			PackageEntryAttribute.cpp
391f633814SIngo Weinhold			PackageFileHeapAccessorBase.cpp
401f633814SIngo Weinhold			PackageFileHeapReader.cpp
41cbc85916SIngo Weinhold			PackageReaderImpl.cpp
42cbc85916SIngo Weinhold			ReaderImplBase.cpp
43cbc85916SIngo Weinhold
44e527b796SIngo Weinhold			# storage kit
45e527b796SIngo Weinhold			FdIO.cpp
466a89a36aSIngo Weinhold
47e527b796SIngo Weinhold			# support kit
48b3263ad3SIngo Weinhold			CompressionAlgorithm.cpp
49b3263ad3SIngo Weinhold			ZlibCompressionAlgorithm.cpp
50d3ed786fSAugustin Cavalier			ZstdCompressionAlgorithm.cpp
51cbc85916SIngo Weinhold		;
529abd3e6fSOliver Tappe
531b50eb7dSIngo Weinhold		Includes [ FGristFiles ZlibCompressionAlgorithm.cpp ]
54a01adf34SIngo Weinhold			: [ BuildFeatureAttribute zlib : headers ] ;
55d3ed786fSAugustin Cavalier		Includes [ FGristFiles ZstdCompressionAlgorithm.cpp ]
56d3ed786fSAugustin Cavalier			: [ BuildFeatureAttribute zstd : headers ] ;
571f96a3cbSJessica Hamilton	}
581f96a3cbSJessica Hamilton}
59