From f187f73e147346b9cae609280df46c9a1236456a Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 3 Nov 2005 15:14:06 +0000 Subject: [PATCH] Added (currently still empty) dir headers/legacy for legacy headers and rules UseLegacyHeaders and UseLegacyObjectHeaders to use them. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14664 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- build/jam/HeadersRules | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) 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