xref: /haiku/build/jam/HaikuPackages (revision 2710b4f5d4251c5cf88c82b0114ea99b0ef46d22)
1b38b2796SIngo Weinhold# The packages we build. Each is defined in its own file in the packages/
2b38b2796SIngo Weinhold# subdirectory.
305a922cdSAdrien Destugueslocal packages = [ FFilterByBuildFeatures
4b38b2796SIngo Weinhold	HaikuDevel
5*63b76faeSAugustin Cavalier	HaikuDataTranslators
695e0ce2cSAdrien Destugues	HaikuExtras
764bb8830SIngo Weinhold	HaikuLoader
8c20e7a68SAugustin Cavalier	HaikuSource
9b38b2796SIngo Weinhold	MakefileEngine
1059ecfa6cSAugustin Cavalier	NetFS
11ffba6606SMichael Lotz	UserlandFS
1205a922cdSAdrien Destugues	]
13355b8ba7SIngo Weinhold	;
14355b8ba7SIngo Weinhold
15a8c098a3SOliver Tappeif $(HAIKU_BUILD_TYPE) = bootstrap {
1678f4c163SIngo Weinhold	packages += HaikuBootstrap ;
1778f4c163SIngo Weinhold} else {
1878f4c163SIngo Weinhold	packages += Haiku ;
1978f4c163SIngo Weinhold}
2078f4c163SIngo Weinhold
21b0944c78SIngo Weinholdlocal archDependentPackages =
22b0944c78SIngo Weinhold	HaikuCrossDevel
23555b02d3SIngo Weinhold	WebPositive
24b0944c78SIngo Weinhold	;
25b0944c78SIngo Weinhold
26b4d3e055SIngo Weinholdlocal secondaryArchPackages =
27b4d3e055SIngo Weinhold	HaikuDevelSecondary
28b4d3e055SIngo Weinhold	;
29a8c098a3SOliver Tappeif $(HAIKU_BUILD_TYPE) = bootstrap {
30db16bcbaSIngo Weinhold	secondaryArchPackages += HaikuSecondaryBootstrap ;
31db16bcbaSIngo Weinhold} else {
32db16bcbaSIngo Weinhold	secondaryArchPackages += HaikuSecondary ;
33db16bcbaSIngo Weinhold}
34db16bcbaSIngo Weinhold
3578f4c163SIngo Weinhold
36b38b2796SIngo Weinholdpackages = $(packages:G=package-rules) ;
37b0944c78SIngo WeinholdarchDependentPackages = $(archDependentPackages:G=package-rules) ;
38db16bcbaSIngo WeinholdsecondaryArchPackages = $(secondaryArchPackages:G=package-rules) ;
39db16bcbaSIngo WeinholdSEARCH on $(packages) $(archDependentPackages) $(secondaryArchPackages)
40b0944c78SIngo Weinhold	= [ FDirName $(HAIKU_BUILD_RULES_DIR) packages ] ;
4125a7b01dSIngo Weinhold
42b38b2796SIngo Weinholdlocal package ;
43b38b2796SIngo Weinholdfor package in $(packages) {
44b38b2796SIngo Weinhold	include $(package) ;
453f6ca2fdSIngo Weinhold}
46b0944c78SIngo Weinhold
47b0944c78SIngo Weinholdfor package in $(archDependentPackages) {
48b0944c78SIngo Weinhold	local architectureObject ;
49b0944c78SIngo Weinhold	for architectureObject in [ MultiArchSubDirSetup ] {
50b0944c78SIngo Weinhold		on $(architectureObject) {
51b0944c78SIngo Weinhold			include $(package) ;
52b0944c78SIngo Weinhold		}
53b0944c78SIngo Weinhold	}
54b0944c78SIngo Weinhold}
55db16bcbaSIngo Weinhold
56db16bcbaSIngo Weinholdfor package in $(secondaryArchPackages) {
57db16bcbaSIngo Weinhold	local architectureObject ;
58db16bcbaSIngo Weinhold	for architectureObject in
59db16bcbaSIngo Weinhold			[ MultiArchSubDirSetup $(TARGET_PACKAGING_ARCHS[2-]) ] {
60db16bcbaSIngo Weinhold		on $(architectureObject) {
61db16bcbaSIngo Weinhold			include $(package) ;
62db16bcbaSIngo Weinhold		}
63db16bcbaSIngo Weinhold	}
64db16bcbaSIngo Weinhold}
65