summaryrefslogtreecommitdiffstats
path: root/doc/user/sconf.xml
diff options
context:
space:
mode:
authorDirk Baechle <dl9obn@darc.de>2013-10-06 16:48:36 (GMT)
committerDirk Baechle <dl9obn@darc.de>2013-10-06 16:48:36 (GMT)
commita177bfae9c77a166aba93a8c0c4ab4cfc9012e71 (patch)
tree966f7b0c946e86bdb426f492d359997698b1d80b /doc/user/sconf.xml
parente2d8d87c5911067374d0b3b5be562c4ce2dddcce (diff)
downloadSCons-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.xml74
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 &amp;lt;mylib.h&amp;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 &amp;lt;mylib.h&amp;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 &amp;lt;mylib.h&amp;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 &amp;lt;mylib.h&amp;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>