diff options
author | Dirk Baechle <dl9obn@darc.de> | 2013-10-06 16:48:36 (GMT) |
---|---|---|
committer | Dirk Baechle <dl9obn@darc.de> | 2013-10-06 16:48:36 (GMT) |
commit | a177bfae9c77a166aba93a8c0c4ab4cfc9012e71 (patch) | |
tree | 966f7b0c946e86bdb426f492d359997698b1d80b /doc/user/variants.xml | |
parent | e2d8d87c5911067374d0b3b5be562c4ce2dddcce (diff) | |
download | SCons-a177bfae9c77a166aba93a8c0c4ab4cfc9012e71.zip SCons-a177bfae9c77a166aba93a8c0c4ab4cfc9012e71.tar.gz SCons-a177bfae9c77a166aba93a8c0c4ab4cfc9012e71.tar.bz2 |
- additional corrections for left alignment
Diffstat (limited to 'doc/user/variants.xml')
-rw-r--r-- | doc/user/variants.xml | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/doc/user/variants.xml b/doc/user/variants.xml index f14cf6e..74a155b 100644 --- a/doc/user/variants.xml +++ b/doc/user/variants.xml @@ -84,53 +84,53 @@ is pretty smart about rebuilding things when you change options. <scons_example name="variants_ex"> <file name="SConstruct" printme="1"> - platform = ARGUMENTS.get('OS', Platform()) +platform = ARGUMENTS.get('OS', Platform()) - include = "#export/$PLATFORM/include" - lib = "#export/$PLATFORM/lib" - bin = "#export/$PLATFORM/bin" +include = "#export/$PLATFORM/include" +lib = "#export/$PLATFORM/lib" +bin = "#export/$PLATFORM/bin" - env = Environment(PLATFORM = platform, - BINDIR = bin, - INCDIR = include, - LIBDIR = lib, - CPPPATH = [include], - LIBPATH = [lib], - LIBS = 'world') +env = Environment(PLATFORM = platform, + BINDIR = bin, + INCDIR = include, + LIBDIR = lib, + CPPPATH = [include], + LIBPATH = [lib], + LIBS = 'world') - Export('env') +Export('env') - env.SConscript('src/SConscript', variant_dir='build/$PLATFORM') +env.SConscript('src/SConscript', variant_dir='build/$PLATFORM') </file> <directory name="src"></directory> <directory name="src/hello"></directory> <directory name="src/world"></directory> <file name="src/SConscript"> - Import('env') - SConscript('hello/SConscript') - SConscript('world/SConscript') +Import('env') +SConscript('hello/SConscript') +SConscript('world/SConscript') </file> <file name="src/hello/SConscript"> - Import('env') - hello = env.Program('hello.c') - env.Install('$BINDIR', hello) +Import('env') +hello = env.Program('hello.c') +env.Install('$BINDIR', hello) </file> <file name="src/hello/hello.c"> - #include "world.h" - int main(int argc, char *argv[]) { printf "hello.c\n"; world(); } +#include "world.h" +int main(int argc, char *argv[]) { printf "hello.c\n"; world(); } </file> <file name="src/world/SConscript"> - Import('env') - world = env.Library('world.c') - env.Install('$LIBDIR', world) - env.Install('$INCDIR', 'world.h') +Import('env') +world = env.Library('world.c') +env.Install('$LIBDIR', world) +env.Install('$INCDIR', 'world.h') </file> <file name="src/world/world.h"> - #define STRING "world.h" - extern int world(); +#define STRING "world.h" +extern int world(); </file> <file name="src/world/world.c"> - int world() { printf "world.c\n"; } +int world() { printf "world.c\n"; } </file> </scons_example> |