Subject: Re: [Boost-build] How to use generators to CPP and LIB
From: Duncan Rance (gmane_at_[hidden])
Date: 2009-01-30 03:59:29
Perhaps I'm missing something obvious or what I want to do isn't possible?
Have I been clear in my description? The essential problem I'm trying
to solve is to use one source-type to produce two different
target-types. Where one target-type is H and is compiled into my
target exe, and the other is a LIB containing different code that is
ultimately compiled into the same exe.
Is this even possible? Is this documented somewhere?
Thanks in advance for your help,
> Hi there,
> I am trying to do something with generators but I'm stuck. I'd really
> appreciate some help.
> What I've got so far is, in a module called resources.jam, something
> like this:
> type.register RESTXT : txt ;
> generators.register-standard resources.genenumh : RESTXT : H ;
> generators.register-standard resources.pkgdata : RESTXT : LIB ;
> What I need to do is use a .txt file to produce a header file and a
> static library. The header file is to be used in a few places,
> including the code used to create the LIB. But there's more to go in
> the LIB than just the header. If you're interested, I'm using ICU's
> resource bundling tools
> As you can probably imagine, there is an ambiguity between
> builtin.lib-generator and resources.pkgdata.
> How can I do this in boost build?
> Thank 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