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!