SCons

SCons
Original author(s) Steven Knight
Stable release
2.5.0[1] / April 9, 2016 (2016-04-09)
Repository bitbucket.org/scons/scons
Written in Python
Operating system Cross-platform
Type Software development tools
License MIT License
Website scons.org

SCons is a computer software construction 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.

Major features

Major SCons features include the following:

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, Doom 3,[6] FCEUX, gem5,[7] gpsd,[8] GtkRadiant,[9] Madagascar,[10] Mixxx,[11] MongoDB,[12] Nullsoft Scriptable Install System,[13] NumPy and SciPy, OpenNebula,[14] OSRM,[15] SuperCollider, VMware, former V8 (JavaScript engine),[16] Wolfenstein: Enemy Territory, XORP and MCA2,[17] and GGT[18]

Examples

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'])

See also

References

  1. http://www.scons.org/CHANGES.txt
  2. Cons (web site), DSMit.
  3. Samuel, Alex (2000-08-04). "Software Carpentry Design Competition Second Round Results Config, Build, and Track categories". Retrieved 2012-10-29.
  4. Neundorf, Alexander (21 June 2006). "Why the KDE project switched to CMake – and how (continued)". LWN. Retrieved 21 July 2009.
  5. "CompilingWesnoth". Wiki. Wesnoth. Retrieved 2011-04-11.
  6. "README.txt". id Software. Retrieved 2015-05-13.
  7. Gem5.
  8. "SCons is full of win today". ESR. iBiblio. 2011-04-05. Retrieved 2011-04-11.
  9. "Developer documentation for GtkRadiant 1.6.0 (Zeroradiant)" (Trac). QE radiant. 2008-06-30. Retrieved 2009-12-28.
  10. "Installation". Wiki. Ahay. 2011-02-26. Retrieved 2011-04-11.
  11. "Mixxx/Compiling". 2014-08-26.
  12. "Building for Linux". MongoDB. 10gen. January 30, 2009. Retrieved February 8, 2011.
  13. "INSTALL". NSIS (source code). Source forge. 2011-05-28. Retrieved 2011-04-11.
  14. "/SConstruct - OpenNebula - OpenNebula Development pages". OpenNebula Project. Retrieved 2016-01-09.
  15. "Open Source Routing Machine". Retrieved May 29, 2012.
  16. "How to Download and Build V8". V8. Google. Retrieved July 5, 2011.
  17. "Modular Controller Architecture". Research Center for Information Technology (FZI), Karlsruhe Institute of Technology (KIT).
  18. "Generic Graphics Toolkit". GGT.
This article is issued from Wikipedia - version of the 7/21/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.