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