diff --git a/build/jam/HeadersRules b/build/jam/HeadersRules index 357cfb109e..e4fc44b929 100644 --- a/build/jam/HeadersRules +++ b/build/jam/HeadersRules @@ -198,7 +198,6 @@ rule UsePublicObjectHeaders # Adds the public C header dirs given by to the header search # dirs of either the object targets of or if supplied to # . Also adjusts HDRSEARCH of . - # NOTE: This rule must be invoked *after* the rule that builds the objects. SourceSysHdrs $(1) : [ PublicHeaders $(2) ] : $(3) ; } @@ -229,7 +228,6 @@ rule UsePrivateObjectHeaders # . Also adjusts HDRSEARCH of . # specifies whether to add the dirs as system or local header # search dirs. Defaults to "true". - # NOTE: This rule must be invoked *after* the rule that builds the objects. local system = $(4) ; system ?= true ; @@ -271,7 +269,6 @@ rule UseArchObjectHeaders # # specifies the architecture (e.g. x86). # Source or object files. - # NOTE: This rule must be invoked *after* the rule that builds the objects. local sources = $(1) ; local headers = [ ArchHeaders $(2) ] ; @@ -293,7 +290,6 @@ rule UsePosixObjectHeaders # Adds the POSIX header dir to the header search # dirs of either the object targets of or if supplied to # . Also adjusts HDRSEARCH of . - # NOTE: This rule must be invoked *after* the rule that builds the objects. SourceSysHdrs $(1) : [ FDirName $(HAIKU_TOP) headers posix ] : $(2) ; } @@ -309,6 +305,26 @@ rule UseLibraryHeaders UseHeaders [ LibraryHeaders $(1) ] : true ; } +rule UseLegacyHeaders +{ + # usage: UseLegacyHeaders ; + # + # NOTE: This rule must be invoked *before* the rule that builds the objects. + + UseHeaders [ FDirName $(HAIKU_TOP) headers legacy ] : true ; +} + +rule UseLegacyObjectHeaders +{ + # UseLegacyObjectHeaders [ : ] ; + # + # Adds the legacy header dir to the header search + # dirs of either the object targets of or if supplied to + # . Also adjusts HDRSEARCH of . + + SourceSysHdrs $(1) : [ FDirName $(HAIKU_TOP) headers legacy ] : $(2) ; +} + rule FStandardOSHeaders { local osIncludes = add-ons add-ons/file_system add-ons/graphics