博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
SCons: A software construction tool
阅读量:6438 次
发布时间:2019-06-23

本文共 3074 字,大约阅读时间需要 10 分钟。

What is SCons?

SCons is an Open Source software construction tool—that is, a

next-generation build tool. Think of SCons as an improved, cross-platform
substitute for the classic Make
utility with integrated functionality similar
to autoconf/automake and compiler caches such as ccache.
In short, SCons is an
easier, more reliable and faster way to build software.

"
is a fantastic build system, written in Python (1.5.2) that does lots of nice things like automated dependencies, cross platform operation, configuration, and other great stuff. I would have to say that it is probably going to be the best thing for building C/C++ projects in the near future."
— Zed A. Shaw, Bombyx project lead

What makes SCons better?

  • Configuration files are Python scripts--use the power of a real programming language to solve build problems.
  • Reliable, automatic dependency analysis built-in for C, C++ and Fortran--no more "make depend" or "make clean" to get all of the dependencies. Dependency analysis is easily extensible through user-defined dependency Scanners for other languages or file types.
  • Built-in support for C, C++, D, Java, Fortran, Yacc, Lex, Qt and SWIG, and building TeX and LaTeX documents. Easily extensible through user-defined Builders for other languages or file types.
  • Building from central repositories of source code and/or pre-built targets.
  • Built-in support for fetching source files from SCCS, RCS, CVS, BitKeeper and Perforce.
  • Built-in support for Microsoft Visual Studio .NET and past Visual Studio versions, including generation of .dsp, .dsw, .sln and .vcproj files.
  • Reliable detection of build changes using MD5 signatures; optional, configurable support for traditional timestamps.
  • Improved support for parallel builds--like make -j but keeps N jobs running simultaneously regardless of directory hierarchy.
  • Integrated Autoconf-like support for finding #include files, libraries, functions and typedefs.
  • Global view of all dependencies--no more multiple build passes or reordering targets to build everything.
  • Ability to share built files in a cache to speed up multiple builds--like ccache but for any type of target file, not just C/C++ compilation.
  • Designed from the ground up for cross-platform builds, and 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.

"We are using [SCons] on Windows (MSVC and Intel compilers), Linux, IRIX and
Mac OS X (gcc and two versions of CodeWarrior). Handles all of those with ease.
It can do things like properly handle dependencies on auto-generated source and
header files, which would be a nightmare in make."
—SilentTristero (Slashdot user), 10 July 2003 post

Where did SCons come from?

began life as the ScCons build

tool design which won the SC
Build competition in August 2000. That design was in turn based on the software construction utility. This
project has been renamed to reflect that
it is no longer directly connected with Software Carpentry (well, that, and to
make it slightly easier to type...).

转载地址:http://afkwo.baihongyu.com/

你可能感兴趣的文章
HTTP相关整理(上)
查看>>
浙江环宇集团“营改增”项目启动会成功举办
查看>>
EM 算法求解高斯混合模型python实现
查看>>
一次性比较目前前端最流行的状态管理,mobx,vuex,redux-saga使用方式用方式
查看>>
2018.4.24-ml笔记(多元线性回归)
查看>>
特斯拉进化论:舍命狂奔背后的生存哲学
查看>>
除了叫好也应关注GDPR对数字产业的负效应 | 热评
查看>>
Vue.js 子组件的异步加载及其生命周期控制-------异步加载子组件,子组件的生命周期控制过程不一样...
查看>>
编写可维护的JavaScript
查看>>
高效的CSS代码(2)
查看>>
企业数据创新之旅-数据上云与备份容灾
查看>>
React prop类型检查与Dom
查看>>
jQuery Ajax
查看>>
JS-匀速运动-运动停止
查看>>
朱兰的质量三部曲——《可以量化的管理学》
查看>>
丰田生产方式和TOC工序切换时间的解决
查看>>
Spring MVC自定义消息转换器(可解决Long类型数据传入前端精度丢失的问题)
查看>>
ODCC将发布首本中国数据中心选址“工具书”
查看>>
51行代码实现简单的PHP区块链
查看>>
Ubuntu 16.04重启Nautilus
查看>>