Original author(s) | Steven Knight |
---|---|
Stable release | 4.4.0[1]
/ July 31, 2022 |
Repository | github |
Written in | Python |
Operating system | Cross-platform |
Type | Software development tools |
License | MIT License |
Website | scons |
SCons is a computer software build tool that automatically analyzes source code file dependencies and operating system adaptation requirements from a software project description and generates final binary executables for installation on the target operating system platform. Its function is analogous to the traditional GNU build system based on the make utility and the autoconf tools.
SCons generates project configurations and build process implementations in the form of Python scripts.
SCons software history started with the Cons software construction utility created by Bob Sidebotham in 1999.[2] Cons was written in the Perl language. It served as a base for the ScCons build tool, a design which won the Software Carpentry project SC Build competition in August 2000.[3] ScCons was the foundation for SCons.
SCons inspired the creation of Waf, formerly known as SCons/BKsys, which emerged in the KDE community. For some time, there were plans to use it as the build tool for KDE 4 and beyond, but that effort was abandoned in favor of CMake.[4]
Notable applications that use SCons include the following: The Battle for Wesnoth,[5] Battlefield 1942,[citation needed] Doom 3,[6] FCEUX,[7] gem5,[8] gpsd,[9] GtkRadiant,[10] Madagascar,[11] Mixxx,[12] MongoDB,[13] Nullsoft Scriptable Install System,[14] OpenNebula,[15] VMware,[citation needed], Wolfenstein,[16] XORP and MCA2,[17] openpilot[18] and Godot.[19]
.csig is the SCons Content Signature file format.
Major SCons features include the following:
The following example is a very simple SConstruct file that compiles the C program file hello-world.c using the default platform compiler:
Program("hello-world.c")
The following is a more complex example that creates an environment used to build the program hello:
env = Environment() env.Append(CPPFLAGS=["-Wall", "-g"]) env.Program("hello", ["hello.c", "main.c"])
Original source: https://en.wikipedia.org/wiki/SCons.
Read more |