Which Languages, Platforms, and Tools Does SCons Support?

Updated

SCons provides built-in support for C, C++, D, Java, Fortran, Yacc, Lex, Qt, and SWIG, plus building TeX and LaTeX documents. It is known to work on Linux, other POSIX systems (including AIX, BSD systems, HP/UX, IRIX, and Solaris), Windows 7/8/10, macOS, and OS/2. If your language or file type is not covered out of the box, you can extend SCons through user-defined Builders and Scanners.

Built-in language and document support

According to the SCons website, the tool ships with built-in support for:

  • C and C++
  • D
  • Java
  • Fortran
  • Yacc and Lex
  • Qt
  • SWIG
  • TeX and LaTeX documents

This means you can start a build for these languages without writing custom logic for the basic compilation or document-generation steps.

Extending to other languages and file types

SCons is designed to be extended when built-in support is not enough:

  • User-defined Builders add support for other languages or file types.
  • User-defined dependency Scanners extend dependency analysis to other languages or file types.

So if you work with a language outside the built-in list, the intended path is to define your own Builder and, where needed, a Scanner for dependency tracking.

Platform support

SCons is described as designed from the ground up for cross-platform builds. The platforms it is known to work on include:

Platform category Specific systems
Linux Linux
Other POSIX systems AIX, BSD systems, HP/UX, IRIX, Solaris
Windows Windows 7, 8, 10
Apple macOS
Other OS/2

Microsoft Visual Studio integration

SCons includes built-in support for Microsoft Visual Studio, including generation of:

  • .dsp
  • .dsw
  • .sln
  • .vcproj

This is relevant if your build needs to produce or work with Visual Studio project and solution files.

What this means for choosing SCons

If your project uses C, C++, D, Java, Fortran, Yacc, Lex, Qt, SWIG, or TeX/LaTeX, SCons covers those directly. If you use another language or file type, plan to write custom Builders and Scanners. If you need cross-platform builds across Linux, POSIX systems, Windows, macOS, or OS/2, SCons lists those as supported environments. If you rely on Visual Studio project files, SCons can generate the common .dsp, .dsw, .sln, and .vcproj formats.