BinCommand and StdBinCommand rules now accept a resource file

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7715 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2004-06-01 09:10:21 +00:00
parent 755b059fc1
commit 11fa368294
+5 -3
View File
@@ -363,9 +363,10 @@ rule App
rule BinCommand
{
# BinCommand <name> : <sources> : <libraries> ;
# BinCommand <name> : <sources> : <libraries> : <res> ;
SetupIncludes ;
SetupObjectsDir ;
AddResources $(1) : $(4) ;
Main $(1) : $(2) ;
MakeLocate $(1) : $(OBOS_BIN_DIR) ;
LinkSharedOSLibs $(1) : $(3) ;
@@ -375,17 +376,18 @@ rule BinCommand
rule StdBinCommands
{
# StdBinCommands <sources> : <libs> ;
# StdBinCommands <sources> : <libs> : <res> ;
SetupIncludes ;
SetupObjectsDir ;
local libs = $(2) ;
local ress = $(3) ;
local source ;
for source in $(1)
{
local target = $(source:S=) ;
target = [ FGristFiles $(target) ] ;
BinCommand $(target) : $(source) : $(libs) ;
BinCommand $(target) : $(source) : $(libs) : $(ress) ;
}
}