xref: /haiku/src/kits/support/Jamfile (revision 1e60bdeab63fa7a57bc9a55b032052e95a18bd2c)
1SubDir HAIKU_TOP src kits support ;
2
3SetSubDirSupportedPlatforms haiku libbe_test ;
4
5UsePrivateHeaders app interface locale media shared support ;
6
7local architectureObject ;
8for architectureObject in [ MultiArchSubDirSetup ] {
9	on $(architectureObject) {
10		local architecture = $(TARGET_PACKAGING_ARCH) ;
11
12		UseBuildFeatureHeaders zlib ;
13
14		Includes [ FGristFiles ZlibCompressionAlgorithm.cpp ]
15			: [ BuildFeatureAttribute zlib : headers ] ;
16
17		if [ FIsBuildFeatureEnabled zstd ] {
18			SubDirC++Flags -DZSTD_ENABLED ;
19			UseBuildFeatureHeaders zstd ;
20			Includes [ FGristFiles ZstdCompressionAlgorithm.cpp ]
21				: [ BuildFeatureAttribute zstd : headers ] ;
22			SetupFeatureObjectsDir zstd ;
23		}
24
25		# BUrl uses ICU to perform IDNA conversions (unicode domain names)
26		UseBuildFeatureHeaders icu ;
27		Includes [ FGristFiles Url.cpp ]
28			: [ BuildFeatureAttribute icu : headers ] ;
29
30		MergeObject <libbe!$(architecture)>support_kit.o :
31			Architecture.cpp
32			Archivable.cpp
33			ArchivingManagers.cpp
34			Base64.cpp
35			Beep.cpp
36			BlockCache.cpp
37			BufferedDataIO.cpp
38			BufferIO.cpp
39			ByteOrder.cpp
40			CompressionAlgorithm.cpp
41			DataIO.cpp
42			DataPositionIOWrapper.cpp
43			DateTime.cpp
44			Flattenable.cpp
45			Job.cpp
46			JobQueue.cpp
47			List.cpp
48			Locker.cpp
49			PointerList.cpp
50			Referenceable.cpp
51			StopWatch.cpp
52			String.cpp
53			StringList.cpp
54			Url.cpp
55			Uuid.cpp
56			ZlibCompressionAlgorithm.cpp
57			ZstdCompressionAlgorithm.cpp
58			;
59
60		StaticLibrary [ MultiArchDefaultGristFiles libreferenceable.a ]
61			: : [ FGristFiles Referenceable.o ] ;
62	}
63}
64