[Buildrelease] cross-platform build tool scons

Source: Internet
Author: User

Scons

Scons is the next generation of open-source software build tools.

Home: http://www.scons.org/

Reference: http://www.angelfire.com/linux/skip/Articles/SConsExamples.html

 

Scons features

Features:

1) the configuration file is a Python script (using powerful and authenticProgramming LanguageSolve the build problem ).

2) the built-in C/C ++/FORTRAN is credible and automatic dependency analysis. You do not need to make depend or make clean to obtain all dependencies. Dependency analysis can easily extend to other languages and file types using user-defined dependency dependencies.

3) built-in support for C/C ++/D/Java/FORTRAN/YACC/lex/QT/swig and build Tex and latex documents. It is easy to support other languages and file types through user-defined builder.

4) Build the source code management tool (SVN ...) Or other build scripts (Ant ...).

5) built-in support for source code management tool fetchCodeSuch as SCCs, RCS, CVS, bitkeeper, and perforce.

6) built-in support for all Microsoft Visual Studio versions, including generating DSP, DSW, SLN and vcproj files.

7) use the MD5 Signature to check the build's changes. It also supports detecting changes with the traditional time stamp.

8) the parallel build is improved, such as make-J. Running n jobs at the same time does not depend on the directory inheritance structure.

9) Integrate the find # include file, libraries, functions and typedefs files like Autoconf.

10) global view of all dependencies.

11) share built files in a cache to speed up multiple builds, such as ccache but not limited to C/C ++.

12) It was designed to be cross-platform from the very beginning, so it supports all systems (known to work on Linux, other POSIX systems (including Aix, * BSD systems, HP/UX, IRIX and Solaris), Windows NT, Mac OS x, and OS/2 .).

 

Hello, instance 3

1) file:

D: \ scons

└ ── Sample
Hello. c
Sconstruct

2) Hello. c

# Include < Stdio. h >

IntMain (){
Printf ("Hello world.");
}

3) sconstruct

Program ('Hello. c')

4) Build

 

Four other

1) Builder: Program (), library (), sharedlibrary (), object (), other language builders. Program (''hello. C ).
2) construction environment: environment variable. ENV = environment (Cc = 'gcc ', ccflags ='-O2 ').
3) sconstruct: sconstruct file under the directory.
4) sconscript: sconscript file in the subdirectory.

Complete!

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.