Questions tagged [sconscript]

This can refer to SConscript function which tells SCons to execute one or more subsidiary SConscript (configuration) files or to SConscript configuration build file which determine how the build invoked for the listed source files in the sconscript file.

The source code for large software projects rarely stays in a single directory, but is nearly always divided into a hierarchy of directories. Organizing a large software build using SCons involves creating a hierarchy of build scripts using the SConscript function.

The top-level SConstruct file can use the SConscript function to include other subsidiary scripts in the build. These subsidiary scripts can, in turn, use the SConscript function to include still other scripts in the build. By convention, these subsidiary scripts are usually named SConscript.

Whether you list all of the SConscript files in the top-level SConstruct file, or place a subsidiary SConscript file in intervening directories, or use some mix of the two schemes, is up to user and the needs of software construction.

Additional data can be found in all scons releases users guide. visit the scons open source project SCons.

See latest user guide documentation in the link user_guide.

Visit the github community and project repository in the link: scons_repo

2 questions
1
vote
1 answer

how to force SCons to build with relative paths?

I have the following project structure: /project /src_dirs /src_dir_1 /... /include_dirs /inc_dir_1 /... /output SConstruct /Sconscripts lib1_sconscript lib2_sconscript …
Adam
  • 2,820
  • 1
  • 13
  • 33
-1
votes
2 answers

How can python code in a Scons script ascertain that it's being run as part of a clean operation?

Is there a runtime variable that can be checked during tree generation if the scons -c flag has been provided? Additional Context: Suppose you have a Sconscript that generates a target "TARG" which can be built, and it is convenient when building…