summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2022-06-02 19:11:10 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2022-06-02 19:11:10 (GMT)
commitb5ebe82c9867ad9da154e57c70d1f63f2d98d3a1 (patch)
treebc9b3fc1b36e9a15f9d3faeaa5e079012744a1a2 /doc
parenta2dffb888472f55fad92e539d24b929b292fcb07 (diff)
downloadSCons-b5ebe82c9867ad9da154e57c70d1f63f2d98d3a1.zip
SCons-b5ebe82c9867ad9da154e57c70d1f63f2d98d3a1.tar.gz
SCons-b5ebe82c9867ad9da154e57c70d1f63f2d98d3a1.tar.bz2
Updated ninja docs in users guilde.
Diffstat (limited to 'doc')
-rw-r--r--doc/user/external.xml54
1 files changed, 41 insertions, 13 deletions
diff --git a/doc/user/external.xml b/doc/user/external.xml
index b483196..e15f998 100644
--- a/doc/user/external.xml
+++ b/doc/user/external.xml
@@ -303,25 +303,45 @@
<section>
<title>Ninja Build Generator</title>
-
- <note>
- <para>
+<note>
+ <para>
This is an experimental new feature.
It is subject to change and/or removal without a depreciation cycle.
- </para>
+ </para>
+
+
+ <para>
+ Loading the &t-link-ninja; tool into SCons will make significant changes
+ in SCons' normal functioning.
+ </para>
+ <itemizedlist>
+ <listitem>
<para>
- To enable this feature you'll need to use one of the following:
+ SCons will no longer execute any commands directly and will only create the <filename>build.ninja</filename> and
+ run ninja.
</para>
-<!-- NOTE DO NOT INDENT example_commands CONTENTS AS IT WILL ALTER THE FORMATTING-->
- <example_commands>
-# On the command line
---experimental=ninja
+ </listitem>
+ <listitem>
+ <para>
+ Any targets specified on the command line will be passed along to &ninja;
+ </para>
+ </listitem>
+ </itemizedlist>
+
+ <para>
+ To enable this feature you'll need to use one of the following:
+ </para>
+ <!-- NOTE DO NOT INDENT example_commands CONTENTS AS IT WILL ALTER THE FORMATTING-->
+ <example_commands>
+# On the command line --experimental=ninja
# Or in your SConstruct
SetOption('experimental', 'ninja')
- </example_commands>
- </note>
+ </example_commands>
+</note>
+
+
<para>
Ninja is a small build system that tries to be fast
@@ -366,8 +386,10 @@ conda install -c conda-forge ninja
<para>
It is not expected that the &b-link-Ninja; builder will work for all builds at this point. It is still under active
- development. If you find that your build doesn't work with &ninja; please bring this to the users mailing list
- or <literal>#scons-help</literal> channel on our Discord server.
+ development. If you find that your build doesn't work with &ninja; please bring this to the <ulink url="https://pairlist4.pair.net/mailman/listinfo/scons-users">users mailing list</ulink>
+ or <ulink url="https://discord.gg/bXVpWAy">
+ <literal>#scons-help</literal>
+ </ulink> channel on our Discord server.
</para>
<para>
@@ -377,6 +399,12 @@ conda install -c conda-forge ninja
implement those actions via shell commands in the &ninja; build file.
</para>
+ <para>
+ When ninja runs the generated &ninja; build file, ninja will launch &scons; as a daemon and feed commands
+ to that &scons; process which &ninja; is unable to build directly. This daemon will stay alive until
+ explicitly killed or it times out. The timeout is set by &cv-link-NINJA_SCONS_DAEMON_KEEP_ALIVE; .
+ </para>
+
<para>See:</para>
<simplelist type="vert">