SCons User Guide 0.96.1 | ||
---|---|---|
<<< Previous | Next >>> |
SCons has integrated support for multi-platform build configuration similar to that offered by GNU Autoconf, such as figuring out what libraries or header files are available on the local system. This section describes how to use this SCons feature.
This chapter is still under development, so not everything is explained as well as it should be. See the SCons man page for additional information. |
The basic framework for multi-platform build configuration in SCons is to attach a configure context to a construction environment by calling the Configure function, perform a number of checks for libraries, functions, header files, etc., and to then call the configure context's Finish method to finish off the configuration:
env = Environment() conf = Configure(env) # Checks for libraries, header files, etc. go here! env = conf.Finish() |
The next sections describe the basic checks that SCons supports, as well as how to add your own custom checks.
<<< Previous | Home | Next >>> |
Guaranteeing local copies of files | Checking for the Existence of Header Files |