mirror of
https://review.haiku-os.org/jamfile-engine
synced 2026-02-04 07:53:15 +01:00
@@ -1,4 +1,4 @@
|
||||
## Haiku Generic Jamfile Engine v1.0.2
|
||||
## Haiku Generic Jamfile Engine v1.0.3
|
||||
## Does all the hard work for the Generic Jamfile
|
||||
## which simply defines the project parameters.
|
||||
## Most of the real work is done in the Jambase
|
||||
@@ -6,7 +6,7 @@
|
||||
##
|
||||
## Inspired by the Be Makefile Engine
|
||||
##
|
||||
## Supports Generic Jamfile v1.0.1
|
||||
## Supports Generic Jamfile v1.0.3
|
||||
##
|
||||
## Copyright (c) 2002-2010 Ryan Leavengood
|
||||
## Copyright (c) 2011 Peter Poláčik
|
||||
@@ -29,6 +29,19 @@ actions AddResources
|
||||
$(XRES) -o "$(<)" $(>)
|
||||
}
|
||||
|
||||
# Rc <Resource File> : <Resource definition file> ;
|
||||
# Compile an rdef file into a binary resources file
|
||||
rule Rc
|
||||
{
|
||||
Depends $(<) : $(>) ;
|
||||
LOCATE on $(<) = $(LOCATE_TARGET) ;
|
||||
}
|
||||
|
||||
actions Rc
|
||||
{
|
||||
rc -o "$(<)" $(>)
|
||||
}
|
||||
|
||||
# MimeSet <Application Name> ;
|
||||
# Sets the mime type of the given application to be an application.
|
||||
actions MimeSet
|
||||
@@ -237,6 +250,13 @@ rule BeMain
|
||||
Main $(<) : $(>) ;
|
||||
}
|
||||
|
||||
if ( $(RDEFS) )
|
||||
{
|
||||
RSRCS += $(NAME).rsrc ;
|
||||
|
||||
Rc $(NAME).rsrc : $(RDEFS) ;
|
||||
}
|
||||
|
||||
if ( $(RSRCS) )
|
||||
{
|
||||
AddResources $(<) : $(RSRCS) ;
|
||||
|
||||
Reference in New Issue
Block a user