http://wiki.vdrift.net/index.php?title=Using_SCons&feed=atom&action=historyUsing SCons - Revision history2024-03-28T14:08:31ZRevision history for this page on the wikiMediaWiki 1.35.2http://wiki.vdrift.net/index.php?title=Using_SCons&diff=1276&oldid=prevTimo 6: Update categories2012-09-01T11:09:33Z<p>Update categories</p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 11:09, 1 September 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">{{update}}</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[http://scons.org/ SCons] is a replacement for autotools written in Python.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[http://scons.org/ SCons] is a replacement for autotools written in Python.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l34" >Line 34:</td>
<td colspan="2" class="diff-lineno">Line 32:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Development]]</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Development]]</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">[[Category:Update]]</del></div></td><td colspan="2"> </td></tr>
</table>Timo 6http://wiki.vdrift.net/index.php?title=Using_SCons&diff=1025&oldid=prevTimo 6: 4 revisions: Import from old wiki (on 15 May 2012)2012-08-26T17:31:02Z<p>4 revisions: Import from old wiki (on 15 May 2012)</p>
<p><b>New page</b></p><div>{{update}}<br />
<br />
[http://scons.org/ SCons] is a replacement for autotools written in Python.<br />
<br />
{{note|Throughout the <code>scons</code> command will be used; if you are using scons-local that is distributed with VDrift you'll need to replace every instance of <code>scons</code> with <code>./scons.py</code>.}}<br />
<br />
==Compile==<br />
To [[Compiling|compile VDrift]], simply run SCons. It reads the root level SCons configuration file, SConstruct, as well as the configuration files in subdirectories (called SConscript), when it is run to see what to do.<br />
scons<br />
SCons starts by checking your system for available libraries. If things go well, this will look something like this:<br />
<br />
you@yourcomputer:~/games/vdrift$ scons<br />
scons: Reading SConscript files ...<br />
Checking for main() in C library GL... yes<br />
Checking for main() in C library GLU... yes<br />
Checking for main() in C library openal... yes<br />
Checking for C++ header file SDL/SDL.h... yes<br />
Checking for C++ header file SDL/SDL_image.h... yes<br />
Checking for C++ header file SDL/SDL_net.h... yes<br />
scons: done reading SConscript files.<br />
<br />
Now, SCons will begin compiling VDrift, one file at a time, starting with the Vamos files and ending with linking the main executable. When changes to the source files are made, <code>scons</code> must be run again to update the build.<br />
<br />
==Clean==<br />
When building a project it is sometimes necessary to "clean" a build (remove all files produced by the build). This can be done with the <code>-c</code> flag:<br />
scons -c<br />
All the object and binary executable files will be removed. Then when you run <code>scons</code> again, all the files will be rebuilt.<br />
<br />
==Help==<br />
If you wish to list the options available at build time you may do so by executing <code>scons -h</code>. This will show all the available options, their default values, and their current values.<br />
<br />
==Quiet==<br />
If you want SCons to give less verbose output when compiling use the <code>-Q</code> option.<br />
<br />
[[Category:Development]]<br />
[[Category:Update]]</div>Timo 6