Refactored rule SetupObjectsDir. New rule FObjectsDir.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7997 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1438,14 +1438,19 @@ rule OBOSInstallRelSymLink
|
|||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# Low-level OBOS utility rules
|
# Low-level OBOS utility rules
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
rule FObjectsDir
|
||||||
|
{
|
||||||
|
# FObjectsDir
|
||||||
|
#
|
||||||
|
# Returns the output directory for object files for the current
|
||||||
|
# subdirectory.
|
||||||
|
|
||||||
|
return [ FDirName $(OBOS_OBJECT_TARGET) $(SUBDIR_TOKENS[2-]) ] ;
|
||||||
|
}
|
||||||
|
|
||||||
rule SetupObjectsDir
|
rule SetupObjectsDir
|
||||||
{
|
{
|
||||||
local rel_objectsdir;
|
LOCATE_TARGET = [ FObjectsDir ] ;
|
||||||
|
|
||||||
# Copy subdir tokens except the first, as that will be "sources", and we
|
|
||||||
# do not want to include that :)
|
|
||||||
rel_objectsdir = [ FDirName $(SUBDIR_TOKENS[2-]) ] ;
|
|
||||||
LOCATE_TARGET = [ FDirName $(OBOS_OBJECT_TARGET) $(rel_objectsdir) ] ;
|
|
||||||
LOCATE_SOURCE = $(LOCATE_TARGET) ;
|
LOCATE_SOURCE = $(LOCATE_TARGET) ;
|
||||||
SEARCH_SOURCE = [ Filter $(SEARCH_SOURCE) : $(LOCATE_TARGET) ]
|
SEARCH_SOURCE = [ Filter $(SEARCH_SOURCE) : $(LOCATE_TARGET) ]
|
||||||
$(LOCATE_TARGET) ;
|
$(LOCATE_TARGET) ;
|
||||||
|
|||||||
Reference in New Issue
Block a user