Added optional libraries parameter to Addon rule.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2817 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -610,11 +610,12 @@ rule SimpleTest
|
|||||||
|
|
||||||
rule Addon
|
rule Addon
|
||||||
{
|
{
|
||||||
# Addon <name> : <relpath> : <sources> : <is executable> ;
|
# Addon <name> : <relpath> : <sources> : <is executable> : <libraries> ;
|
||||||
# <name>: Name of the add-on.
|
# <name>: Name of the add-on.
|
||||||
# <relpath>: Path where the add-on shall live relative to the add-on dir.
|
# <relpath>: Path where the add-on shall live relative to the add-on dir.
|
||||||
# <sources>: Source files.
|
# <sources>: Source files.
|
||||||
# <is executable>: true, if the target shall be executable as well
|
# <is executable>: true, if the target shall be executable as well.
|
||||||
|
# <libraries>: Libraries to be linked against.
|
||||||
|
|
||||||
local isExecutable = $(4) ;
|
local isExecutable = $(4) ;
|
||||||
|
|
||||||
@@ -633,6 +634,7 @@ rule Addon
|
|||||||
linkFlags = -nostart $(linkFlags) ;
|
linkFlags = -nostart $(linkFlags) ;
|
||||||
}
|
}
|
||||||
LINKFLAGS on $(1) = [ on $(1) return $(LINKFLAGS) ] $(linkFlags) ;
|
LINKFLAGS on $(1) = [ on $(1) return $(LINKFLAGS) ] $(linkFlags) ;
|
||||||
|
LinkSharedOSLibs $(1) : $(5) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
rule R5KernelAddon
|
rule R5KernelAddon
|
||||||
|
|||||||
Reference in New Issue
Block a user