[Scons-users] Command and Libscanner

Bill Deegan bill at baddogconsulting.com
Thu May 17 14:59:03 EDT 2018


o.k. looks like you want a short hand for creating a builder for a one-off.

I'd say go ahead with working on a pull request.
It may take a few iterations to get something that has the right usage feel?

-Bill

On Thu, May 17, 2018 at 2:31 PM, Jason Kenny <dragon512 at live.com> wrote:

> Well the command case I am seeing as I am working a project at work is
> that I have "component" that have complex build scripts that may not be
> easy to "translate" into pure SCons. Calling the there build systems or
> scripts is the quick and easy way to get this to work with the Commad(). I
> am trying to see on the side about making a better "Cmake" and "automake"
> wrapper for common cases. custom makefile seem to be more interesting..
> either way the issue I found was that my -j build would fail.. looking at
> the tree SCons did not see that a certain lib was needed to make the
> command happened. If this code was being built natively in SCons the
> Program or ShareLibrary builders would have the target scanners catch this
> via the ProgramScanner.
>  Having this in the Command would be very useful, as well as exposing
> ProgramScanner as we do the DirScanner. I guess making a one-off builder
> via Command is doing what I am after. As far as flags... would we just be
> able to pass in current items as is? I was doing this in Parts:
> https://bitbucket.org/dragon512/parts/src/master/parts/pieces/ccommand.py
> I guess a little more tweaking would be needed to allow override of
> source_factory and target_factory and this should support all the builder
> flags via the **kw argument
> Jason
> ------------------------------
> *From:* Scons-users <scons-users-bounces at scons.org> on behalf of Bill
> Deegan <bill at baddogconsulting.com>
> *Sent:* Thursday, May 17, 2018 12:16 PM
>
> *To:* SCons users mailing list
> *Subject:* Re: [Scons-users] Command and Libscanner
>
> So are you thinking this would be for effectively a one-off builder via
> Command?
> Would you support all the Builder flags?
>
>
> On Thu, May 17, 2018 at 12:22 PM, Jason Kenny <dragon512 at live.com> wrote:
>
> Do you have an concerns with me making a PR  to add target_source logic to
> Command() and program scanner to Defaults.py. I think this will really help
> with integrating scons with other build systems.
>
> Jason
> ------------------------------
> *From:* Scons-users <scons-users-bounces at scons.org> on behalf of Bill
> Deegan <bill at baddogconsulting.com>
> *Sent:* Thursday, May 17, 2018 10:48 AM
> *To:* SCons users mailing list
> *Subject:* Re: [Scons-users] Command and Libscanner
>
> Builder..
>
>
> On Thu, May 17, 2018 at 11:43 AM, Jason Kenny <dragon512 at live.com> wrote:
>
> Hi,
>
>
> I have a Command() that I need to add a SCons.Scanner.Prog.ProgramScanner()
> to so the libraries get scanned correctly so parallel build will work.
>
> I am unclear if this can be done. I see I can add a source_scanner, but it
> does not look like I can add a target scanner.
>
> Am I missing something or is the only way to do this is by making a
> builder?
>
> Jason
>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
> <https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpairlist4.pair.net%2Fmailman%2Flistinfo%2Fscons-users&data=02%7C01%7C%7C85148a0ba2f9425f26d408d5bc0d9ad4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636621688968478429&sdata=fb1ei4cbFUDMefFFWSgjgGo%2FCZFQlVT0J202PqN4ewg%3D&reserved=0>
>
>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
> <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpairlist4.pair.net%2Fmailman%2Flistinfo%2Fscons-users&data=02%7C01%7C%7C621e06b449e24bc9bb0008d5bc1aa4f1%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636621744974173415&sdata=LmQ7Z47BQgXq%2BEw7j5R5bqlepRNEgQz%2BEIleRDtuqcw%3D&reserved=0>
>
>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20180517/ad5b42b9/attachment.html>


More information about the Scons-users mailing list