Jump to content

SCons: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Techtonik (talk | contribs)
fix [citation needed] for Mixxx
Techtonik (talk | contribs)
Line 75: Line 75:
* [[GtkRadiant]]<ref>{{cite web| publisher = QE radiant | url= http://www.qeradiant.com/cgi-bin/trac.cgi/browser/GtkRadiant/trunk/COMPILING |title=Developer documentation for GtkRadiant 1.6.0 (Zeroradiant)| date= 2008-06-30 | format = Trac | accessdate = 2009-12-28}}</ref>
* [[GtkRadiant]]<ref>{{cite web| publisher = QE radiant | url= http://www.qeradiant.com/cgi-bin/trac.cgi/browser/GtkRadiant/trunk/COMPILING |title=Developer documentation for GtkRadiant 1.6.0 (Zeroradiant)| date= 2008-06-30 | format = Trac | accessdate = 2009-12-28}}</ref>
* [[Madagascar (software)|Madagascar]]<ref>{{cite web | publisher = Ahay | work = Wiki | url= http://www.ahay.org/wiki/Installation#Installation_from_source |title= Installation|date = 2011-02-26 | accessdate = 2011-04-11}}</ref>
* [[Madagascar (software)|Madagascar]]<ref>{{cite web | publisher = Ahay | work = Wiki | url= http://www.ahay.org/wiki/Installation#Installation_from_source |title= Installation|date = 2011-02-26 | accessdate = 2011-04-11}}</ref>
* [[Mixxx]]<ref>{{cite web|url=https://github.com/mixxxdj/mixxx#compiling}}</ref></ref>
* [[Mixxx]]<ref>{{cite web|url=https://github.com/mixxxdj/mixxx#compiling}}</ref>
* [[MongoDB]]<ref>{{cite web|url= http://www.mongodb.org/display/DOCS/Building+for+Linux#BuildingforLinux-Building | work = MongoDB | title = Building for Linux|date= January 30, 2009|publisher=10gen |accessdate= February 8, 2011}}</ref>
* [[MongoDB]]<ref>{{cite web|url= http://www.mongodb.org/display/DOCS/Building+for+Linux#BuildingforLinux-Building | work = MongoDB | title = Building for Linux|date= January 30, 2009|publisher=10gen |accessdate= February 8, 2011}}</ref>
* [[Nullsoft Scriptable Install System]]<ref>{{cite web | url = http://nsis.svn.sourceforge.net/viewvc/nsis/NSIS/trunk/INSTALL?revision=6147&view=markup |title = INSTALL | work = NSIS | type = source code | date = 2011-05-28 | accessdate = 2011-04-11 | publisher = Source forge}}</ref>
* [[Nullsoft Scriptable Install System]]<ref>{{cite web | url = http://nsis.svn.sourceforge.net/viewvc/nsis/NSIS/trunk/INSTALL?revision=6147&view=markup |title = INSTALL | work = NSIS | type = source code | date = 2011-05-28 | accessdate = 2011-04-11 | publisher = Source forge}}</ref>

Revision as of 12:30, 26 August 2014

SCons
Original author(s)Steven Knight
Stable release
2.3.3[1] / August 24, 2014; 10 years ago (2014-08-24)
Repository
Written inPython
Operating systemCross-platform
TypeSoftware development tools
LicenseMIT License
Websitescons.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 uses the Python general purpose programming language as a foundation, so that all software project configurations and build process implementations are Python scripts.

Major features

  • Configuration files are Python scripts, which means that user-written builds have access to a complete general-purpose programming language.
  • Automatic dependency analysis built-in for C, C++ and Fortran. Dependency analysis is extensible through user-defined dependency scanners for other languages or file types. Unlike the GNU Compiler Collection's (GCC) built-in dependency analysis, it uses a regular expression scan for included source files.
  • Built-in support for C, C++, D, Java, Fortran, Objective-C, Yacc, Lex, Qt and SWIG, as well as TeX and LaTeX documents. Other languages or file types can be supported through user-defined Builders.
  • Building from central repositories of source code and pre-built targets.
  • Built-in support for fetching source files from revision control systems, such as SCCS, RCS, CVS, Subversion, BitKeeper and Perforce.
  • Built-in support for Microsoft Visual Studio, including generation of .dsp, .dsw, .sln and .vcproj files.
  • Detection of file content changes using MD5 signatures; optional, configurable support for traditional timestamps.
  • Support for parallel builds which maintains a specified number of jobs running simultaneously regardless of directory hierarchy.
  • Integrated Autoconf-like support for finding #include files, libraries, functions and typedefs.
  • Global view of all dependencies, so multiple build passes or reordering targets is not required.
  • 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 POSIX systems (including GNU/Linux, IBM AIX and OS/2, *BSD Unices, HP-UX, SGI IRIX, Solaris), MS Windows NT, Apple OS X.

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]

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

Notable applications using Scons

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. ^ "Dev:Doc/Building Blender". Wiki. Blender. 2011-02-16. Retrieved 2011-04-11.
  7. ^ "Building Csound". C sounds. Retrieved 2011-04-11.
  8. ^ Gem5.
  9. ^ "SCons is full of win today". ESR. iBiblio. 2011-04-05. Retrieved 2011-04-11.
  10. ^ "Developer documentation for GtkRadiant 1.6.0 (Zeroradiant)" (Trac). QE radiant. 2008-06-30. Retrieved 2009-12-28.
  11. ^ "Installation". Wiki. Ahay. 2011-02-26. Retrieved 2011-04-11.
  12. ^ https://github.com/mixxxdj/mixxx#compiling. {{cite web}}: Missing or empty |title= (help)
  13. ^ "Building for Linux". MongoDB. 10gen. January 30, 2009. Retrieved February 8, 2011.
  14. ^ "INSTALL". NSIS (source code). Source forge. 2011-05-28. Retrieved 2011-04-11.
  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.