[Scons-dev] Program() builder speccy

Gary Oberbrunner garyo at oberbrunner.com
Mon Feb 4 09:19:23 EST 2013


Program calls Object(), and Object knows about a bunch of suffixes. (This
is admittedly not well documented.) You can add to that list by calling
static_obj, shared_obj = SCons.Tool.createObjBuilders(env) # just
returns them if already created
static_obj.add_action(my_suffix, my_object_action)
and similarly for shared_obj, which is used for SharedObject. You can also
add emitters:
static_obj.add_emitter(my_suffix, my_emitter)



On Mon, Feb 4, 2013 at 3:38 AM, anatoly techtonik <techtonik at gmail.com>wrote:


> Hi,

>

> When I call Program() - how does SCons know which tool to use to compile

> the program? Does it use an extension list? Or always uses C/C++ if other

> tool is not explicitly specified as some argument or environment flag?

> --

> anatoly t.

>

> _______________________________________________

> Scons-dev mailing list

> Scons-dev at scons.org

> http://two.pairlist.net/mailman/listinfo/scons-dev

>

>



--
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/scons-dev/attachments/20130204/9907e8a8/attachment.htm>


More information about the Scons-dev mailing list