How to integrate scons tools

Source: Internet
Author: User

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 "/>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.