SCons Reference Manual 0.96.95

Steven Knight

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

version 0.96.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


Builder Reference


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
   


Construction Variable Reference

AR

X


Errors Generated by SCons

X


X

X