Skip to content

Commit 8820182

Browse files
Deployed 898d5a6 to latest with MkDocs 1.6.1 and mike 2.1.3
1 parent 461d2e3 commit 8820182

File tree

7 files changed

+119
-94
lines changed

7 files changed

+119
-94
lines changed

latest/TODO/index.html

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -644,18 +644,27 @@
644644
<ul class="md-nav__list">
645645

646646
<li class="md-nav__item">
647-
<a href="#v030" class="md-nav__link">
647+
<a href="#nightly" class="md-nav__link">
648648
<span class="md-ellipsis">
649-
v0.3.0
649+
Nightly
650650
</span>
651651
</a>
652652

653653
</li>
654654

655655
<li class="md-nav__item">
656-
<a href="#nightly" class="md-nav__link">
656+
<a href="#v031" class="md-nav__link">
657657
<span class="md-ellipsis">
658-
Nightly
658+
v0.3.1
659+
</span>
660+
</a>
661+
662+
</li>
663+
664+
<li class="md-nav__item">
665+
<a href="#v030" class="md-nav__link">
666+
<span class="md-ellipsis">
667+
v0.3.0
659668
</span>
660669
</a>
661670

@@ -736,6 +745,14 @@
736745

737746
<h1 id="roadmap">Roadmap</h1>
738747
<h2 id="done">Done</h2>
748+
<h3 id="nightly">Nightly</h3>
749+
<ul>
750+
<li>Add version for default user config and prompt for update</li>
751+
</ul>
752+
<h3 id="v031">v0.3.1</h3>
753+
<ul>
754+
<li>Check last run is shared lib or executable. Reset cache when necessary if different type</li>
755+
</ul>
739756
<h3 id="v030">v0.3.0</h3>
740757
<ul>
741758
<li>More git options<ul>
@@ -761,25 +778,27 @@ <h3 id="v030">v0.3.0</h3>
761778
<li>Add ability to reference local YAML file for config profiles</li>
762779
<li>Add interactive tutorials and redo documentations</li>
763780
</ul>
764-
<h3 id="nightly">Nightly</h3>
765781
<h2 id="planned">Planned</h2>
766782
<h3 id="v040">v0.4.0</h3>
767783
<ul>
768784
<li>Allow runcpp2 to be library for scriptable pipeline</li>
769-
<li>Add version for default user config and prompt for update</li>
770785
<li>Add more default profiles</li>
771786
<li>Migrate to libyaml</li>
772-
<li>Ability to compile runcpp2 as single cpp</li>
787+
<li>Ability to compile runcpp2 as single cpp, to ditch cmake</li>
773788
</ul>
774789
<h2 id="high-priority">High Priority</h2>
775790
<ul>
791+
<li>Rename "OtherFilesToBeCompiled" to "SourceFiles"</li>
792+
<li>Expose/rename "InternalExecutableShared" and change BuildType to be platform map<ul>
793+
<li>This ties to the warning in <code>CompilingLinking.cpp:619</code></li>
794+
</ul>
795+
</li>
776796
<li>Update <code>FileProperties.hpp</code> to use list of string for prefix and extension<ul>
777797
<li>Merge <code>SharedLinkFile</code> and <code>SharedLibraryFile</code></li>
778798
</ul>
779799
</li>
780800
<li>Add the ability for user to specify custom substitution options which applies to all fields</li>
781801
<li>Add the ability to append defines coming from the dependencies</li>
782-
<li>Check last run is shared lib or executable. Reset cache when necessary if different type (<code>Src/runcpp2/CompilingLinking.cpp:502 LinkScript()</code>)</li>
783802
<li>Add wildcard support for filenames and extensions (Files Globbing)</li>
784803
<li>Add the ability to query script build directory</li>
785804
<li>Add the ability to list script dependencies</li>

