diff options
author | Remko Tronçon <git@el-tramo.be> | 2013-04-25 19:42:16 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2013-04-25 19:42:16 (GMT) |
commit | 7ef27db79a528263b17610444f4f85bafd0fa6fa (patch) | |
tree | 7f569f61b8d0d3661237185fbd6385250a3a83da /Documentation/SwiftenDevelopersGuide | |
parent | 5eff3391c316d5ab325b78024296e74127c6747c (diff) | |
download | swift-7ef27db79a528263b17610444f4f85bafd0fa6fa.zip swift-7ef27db79a528263b17610444f4f85bafd0fa6fa.tar.bz2 |
swiften-config improvements.
Allow --libs and --cflags to be used in the same command.
Include Boost flags in --cflags.
Add documentation for using swiften-config with SCons.
Change-Id: I36d78cdecab7c2b7b6ef7861e09a43964357f23d
Diffstat (limited to 'Documentation/SwiftenDevelopersGuide')
-rw-r--r-- | Documentation/SwiftenDevelopersGuide/Swiften Developers Guide.xml | 15 |
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> |