summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/SwiftenDevelopersGuide/Swiften Developers Guide.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/Documentation/SwiftenDevelopersGuide/Swiften Developers Guide.xml b/Documentation/SwiftenDevelopersGuide/Swiften Developers Guide.xml
index fae79e4..345d049 100644
--- a/Documentation/SwiftenDevelopersGuide/Swiften Developers Guide.xml
+++ b/Documentation/SwiftenDevelopersGuide/Swiften Developers Guide.xml
@@ -117,6 +117,21 @@
whereas calling it with the <literal>--cflags</literal> option will return the
list of C(++) compiler flags.
</para>
+
+ <para>
+ An example of setting up a build of a Swiften application using SCons is shown
+ in <xref linkend="Example-SCons"/>.
+ </para>
+
+ <example id="Example-SCons">
+ <title><literal>SConstruct</literal> file to build Swiften application with SCons</title>
+ <programlisting>
+env = Environment()
+env["SWIFTEN_CONFIG"] = "/path/to/swiften-config"
+env.MergeFlags(env.subst("!$SWIFTEN_CONFIG --cflags --libs"))
+env.Program("EchoBot.cpp")
+ </programlisting>
+ </example>
</sect1>
<sect1>