latest/build_settings/index.html

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,6 +1137,19 @@ <h3 id="buildtype"><code>BuildType</code></h3>
11371137
<div class="language-yaml highlight"><pre><span></span><code><span id="__span-1-1"><a id="__codelineno-1-1" name="__codelineno-1-1" href="#__codelineno-1-1"></a><span class="nt">BuildType</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">Executable</span>
11381138
</span></code></pre></div>
11391139
</details>
1140+
<div class="admonition warning">
1141+
<p class="admonition-title">Warning</p>
1142+
<p>When you specify <code>BuildType</code> as <code>Executable</code>, it will still produce a <strong>shared library</strong> for running.
1143+
Under the hood, runcpp2 simply loads the shared library and call the <code>main()</code> function.</p>
1144+
<p>The reason of this behavior is because this makes it possible to "catch" if there's any
1145+
missing external (shared) libraries that failed to be resolved, either because of missing
1146+
<code>.dll</code>/<code>.so</code> or misconfigured search path. </p>
1147+
<p>This allows runcpp2 to differentiate a failure on resolving shared library and if the program
1148+
just returns a non-zero exit code.</p>
1149+
<p>Therefore, when calling with the build flag <code>--build</code>, the output of the binary is <strong>shared
1150+
library instead of an executable</strong>. This behavior can be <strong>overridden</strong> by passing the
1151+
<code>--executable</code>/<code>-e</code> flag to force runcpp2 to produce the executable.</p>
1152+
</div>
11401153
<h3 id="requiredprofiles"><code>RequiredProfiles</code></h3>
11411154
<ul>
11421155
<li>Type: <code>Platform Profile List</code></li>
@@ -1154,23 +1167,23 @@ <h3 id="requiredprofiles"><code>RequiredProfiles</code></h3>
11541167
</details>
11551168
<h3 id="overridecompileflags"><code>OverrideCompileFlags</code></h3>
11561169
<ul>
1157-
<li>Type: <code>Platform Profile Map</code></li>
1170+
<li>Type: <code>Platform Profile Map</code> with child fields</li>
11581171
<li>Optional: <code>true</code></li>
11591172
<li>Default: None</li>
1160-
<li>Description: The compile flags to override for each platform and profile.</li>
1173+
<li>Description: The compile flags to override for the profile being run under each platform.</li>
11611174
<li>Child Fields:<ul>
11621175
<li><code>Remove</code><ul>
11631176
<li>Type: <code>string</code></li>
11641177
<li>Optional: <code>true</code></li>
11651178
<li>Default: None</li>
1166-
<li>Description: The compile flags to remove for each platform and profile.</li>
1179+
<li>Description: The compile flags to remove for the profile being run.</li>
11671180
</ul>
11681181
</li>
11691182
<li><code>Append</code><ul>
11701183
<li>Type: <code>string</code></li>
11711184
<li>Optional: <code>true</code></li>
11721185
<li>Default: None</li>
1173-
<li>Description: The compile flags to append for each platform and profile.</li>
1186+
<li>Description: The compile flags to append for the profile being run.</li>
11741187
</ul>
11751188
</li>
11761189
</ul>
@@ -1190,20 +1203,20 @@ <h3 id="overridelinkflags"><code>OverrideLinkFlags</code></h3>
11901203
<li>Type: <code>Platform Profile Map</code> with child fields</li>
11911204
<li>Optional: <code>true</code></li>
11921205
<li>Default: None</li>
1193-
<li>Description: The link flags to override for each platform and profile.</li>
1206+
<li>Description: The link flags to override for the profile being run under each platform.</li>
11941207
<li>Child Fields:<ul>
11951208
<li><code>Remove</code><ul>
11961209
<li>Type: <code>string</code></li>
11971210
<li>Optional: <code>true</code></li>
11981211
<li>Default: None</li>
1199-
<li>Description: The link flags to remove for each platform and profile.</li>
1212+
<li>Description: The link flags to remove for the profile being run.</li>
12001213
</ul>
12011214
</li>
12021215
<li><code>Append</code><ul>
12031216
<li>Type: <code>string</code></li>
12041217
<li>Optional: <code>true</code></li>
12051218
<li>Default: None</li>
1206-
<li>Description: The link flags to append for each platform and profile.</li>
1219+
<li>Description: The link flags to append for the profile being run.</li>
12071220
</ul>
12081221
</li>
12091222
</ul>
@@ -1270,7 +1283,7 @@ <h3 id="setup"><code>Setup</code></h3>
12701283
<li>Type: <code>Platform Profile Map</code> with <code>list</code> of <code>string</code></li>
12711284
<li>Optional: <code>true</code></li>
12721285
<li>Default: None</li>
1273-
<li>Description: The setup commands to be used for each platform and profile.</li>
1286+
<li>Description: The setup commands to be used for each platform and profile. This runs before the script built for the first time.</li>
12741287
</ul>
12751288
<details class="example">
12761289
<summary>Example</summary>
@@ -1285,7 +1298,7 @@ <h3 id="prebuild"><code>PreBuild</code></h3>
12851298
<li>Type: <code>Platform Profile Map</code> with <code>list</code> of <code>string</code></li>
12861299
<li>Optional: <code>true</code></li>
12871300
<li>Default: None</li>
1288-
<li>Description: The pre-build commands to be used for each platform and profile.</li>
1301+
<li>Description: The pre-build commands to be used for each platform and profile. This runs before each build.</li>
12891302
</ul>
12901303
<details class="example">
12911304
<summary>Example</summary>
@@ -1300,7 +1313,7 @@ <h3 id="postbuild"><code>PostBuild</code></h3>
13001313
<li>Type: <code>Platform Profile Map</code> with <code>list</code> of <code>string</code></li>
13011314
<li>Optional: <code>true</code></li>
13021315
<li>Default: None</li>
1303-
<li>Description: The post-build commands to be used for each platform and profile.</li>
1316+
<li>Description: The post-build commands to be used for each platform and profile. This runs after each build.</li>
13041317
</ul>
13051318
<details class="example">
13061319
<summary>Example</summary>
@@ -1315,7 +1328,7 @@ <h3 id="cleanup"><code>Cleanup</code></h3>
13151328
<li>Type: <code>Platform Profile Map</code> with <code>list</code> of <code>string</code></li>
13161329
<li>Optional: <code>true</code></li>
13171330
<li>Default: None</li>
1318-
<li>Description: The cleanup commands to be used for each platform and profile.</li>
1331+
<li>Description: The cleanup commands to be used for each platform and profile. This runs when <code>--cleanup</code> command is specified.</li>
13191332
</ul>
13201333
<details class="example">
13211334
<summary>Example</summary>

0 commit comments

Comments
 (0)