xref: /haiku/Jamrules (revision 338b8dc301721b1f472e8297a898d4eaa2f2ee3a)
1*338b8dc3SIngo Weinhold# Haiku Jamrules
2979afc6fSAxel Dörfler
3*338b8dc3SIngo Weinhold# Main directories used by the build.
4*338b8dc3SIngo WeinholdHAIKU_OUTPUT_DIR					?= [ FDirName $(HAIKU_TOP) generated ] ;
5*338b8dc3SIngo WeinholdHAIKU_BUILD_OUTPUT_DIR				= [ FDirName $(HAIKU_OUTPUT_DIR) build ] ;
6*338b8dc3SIngo WeinholdHAIKU_BUILD_DIR						= [ FDirName $(HAIKU_TOP) build ] ;
7*338b8dc3SIngo WeinholdHAIKU_BUILD_RULES_DIR				= [ FDirName $(HAIKU_BUILD_DIR) jam ] ;
8*338b8dc3SIngo WeinholdHAIKU_OBJECT_DIR					= [ FDirName $(HAIKU_OUTPUT_DIR) objects ] ;
9*338b8dc3SIngo WeinholdHAIKU_COMMON_PLATFORM_OBJECT_DIR	= [ FDirName $(HAIKU_OBJECT_DIR) common ] ;
104ff6d49fSIngo Weinhold
114ff6d49fSIngo Weinhold# Cache files for header scanning and jamfile caching
124ff6d49fSIngo WeinholdHCACHEFILE = header_cache ;
134ff6d49fSIngo WeinholdJCACHEFILE = jamfile_cache ;
14*338b8dc3SIngo WeinholdLOCATE on $(HCACHEFILE) $(JCACHEFILE) = $(HAIKU_BUILD_OUTPUT_DIR) ;
159eea4522SIngo Weinhold
16*338b8dc3SIngo Weinhold# The build setup and rules are neatly organized in several files. Include
17*338b8dc3SIngo Weinhold# them now. Start with the side-effect-less rules, since they are the most
18*338b8dc3SIngo Weinhold# likely to be used in the top level context (i.e. not only in rules).
19*338b8dc3SIngo Weinhold# At the end include BuildSetup that sets up global variables etc. The
20*338b8dc3SIngo Weinhold# optional user-defined UserBuildConfig is included thereafter.
21*338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) HelperRules ] ;
22*338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) BeOSRules ] ;
23*338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) ConfigRules ] ;
24*338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) DocumentationRules ] ;
25*338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) FileRules ] ;
26*338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) FreetypeRules ] ;
27*338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) HeadersRules ] ;
28*338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) KernelRules ] ;
29*338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) ImageRules ] ;
30*338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) MainBuildRules ] ;
31*338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) MiscRules ] ;
32*338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) OverriddenJamRules ] ;
33*338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) PackageRules ] ;
34*338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) TestsRules ] ;
35*338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) BuildSetup ] ;
36b1e5b60cSAxel Dörfler
37*338b8dc3SIngo Weinhold# Include UserBuildConfig.
388c17a26bSIngo Weinhold{
39*338b8dc3SIngo Weinhold	local userBuildConfig
40*338b8dc3SIngo Weinhold		= [ GLOB $(HAIKU_BUILD_RULES_DIR) : UserBuildConfig ] ;
41*338b8dc3SIngo Weinhold	if $(userBuildConfig) {
42*338b8dc3SIngo Weinhold		include $(userBuildConfig) ;
438c17a26bSIngo Weinhold	}
448c17a26bSIngo Weinhold}
458c17a26bSIngo Weinhold
46*338b8dc3SIngo WeinholdPrepareConfigVariables ;
475dc4e1efSIngo Weinhold
48*338b8dc3SIngo Weinhold# specify the Haiku image contents
49*338b8dc3SIngo Weinholdinclude [ FDirName $(HAIKU_BUILD_RULES_DIR) HaikuImage ] ;
50