|
Boost-Build : |
Subject: Re: [Boost-build] Newbie: few questions
From: Thomas Lehmann (t.lehmann_at_[hidden])
Date: 2009-10-13 02:06:04
type.register CXX : cxx : CPP ;error: Attempting to specify type for suffix "cxx"
Thomas Lehmann wrote:Again about Example: 1-to-1 generator. When trying to use this like here... type.register ERR : err ; generators.register-standard err.convert : ERR : H ; ... then the output is "...found 1 target..." and the defined action will be not executed. Changing it to... generators.register-standard err.convert : ERR : CPP ; the action will be called. How do I use this for headers?See http://www.boost.org/doc/tools/build/doc/html/bbv2/reference/generated_headers.htmlMy script (inside of actions) does accept two parameters (input and output); so I use $(>) and $(<). How can I access part of the file (path, filename, extension)? Why? The script could do it by I intent to do something like --name=$(>).name (filename.ext -> filename) But here I get filename.ext.name!See http://www.boost.org/doc/tools/jam/jam/language.html Section VARIABLES. E. g. $(1:P) for parent directory $(1:BS) for filename + extensionFinal: What do I have to do for using CXX instead of CPP. Registering as a type like above didn't work.Try this: type.register CXX : cxx : CPP ; The last parameter is optional and denotes 'base-type'. Although I think that boost build does this somewhere for you. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
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