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 595e0ce2cSAdrien Destugues HaikuExtras 664bb8830SIngo Weinhold HaikuLoader 7c20e7a68SAugustin Cavalier HaikuSource 8b38b2796SIngo Weinhold HaikuUserguide 9b38b2796SIngo Weinhold HaikuWelcome 10b38b2796SIngo Weinhold MakefileEngine 11*59ecfa6cSAugustin Cavalier NetFS 12ffba6606SMichael Lotz UserlandFS 1305a922cdSAdrien Destugues ] 14355b8ba7SIngo Weinhold ; 15355b8ba7SIngo Weinhold 16a8c098a3SOliver Tappeif $(HAIKU_BUILD_TYPE) = bootstrap { 1778f4c163SIngo Weinhold packages += HaikuBootstrap ; 1878f4c163SIngo Weinhold} else { 1978f4c163SIngo Weinhold packages += Haiku ; 2078f4c163SIngo Weinhold} 2178f4c163SIngo Weinhold 22b0944c78SIngo Weinholdlocal archDependentPackages = 23b0944c78SIngo Weinhold HaikuCrossDevel 24555b02d3SIngo Weinhold WebPositive 25b0944c78SIngo Weinhold ; 26b0944c78SIngo Weinhold 27b4d3e055SIngo Weinholdlocal secondaryArchPackages = 28b4d3e055SIngo Weinhold HaikuDevelSecondary 29b4d3e055SIngo Weinhold ; 30a8c098a3SOliver Tappeif $(HAIKU_BUILD_TYPE) = bootstrap { 31db16bcbaSIngo Weinhold secondaryArchPackages += HaikuSecondaryBootstrap ; 32db16bcbaSIngo Weinhold} else { 33db16bcbaSIngo Weinhold secondaryArchPackages += HaikuSecondary ; 34db16bcbaSIngo Weinhold} 35db16bcbaSIngo Weinhold 3678f4c163SIngo Weinhold 37b38b2796SIngo Weinholdpackages = $(packages:G=package-rules) ; 38b0944c78SIngo WeinholdarchDependentPackages = $(archDependentPackages:G=package-rules) ; 39db16bcbaSIngo WeinholdsecondaryArchPackages = $(secondaryArchPackages:G=package-rules) ; 40db16bcbaSIngo WeinholdSEARCH on $(packages) $(archDependentPackages) $(secondaryArchPackages) 41b0944c78SIngo Weinhold = [ FDirName $(HAIKU_BUILD_RULES_DIR) packages ] ; 4225a7b01dSIngo Weinhold 43b38b2796SIngo Weinholdlocal package ; 44b38b2796SIngo Weinholdfor package in $(packages) { 45b38b2796SIngo Weinhold include $(package) ; 463f6ca2fdSIngo Weinhold} 47b0944c78SIngo Weinhold 48b0944c78SIngo Weinholdfor package in $(archDependentPackages) { 49b0944c78SIngo Weinhold local architectureObject ; 50b0944c78SIngo Weinhold for architectureObject in [ MultiArchSubDirSetup ] { 51b0944c78SIngo Weinhold on $(architectureObject) { 52b0944c78SIngo Weinhold include $(package) ; 53b0944c78SIngo Weinhold } 54b0944c78SIngo Weinhold } 55b0944c78SIngo Weinhold} 56db16bcbaSIngo Weinhold 57db16bcbaSIngo Weinholdfor package in $(secondaryArchPackages) { 58db16bcbaSIngo Weinhold local architectureObject ; 59db16bcbaSIngo Weinhold for architectureObject in 60db16bcbaSIngo Weinhold [ MultiArchSubDirSetup $(TARGET_PACKAGING_ARCHS[2-]) ] { 61db16bcbaSIngo Weinhold on $(architectureObject) { 62db16bcbaSIngo Weinhold include $(package) ; 63db16bcbaSIngo Weinhold } 64db16bcbaSIngo Weinhold } 65db16bcbaSIngo Weinhold} 66