Subject: Re: [Boost-build] Target containing many files
From: Phillip Seaver (phil_at_[hidden])
Date: 2016-02-08 10:36:16
On 2/6/16 2:00 PM, Steven Watanabe wrote:
> On 02/06/2016 10:24 AM, Deane Yang wrote:
>> Although I'm slowly learning how the guts of Boost Build works, I still
>> find a lot of it fairly opaque. Is it possible to have a target that
>> consists of more than one file? For example, I'd like to take the Java
>> files generated by SWIG and feed them into javac. Is there a way to do
>> this? I apologize if this is already explained in the documentation.
>> Perhaps either an explicit example or a pointer to one in the documentation
>> would be very helpful.
> This should work automatically. This is not
> essentially different from .cpp -> .o -> .exe.
javac will generate a .class file for each class in the source, so it's
not necessarily a 1:1 correspondence, and you would have to parse the
.class file in order to determine what files will be generated. That's
the problem I ran into when trying to create a generator.
"Inner class definitions produce additional class files." --
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