From 1dbd7d0cb5cf4b2e0e5261a6b10c6c255a440757 Mon Sep 17 00:00:00 2001 From: Mats Wichmann Date: Wed, 29 Apr 2020 06:59:28 -0600 Subject: Document env.Detect [ci skip] Add description of the Detect method, which has been around but not listed in the documentation. Tweak some other wording in the same doc file. Fixes #3441 Signed-off-by: Mats Wichmann --- src/engine/SCons/Environment.xml | 57 ++++++++++++++++++++++++++-------------- 1 file changed, 37 insertions(+), 20 deletions(-) diff --git a/src/engine/SCons/Environment.xml b/src/engine/SCons/Environment.xml index 5dea66e..213ac90 100644 --- a/src/engine/SCons/Environment.xml +++ b/src/engine/SCons/Environment.xml @@ -1156,7 +1156,7 @@ Such a function must accept the following four arguments: -dependency +dependency The Node (file) which @@ -1170,7 +1170,7 @@ was built. -target +target The Node (file) being built. @@ -1183,7 +1183,7 @@ has "changed." -prev_ni +prev_ni Stored information about the state of the @@ -1199,7 +1199,7 @@ size, or content signature. -repo_node +repo_node If set, use this Node instead of the one specified by @@ -1220,10 +1220,9 @@ target only exists in a Repository. The function -should return a -True -(non-zero) -value if the +should return a value which evaluates +True +if the dependency has "changed" since the last time the @@ -1232,9 +1231,8 @@ was built (indicating that the target should be rebuilt), -and -False -(zero) +and a value which evaluates +False otherwise (indicating that the target should not @@ -1308,6 +1306,28 @@ env.Depends(bar, installed_lib) + + +(progs) + + + +Returns the first value from progs +(which may be a string or a list of strings) +which is found by looking in the paths specified +by PATH in the ENV +attribute of env, or None. +The method is designed to look for executable programs, +so it applies the filename suffixes found in +PATHEXT in the ENV +attribute of env in attempting +matches but returns only the bare name from +progs. + + + + + ([vars]) @@ -1769,9 +1789,8 @@ repository or source directory. The ondisk -argument may be set to -False -(or any other non-true value) +argument may be set to a value which evaluates +False to disable the search for matches on disk, thereby only returning matches among already-configured File or Dir Nodes. @@ -1783,9 +1802,8 @@ for any on-disk matches found. The source -argument may be set to -True -(or any equivalent value) +argument may be set to a value which evaluates +True to specify that, when the local directory is a &f-VariantDir;, @@ -1797,9 +1815,8 @@ not the local directory. The strings -argument may be set to -True -(or any equivalent value) +argument may be set to a value which evaluates +True to have the &f-Glob; function return strings, not Nodes, -- cgit v0.12