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/sconf.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/sconf.xml')
-rw-r--r-- | doc/user/sconf.xml | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/doc/user/sconf.xml b/doc/user/sconf.xml index e787db9..31bd45e 100644 --- a/doc/user/sconf.xml +++ b/doc/user/sconf.xml @@ -303,20 +303,20 @@ env = conf.Finish() </para> <sconstruct> - mylib_test_source_file = """ - #include &lt;mylib.h&gt; - int main(int argc, char **argv) - { - MyLibrary mylib(argc, argv); - return 0; - } - """ - - def CheckMyLibrary(context): - context.Message('Checking for MyLibrary...') - result = context.TryLink(mylib_test_source_file, '.c') - context.Result(result) - return result +mylib_test_source_file = """ +#include &lt;mylib.h&gt; +int main(int argc, char **argv) +{ + MyLibrary mylib(argc, argv); + return 0; +} +""" + +def CheckMyLibrary(context): + context.Message('Checking for MyLibrary...') + result = context.TryLink(mylib_test_source_file, '.c') + context.Result(result) + return result </sconstruct> <para> @@ -380,30 +380,30 @@ conf = Configure(env, custom_tests = {'CheckMyLibrary' : CheckMyLibrary}) </para> <sconstruct> - mylib_test_source_file = """ - #include &lt;mylib.h&gt; - int main(int argc, char **argv) - { - MyLibrary mylib(argc, argv); - return 0; - } - """ - - def CheckMyLibrary(context): - context.Message('Checking for MyLibrary... ') - result = context.TryLink(mylib_test_source_file, '.c') - context.Result(result) - return result - - env = Environment() - conf = Configure(env, custom_tests = {'CheckMyLibrary' : CheckMyLibrary}) - if not conf.CheckMyLibrary(): - print 'MyLibrary is not installed!' - Exit(1) - env = conf.Finish() +mylib_test_source_file = """ +#include &lt;mylib.h&gt; +int main(int argc, char **argv) +{ + MyLibrary mylib(argc, argv); + return 0; +} +""" + +def CheckMyLibrary(context): + context.Message('Checking for MyLibrary... ') + result = context.TryLink(mylib_test_source_file, '.c') + context.Result(result) + return result + +env = Environment() +conf = Configure(env, custom_tests = {'CheckMyLibrary' : CheckMyLibrary}) +if not conf.CheckMyLibrary(): + print 'MyLibrary is not installed!' + Exit(1) +env = conf.Finish() - # We would then add actual calls like Program() to build - # something using the "env" construction environment. +# We would then add actual calls like Program() to build +# something using the "env" construction environment. </sconstruct> <para> |