USBWebcamHeaderGen rule: Add grist to both header and sources. Simplifies the

invocation and fixes the dependency problem (missing grist on the sources)
that caused the headers not to be regenerated when the sources changed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36878 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-05-20 19:01:18 +00:00
parent 20a37b8525
commit 5023986b41
1 changed files with 8 additions and 7 deletions

View File

@ -53,11 +53,13 @@ sensorsSources =
tas5130d1b.cpp
;
## how to build header files from sources to include the list of built-in addons.
# but it doesn't seem to work for some reason...
## how to build header files from sources to include the list of built-in addons
rule USBWebcamHeaderGen header : macro : sources
{
header = [ FGristFiles $(header) ] ;
sources = [ FGristFiles $(sources) ] ;
SEARCH on $(sources) = $(SEARCH_SOURCE) ;
Depends $(header) : $(sources) ;
@ -72,11 +74,10 @@ actions USBWebcamHeaderGen1
grep -h $(GREP_DEFINE) $(2) > $(1) ;
}
USBWebcamHeaderGen [ FGristFiles CamInternalAddons.h ]
: B_WEBCAM_MKINTFUNC : $(addonSources) ;
USBWebcamHeaderGen [ FGristFiles CamInternalSensors.h ]
: B_WEBCAM_DECLARE_SENSOR : $(sensorsSources) ;
USBWebcamHeaderGen [ FGristFiles CamInternalColorSpaceTransforms.h ]
USBWebcamHeaderGen CamInternalAddons.h : B_WEBCAM_MKINTFUNC : $(addonSources) ;
USBWebcamHeaderGen CamInternalSensors.h : B_WEBCAM_DECLARE_SENSOR
: $(sensorsSources) ;
USBWebcamHeaderGen CamInternalColorSpaceTransforms.h
: B_WEBCAM_DECLARE_CSTRANSFORM : $(csTransformsSources) ;
Addon usb_webcam.media_addon :