Added UsePosixHeaders and UsePosixObjectHeaders rules and added the POSIX headers in SetupIncludes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@80 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e832976e05
commit
d25a77b4fe
23
Jamrules
23
Jamrules
@ -76,6 +76,7 @@ rule SetupIncludes
|
||||
{
|
||||
OBOS_INCLUDES ?= . add-ons app be_apps device drivers game interface kernel mail media midi midi2 net opengl storage support translation ;
|
||||
UsePublicHeaders $(OBOS_INCLUDES) ;
|
||||
UsePosixHeaders ;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
@ -494,6 +495,28 @@ rule UseArchObjectHeaders
|
||||
ObjectHdrs $(targets) : $(headers) ;
|
||||
}
|
||||
|
||||
rule UsePosixHeaders
|
||||
{
|
||||
# UsePrivateHeaders <group list> ;
|
||||
#
|
||||
# Adds the POSIX header dir to the header search
|
||||
# dirs of the subdirectory.
|
||||
# NOTE: This rule must be invoked *before* the rule that builds the objects.
|
||||
|
||||
SubDirHdrs [ FDirName $(OBOS_TOP) headers posix ] ;
|
||||
}
|
||||
|
||||
rule UsePosixObjectHeaders
|
||||
{
|
||||
# UsePosixObjectHeaders <sources_or_objects> ;
|
||||
#
|
||||
# Adds the POSIX header dir to the header search
|
||||
# dirs of <sources_or_objects>.
|
||||
# NOTE: This rule must be invoked *after* the rule that builds the objects.
|
||||
|
||||
ObjectHdrs $(1) : [ FDirName $(OBOS_TOP) headers posix ] ;
|
||||
}
|
||||
|
||||
rule SplitPath
|
||||
{
|
||||
# SplitPath <path> ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user