SCons Reference Manual 0.95

Steven Knight

SCons User's Guide Copyright (c) 2003 Steven Knight

version 0.95

Table of Contents
Preface
Why SCons?
History
Conventions
Acknowledgements
Contact
Builder Reference
The Alias Builder
The Alias Method
The CFile Builder
The CFile Method
The Command Builder
The Command Method
The CXXFile Builder
The CXXFile Method
The Install Builder
The Install Method
The InstallAs Builder
The InstallAs Method
The Library Builder
Linking With a Library
Creating a Library
The Library Builder
The Object Builder
The Object Method
The PCH Builder
The PCH Method
The PDF Builder
The PDF Method
The PDF Builder
The PostScript Method
The Program Builder
The Program Builder
The RES Builder
The RES Method
The SharedLibrary Builder
The SharedLibrary Method
The SharedObject Builder
The SharedObject Method
The StaticLibrary Builder
The StaticLibrary Method
The StaticObject Builder
The StaticObject Method
Construction Variable Reference
AR
Errors Generated by SCons
X

Preface

X


Why SCons?

X


History

X


Conventions

X


Acknowledgements

X


Contact

X


Builder Reference

The Alias Builder

X


The Alias Method

X


The CFile Builder

X


The CFile Method

X


The Command Builder

X


The Command Method

X


The CXXFile Builder

X


The CXXFile Method

X


The Install Builder

X


The Install Method

X


The InstallAs Builder

X


The InstallAs Method

X


The Library Builder

Linking With a Library

      env = Environment(CC = 'gcc',
                        LIBS = 'world')
      env.Program('hello.c')
   

      % scons
      gcc -c hello.c -o hello.o
      gcc -c world.c -o world.o
      gcc -o hello hello.o -lworld
   


Creating a Library

      env = Environment(CC = 'gcc',
                        LIBS = 'world')
      env.Program('hello.c')
      env.Library('world.c')
   

      % scons
      gcc -c hello.c -o hello.o
      gcc -c world.c -o world.o
      ar r libworld.a world.o
      ar: creating libworld.a
      ranlib libworld.a
      gcc -o hello hello.o libworld.a
   


The Library Builder

X


The Object Builder

X


The Object Method

X


The PCH Builder

X


The PCH Method

X


The PDF Builder

X


The PDF Method

X


The PDF Builder

X


The PostScript Method

X


The Program Builder

X


The Program Builder

X


The RES Builder

X


The RES Method

X


The SharedLibrary Builder

X


The SharedLibrary Method

X


The SharedObject Builder

X


The SharedObject Method

X


The StaticLibrary Builder

X


The StaticLibrary Method

X


The StaticObject Builder

X


The StaticObject Method

X


Construction Variable Reference

AR

X


Errors Generated by SCons

X


X

X