[Scons-users] find new targets from other targets?
Managan, Rob
managan1 at llnl.gov
Fri Feb 21 15:32:37 EST 2020
Not that I recommend this but the closest example I am aware of is the LaTex builder. In the builder itself we have logic to scan the output of a build to see if we need to reprocess the file to handle unresolved references and such. But even this does not change the graph. It just runs latex, bibtex, makeindex, etc to get a finished build. The scanner is able to tell from the input files what the target files will be…
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Rob Managan
WCI/DP Division LLNL
P.O. Box 808, L-095
Livermore, CA 94551-0808
Email: managan1 at llnl.gov
Phone: 925-423-0903 FAX: 925-422-3389
On 2/20/20, 6:56 PM, "Scons-users on behalf of Scott Johnson" <scons-users-bounces at scons.org<mailto:scons-users-bounces at scons.org> on behalf of scott.johnson at arilinc.com<mailto:scott.johnson at arilinc.com>> wrote:
On Feb 20, 2020, at 6:46 PM, Bill Deegan <bill at baddogconsulting.com<mailto:bill at baddogconsulting.com>> wrote:
Yes. set it as src_scanner.
You're scanner doesn't return any nodes...
It doesn’t yet, as this is just an experimental toy, but see my original post. I can’t determine what else needs to be built until after the first target is built. And unlike this toy example, the real target isn’t just a simple copy of the source file. So scanning the source file won’t work for me.
A traditional scanner looks at the source file and finds dependencies that need to be built before this source file is processed. My use case is different. I need to process the source file, then look at the target file and find new (independent) files to build.
I found this question on Stack Overflow that suggests that what I’m trying to do is either tricky or impossible, depending on which answer you believe.
https://stackoverflow.com/questions/24671859/scons-how-to-generate-dependencies-after-some-targets-have-been-built/26302284
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20200221/44933e17/attachment.html>
More information about the Scons-users
mailing list