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
This commit is contained in:
parent
e2bc2d6a67
commit
f187f73e14
@ -198,7 +198,6 @@ rule UsePublicObjectHeaders
|
|||||||
# Adds the public C header dirs given by <group list> to the header search
|
# Adds the public C header dirs given by <group list> to the header search
|
||||||
# dirs of either the object targets of <sources> or if supplied to
|
# dirs of either the object targets of <sources> or if supplied to
|
||||||
# <objects>. Also adjusts HDRSEARCH of <sources>.
|
# <objects>. Also adjusts HDRSEARCH of <sources>.
|
||||||
# NOTE: This rule must be invoked *after* the rule that builds the objects.
|
|
||||||
|
|
||||||
SourceSysHdrs $(1) : [ PublicHeaders $(2) ] : $(3) ;
|
SourceSysHdrs $(1) : [ PublicHeaders $(2) ] : $(3) ;
|
||||||
}
|
}
|
||||||
@ -229,7 +228,6 @@ rule UsePrivateObjectHeaders
|
|||||||
# <objects>. Also adjusts HDRSEARCH of <sources>.
|
# <objects>. Also adjusts HDRSEARCH of <sources>.
|
||||||
# <system> specifies whether to add the dirs as system or local header
|
# <system> specifies whether to add the dirs as system or local header
|
||||||
# search dirs. Defaults to "true".
|
# search dirs. Defaults to "true".
|
||||||
# NOTE: This rule must be invoked *after* the rule that builds the objects.
|
|
||||||
|
|
||||||
local system = $(4) ;
|
local system = $(4) ;
|
||||||
system ?= true ;
|
system ?= true ;
|
||||||
@ -271,7 +269,6 @@ rule UseArchObjectHeaders
|
|||||||
#
|
#
|
||||||
# <arch> specifies the architecture (e.g. x86).
|
# <arch> specifies the architecture (e.g. x86).
|
||||||
# <sources_or_objects> Source or object files.
|
# <sources_or_objects> Source or object files.
|
||||||
# NOTE: This rule must be invoked *after* the rule that builds the objects.
|
|
||||||
|
|
||||||
local sources = $(1) ;
|
local sources = $(1) ;
|
||||||
local headers = [ ArchHeaders $(2) ] ;
|
local headers = [ ArchHeaders $(2) ] ;
|
||||||
@ -293,7 +290,6 @@ rule UsePosixObjectHeaders
|
|||||||
# Adds the POSIX header dir to the header search
|
# Adds the POSIX header dir to the header search
|
||||||
# dirs of either the object targets of <sources> or if supplied to
|
# dirs of either the object targets of <sources> or if supplied to
|
||||||
# <objects>. Also adjusts HDRSEARCH of <sources>.
|
# <objects>. Also adjusts HDRSEARCH of <sources>.
|
||||||
# NOTE: This rule must be invoked *after* the rule that builds the objects.
|
|
||||||
|
|
||||||
SourceSysHdrs $(1) : [ FDirName $(HAIKU_TOP) headers posix ] : $(2) ;
|
SourceSysHdrs $(1) : [ FDirName $(HAIKU_TOP) headers posix ] : $(2) ;
|
||||||
}
|
}
|
||||||
@ -309,6 +305,26 @@ rule UseLibraryHeaders
|
|||||||
UseHeaders [ LibraryHeaders $(1) ] : true ;
|
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 <sources> [ : <objects> ] ;
|
||||||
|
#
|
||||||
|
# Adds the legacy header dir to the header search
|
||||||
|
# dirs of either the object targets of <sources> or if supplied to
|
||||||
|
# <objects>. Also adjusts HDRSEARCH of <sources>.
|
||||||
|
|
||||||
|
SourceSysHdrs $(1) : [ FDirName $(HAIKU_TOP) headers legacy ] : $(2) ;
|
||||||
|
}
|
||||||
|
|
||||||
rule FStandardOSHeaders
|
rule FStandardOSHeaders
|
||||||
{
|
{
|
||||||
local osIncludes = add-ons add-ons/file_system add-ons/graphics
|
local osIncludes = add-ons add-ons/file_system add-ons/graphics
|
||||||
|
Loading…
Reference in New Issue
Block a user