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:
@@ -363,9 +363,10 @@ rule App
|
|||||||
|
|
||||||
rule BinCommand
|
rule BinCommand
|
||||||
{
|
{
|
||||||
# BinCommand <name> : <sources> : <libraries> ;
|
# BinCommand <name> : <sources> : <libraries> : <res> ;
|
||||||
SetupIncludes ;
|
SetupIncludes ;
|
||||||
SetupObjectsDir ;
|
SetupObjectsDir ;
|
||||||
|
AddResources $(1) : $(4) ;
|
||||||
Main $(1) : $(2) ;
|
Main $(1) : $(2) ;
|
||||||
MakeLocate $(1) : $(OBOS_BIN_DIR) ;
|
MakeLocate $(1) : $(OBOS_BIN_DIR) ;
|
||||||
LinkSharedOSLibs $(1) : $(3) ;
|
LinkSharedOSLibs $(1) : $(3) ;
|
||||||
@@ -375,17 +376,18 @@ rule BinCommand
|
|||||||
|
|
||||||
rule StdBinCommands
|
rule StdBinCommands
|
||||||
{
|
{
|
||||||
# StdBinCommands <sources> : <libs> ;
|
# StdBinCommands <sources> : <libs> : <res> ;
|
||||||
SetupIncludes ;
|
SetupIncludes ;
|
||||||
SetupObjectsDir ;
|
SetupObjectsDir ;
|
||||||
local libs = $(2) ;
|
local libs = $(2) ;
|
||||||
|
local ress = $(3) ;
|
||||||
local source ;
|
local source ;
|
||||||
for source in $(1)
|
for source in $(1)
|
||||||
{
|
{
|
||||||
local target = $(source:S=) ;
|
local target = $(source:S=) ;
|
||||||
target = [ FGristFiles $(target) ] ;
|
target = [ FGristFiles $(target) ] ;
|
||||||
|
|
||||||
BinCommand $(target) : $(source) : $(libs) ;
|
BinCommand $(target) : $(source) : $(libs) : $(ress) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user