1# Haiku Jamrules 2 3# Main directories used by the build. 4HAIKU_OUTPUT_DIR ?= [ FDirName $(HAIKU_TOP) generated ] ; 5HAIKU_BUILD_OUTPUT_DIR = [ FDirName $(HAIKU_OUTPUT_DIR) build ] ; 6HAIKU_BUILD_DIR = [ FDirName $(HAIKU_TOP) build ] ; 7HAIKU_BUILD_RULES_DIR = [ FDirName $(HAIKU_BUILD_DIR) jam ] ; 8HAIKU_OBJECT_DIR = [ FDirName $(HAIKU_OUTPUT_DIR) objects ] ; 9HAIKU_COMMON_PLATFORM_OBJECT_DIR = [ FDirName $(HAIKU_OBJECT_DIR) common ] ; 10 11# Cache files for header scanning and jamfile caching 12HCACHEFILE = header_cache ; 13JCACHEFILE = jamfile_cache ; 14LOCATE on $(HCACHEFILE) $(JCACHEFILE) = $(HAIKU_BUILD_OUTPUT_DIR) ; 15 16# The build setup and rules are neatly organized in several files. Include 17# them now. Start with the side-effect-less rules, since they are the most 18# likely to be used in the top level context (i.e. not only in rules). 19# At the end include BuildSetup that sets up global variables etc. The 20# optional user-defined UserBuildConfig is included thereafter. 21include [ FDirName $(HAIKU_BUILD_RULES_DIR) HelperRules ] ; 22include [ FDirName $(HAIKU_BUILD_RULES_DIR) MathRules ] ; 23include [ FDirName $(HAIKU_BUILD_RULES_DIR) BeOSRules ] ; 24include [ FDirName $(HAIKU_BUILD_RULES_DIR) ConfigRules ] ; 25include [ FDirName $(HAIKU_BUILD_RULES_DIR) DocumentationRules ] ; 26include [ FDirName $(HAIKU_BUILD_RULES_DIR) FileRules ] ; 27include [ FDirName $(HAIKU_BUILD_RULES_DIR) FreetypeRules ] ; 28include [ FDirName $(HAIKU_BUILD_RULES_DIR) HeadersRules ] ; 29include [ FDirName $(HAIKU_BUILD_RULES_DIR) KernelRules ] ; 30include [ FDirName $(HAIKU_BUILD_RULES_DIR) ImageRules ] ; 31include [ FDirName $(HAIKU_BUILD_RULES_DIR) MainBuildRules ] ; 32include [ FDirName $(HAIKU_BUILD_RULES_DIR) MiscRules ] ; 33include [ FDirName $(HAIKU_BUILD_RULES_DIR) OverriddenJamRules ] ; 34include [ FDirName $(HAIKU_BUILD_RULES_DIR) PackageRules ] ; 35include [ FDirName $(HAIKU_BUILD_RULES_DIR) TestsRules ] ; 36include [ FDirName $(HAIKU_BUILD_RULES_DIR) BuildSetup ] ; 37 38# Include UserBuildConfig. 39{ 40 local userBuildConfig 41 = [ GLOB $(HAIKU_BUILD_RULES_DIR) : UserBuildConfig ] ; 42 if $(userBuildConfig) { 43 include $(userBuildConfig) ; 44 } 45} 46 47PrepareConfigVariables ; 48 49# specify the Haiku image contents 50include [ FDirName $(HAIKU_BUILD_RULES_DIR) HaikuImage ] ; 51