SCons

4.10.1 · active · verified Sun Apr 12

SCons is an Open Source, next-generation software construction tool written in Python, similar to GNU Make but using Python scripts for configuration. It provides automatic dependency analysis, support for parallel builds, and is designed for cross-platform software development. It is actively maintained with frequent releases, currently at version 4.10.1, offering new functionality, enhancements, and bug fixes.

Warnings

Install

Imports

Quickstart

Create an `SConstruct` file and a source file (e.g., `hello.c`) in the same directory. The `Environment()` function creates a build environment, and `env.Program()` defines a program target. Run `scons` from your terminal in the project's root directory to build the target.

# SConstruct file
env = Environment()
env.Program('hello.c')

# hello.c file
#include <stdio.h>

int main() {
    printf("Hello, SCons!\n");
    return 0;
}

# To build, run in terminal:
# scons
# To clean, run in terminal:
# scons -c

view raw JSON →