| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
The compilation DB examples in the User Guide are indented with
the rest of the text (possibly auto-formatting by an editor),
while the scons_example and programlisting XML elements respect
formatting, so they should actually be dedented.
Example code which is not to be displayed (just used to drive
the example generation) don't matter so they were left alone this time.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
| |
need to regenerate the build.ninja
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Docstrings Environment (inc. .backtick) also lightly updated.
Functional change: the function to be called by ParseConfig
is now passed the *unique* flag, previously omitted (if the
default MergeFlags was used, it still picked up this flag but
a user-supplied function did not). Added a unit test for
user-supplied function.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
| |
Spotted by @night-ripper on Discord
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
|
|
| |
Use entities more consistently. Reword a few things.
Text implied that site_init.py needs to be manually imported,
adjusted wording not to say so.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use entities. Adopt the "derived-file cache" terminology used
elsewhere instead of the former wording "shared cache".
Also added entity references for content/build sigs to manpage,
as well as some other entity fiddling.
CacheDir entry now mentions SCons doesn't do cache maintenance.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|\
| |
| | |
Updates to User Guide: 6/Dependencies
|
| |
| |
| |
| | |
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
| |
| |
| | |
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Removed most references to md5 and tried to make the terminology
used a bit more consistent.
Added some markup - refernced functions now hyperlinked on
first mention of each section.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
| |
| |
| | |
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|/
|
|
|
|
|
|
|
| |
Rewrite of the intro in the user guide.
Otherwise, just markup, formatting, wording tweaks,
bigger example of how to install ninja.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
|
|
|
| |
Fixes #4096 (thanks to @Vishwajith-K for reporting)
Changed references in this file to use &consvar; and &consenv; entities.
+ Use the entity for PATH as well.
+ Update the entity reference for DUMP.
Also fix unrelated missing-entity referring to SConscriptChdir method.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
| |
Responding to review comment - and going a bit further.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
| |
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
|
|
| |
Just adds a bit more polish, better use of markup, etc.
Functionally unchanged.
Doc-only change.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
|
|\
| |
| | |
Update Java support for more versions
|
| |
| |
| |
| |
| |
| | |
Also add more linux locations for Java headers (old saved patch)
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|/ |
|
|
|
|
| |
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
| |
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
| |
Adds a section on "How To Use This Guide", tweaks some other wording.
Drop mention of scons-announce list, adds some contact info.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
| |
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is really just tweaking, no material changes: the subject of
instructions is now consistently "you", and the frequent distinction
between the sconscript writer and a seperate category of "users"
is emilinated for a cleaner read, and it doesn't say "we" any longer
(this distinction is sure to still exist elsewhere in the User Guide).
Present tense is also used - there were previously a lot of future
tense uses ("will foo").
As usual, some markup stuff is added.
doc/scons.mod is condensed a little by making five-line comment
blocks into one line, and markup is changed on the three
environment variables (<envar> instead of <varname>).
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
|
| |
|
|
|
|
| |
update-release-info to use 'Released: <date here>' instead of range of years.
|
| |
|
| |
|
|
|
|
| |
changes
|
|
|
|
| |
to NINJA_STATE.add_build(). Instead of only ones which weren't ninja files, nor conftest files
|
|
|
|
| |
builders. Also annotated code with some TODO: questions
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Adding-emitter example for User Guide
|
| |
| |
| |
| | |
variable is set as it uses it
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
travis]
The user guide instances of fiddling ['ENV']['PATH'] in
DefaultEnviroment are further updated: they use Dir('.') to
add the cwd instead of os.getcwd(). Note all but one of these
fiddles were only to make the example generation stuff find
a dummy command that was listed in an action but normally
wouldn't exist, as it's a placeholder. Those instances are
marked with an xml comment now.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Minor niggle: env = Environment() is so ingrained, use a different
variable name in the rare places where docs save the result of
calling DefaultEnvironment() - denv. Most instances are
internal fiddles to add the cwd to PATH for the example generator
to work, only two of these actually appear in the visible docs.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
| |
| |
| | |
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add an example on adding an emitter to an existing builder,
based on a mailing-list discussion with Jeremy Elson.
Also:
* Try to model "best practice" by changing instances of hand-modifying
env['ENV']['PATH'] in examples to using AppendENVPath function.
* Fixed a couple of Py2-style print statements.
* Tweaked markup on a couple of instances of site_scons.
* Black-formatted examples in the two userguide sections that
were otherwise modified.
* Dropped old cons doc content which was included as a big
comment at the fromt of builders-writing.xml.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|/
|
|
|
|
|
| |
Two dodgy bits of example code were discovered which do
"env = Program(....)", fixed up.
Signed-off-by: Mats Wichmann <mats@linux.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Use os.environ.copy() in examples - better not to get the
Python proxy class that is os.environ, and instead a real dict.
* Fix spelling on a python dict method: set_default -> setdefault
* Update some wording on prepending in the user guide (where it
still said "append to the beginning")
* Change the rather oblique note in the recently modified section
on Append of values to CPPDEFINES with something more explicit.
* And, modify the sphinx config to get the version from SCons
rather than hardcoding.
Fixes #3867
Signed-off-by: Mats Wichmann <mats@linux.com>
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
After discussion, it seemed like we should set a proper example,
so the Append and Prepend examples that used *FLAGS to set
a -Dstring value now use CPPDEFINES (without the -D).
Signed-off-by: Mats Wichmann <mats@linux.com>
|