[Scons-users] Silent rules for SCons

William Deegan bill at baddogconsulting.com
Sat Jul 14 01:25:53 EDT 2012


Jason,

On Jul 13, 2012, at 2:30 PM, Kenny, Jason L wrote:


> I think I know what LRN is talking about. As I have more complex redirection rules in Parts and LRN was asking me to clean up some stuff in Parts related to this.

>

> The issue is that a tools can define an action string like:

> "Doing this work"

> Or if nothing is defined SCons takes the command it is going to run and makes it the string.

> What is being asked for is that -s is not really silent, but less chatty. Allow Actions to define a long string and a short string to be displayed so when an options like -s ( or similar) is used it would output stuff like:

>

> [cxx] foo.cpp

>

> Instead of the

>

> G++ -02 -I... <lots of stuff>

>

> That it currently does. I have a some code that can go into SCons to do this.. but I am redoing it to make it better ( after the last few year of experience.. I found a few way to make this better) The main thing is making a setup to allow different strings for actions to be used depending on how chatty we want the system to be.



Is that different than changing the *COMSTR's ?

-Bill



>

> Jason

>

> -----Original Message-----

> From: scons-users-bounces at scons.org [mailto:scons-users-bounces at scons.org] On Behalf Of William Deegan

> Sent: Friday, July 13, 2012 4:20 PM

> To: SCons users mailing list

> Subject: Re: [Scons-users] Silent rules for SCons

>

> LRN,

> On Jul 13, 2012, at 1:54 PM, LRN wrote:

>

>> -----BEGIN PGP SIGNED MESSAGE-----

>> Hash: SHA1

>>

>> Does anyone have the intention to implement something like "silent

>> rules" (as in autotools) or "shave" (previously used in GStreamer, and

>> probably kbuild?) for SCons?

>>

>> AFAIU, it requires all tools (or things that print output for tools,

>> if tools aren't printing output themselves) to have alternative mode

>> of operation, in which they dramatically alter their output.

>

> All you need to do is walk all the *COMSTR's in the env to alter what SCONS outputs, and then all the *COM to redirect somewhere other than stdout ?

>

> -Bill

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users




More information about the Scons-users mailing list