1# The packages we build. Each is defined in its own file in the packages/ 2# subdirectory. 3local packages = [ FFilterByBuildFeatures 4 HaikuDevel 5 HaikuDataTranslators 6 HaikuExtras 7 HaikuLoader 8 HaikuSource 9 HaikuUserguide 10 HaikuWelcome 11 MakefileEngine 12 NetFS 13 UserlandFS 14 ] 15 ; 16 17if $(HAIKU_BUILD_TYPE) = bootstrap { 18 packages += HaikuBootstrap ; 19} else { 20 packages += Haiku ; 21} 22 23local archDependentPackages = 24 HaikuCrossDevel 25 WebPositive 26 ; 27 28local secondaryArchPackages = 29 HaikuDevelSecondary 30 ; 31if $(HAIKU_BUILD_TYPE) = bootstrap { 32 secondaryArchPackages += HaikuSecondaryBootstrap ; 33} else { 34 secondaryArchPackages += HaikuSecondary ; 35} 36 37 38packages = $(packages:G=package-rules) ; 39archDependentPackages = $(archDependentPackages:G=package-rules) ; 40secondaryArchPackages = $(secondaryArchPackages:G=package-rules) ; 41SEARCH on $(packages) $(archDependentPackages) $(secondaryArchPackages) 42 = [ FDirName $(HAIKU_BUILD_RULES_DIR) packages ] ; 43 44local package ; 45for package in $(packages) { 46 include $(package) ; 47} 48 49for package in $(archDependentPackages) { 50 local architectureObject ; 51 for architectureObject in [ MultiArchSubDirSetup ] { 52 on $(architectureObject) { 53 include $(package) ; 54 } 55 } 56} 57 58for package in $(secondaryArchPackages) { 59 local architectureObject ; 60 for architectureObject in 61 [ MultiArchSubDirSetup $(TARGET_PACKAGING_ARCHS[2-]) ] { 62 on $(architectureObject) { 63 include $(package) ; 64 } 65 } 66} 67