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