|
Boost-Build : |
From: Daniel Einspanjer (deinspanjer_at_[hidden])
Date: 2006-02-13 19:33:17
I have created a generator that transforms a file into a CPP file via sed.
I am able to get the process to run end to end if my generator has a unique
type
suffix registered (e.g. type.register CUSTOMERINFO : cpp_to_sed : CPP ;)
However, I want to get this working without having to change the source
files,
only the build system. The name of the file that I want to run through sed
is
defaultcustomerinfo.cpp. This seems to be a problem since CPP is already a
registered type.
I tried to register the type with no suffix (type.register CUSTOMERINFO : :
CPP
;) and use a cast to make my generator be invoked:
cpp customerinfo.cpp
: # sources
[ cast _ CUSTOMERINFO : defaultcustomerinfo.cpp ]
#defaultcustomerinfo.cpp_to_sed
;
But I get a missing argument error when I try this:
C:/bin/buildtools/boost-build/kernel\class.jam:92: in new
*** argument error
* rule object(cast-target-class)@77.__init__ ( name : project : type :
sources *
: requirements * : default-build * : usage-requirements * )
* called with: ( _ : object(project-target)@69 : : defaultcustomerinfo.cpp
:
object(property-set)@29 : object(property-set)@32 : object(property-set)@8 :
:)
* missing argument type
C:/bin/buildtools/boost-build/tools\cast.jam:38:see definition of rule
'__init__' being called
C:/bin/buildtools/boost-build/tools\cast.jam:78: in cast
Thinking maybe I just called cast wrong, I changed my invocation to:
[ cast _ : CUSTOMERINFO : defaultcustomerinfo.cpp ]
But that only changes the missing argument error to be in cast instead of
__init__:
..\..\..\..\engine\cpp\util\common\Jamfile:24: in modules.load
*** argument error
* rule cast ( name type : sources * : requirements * : default-build * :
usage-requirements * )
* called with: ( _ : CUSTOMERINFO : defaultcustomerinfo.cpp )
* missing argument type
C:/bin/buildtools/boost-build/tools\cast.jam:69:see definition of rule
'cast'
being called
Is there something simple I'm doing wrong?
-- Daniel Einspanjer
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk