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 <[email protected]>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
> [email protected]
> http://two.pairlist.net/mailman/listinfo/scons-dev
>
>
--
Gary
_______________________________________________
Scons-dev mailing list
[email protected]
http://two.pairlist.net/mailman/listinfo/scons-dev