In scons, ENV is called in windows. program ("hello. C "), you can call tools such as Cl and link to automatically compile the link; Use Env. jar (target = 'Hello. jar ', source = ['Hello. java ']), compress the file with the jar tool... to understand how to integrate these tools, I checked the source code.
The module File of scons is usually installed in Python Lib \ Site-packages \ scons-2.3.2 \ scons, the following are the current path.
In script \ __init _. py, Global Environment (ENV) Functions and build methods such as globaldefaultenvironmentfunctions and globaldefabuilbuilders are defined. After the import scons. script, these global methods are declared through the following statement:
Exec "% s = _ sconscript. defaultenvironmentcall (% s)" % (name, repr (name ))
In the Win32 system, execute scons. environment. environment is used as an example. The system sets the default tool and calls scons by calling the function in the following procedure. tool. for example, createprogbuilder, createstaticlibbuilder, and createsharedlibbuilder in _ init _ (), ENV is added to the following build tool, 650) This. width = 650; "Title =" clip_image001.jpg "src =" http://s3.51cto.com/wyfs02/M00/45/4E/wKioL1Pm77-ilaTNAAB6VuYvH_w225.jpg "alt =" wKioL1Pm77-ilaTNAAB6VuYvH_w225.jpg "/>
650) This. width = 650; "Title =" jit?q=xp@ng4nz?rwx9z9_n.jpg "src =" http://s3.51cto.com/wyfs02/M02/45/4D/wKiom1Pm7t2wNkgdAAD7ABOodm4954.jpg "alt =" wkiom1pm7t2wnkgdaad7=dm4954.jpg "/>