summaryrefslogtreecommitdiffstats
path: root/SCons/Defaults.py
Commit message (Collapse)AuthorAgeFilesLines
* Added default values for source and target arguments to _defines (used for ↵William Deegan2022-03-201-1/+1
| | | | expanding among other things CPPDEFINES). source and target arguements were previously added to allow those values to be used by alternative definitions for _defines. This broke previous usage, including scons-contribs qt4 and qt5 tools. (See https://github.com/SCons/scons-contrib/issues/45 )
* Updated tools to use _concat's new affect_signature flagWilliam Deegan2021-06-121-1/+1
|
* Address some pylint issuesWilliam Deegan2021-06-121-9/+10
|
* fix variable renameWilliam Deegan2021-06-121-2/+2
|
* added affect_signature to _concat to have it take care of adding if needed. ↵William Deegan2021-06-121-7/+19
| | | | Updated _LIBDIRFLAGS and _CPPINCFLAGS to use
* 3790 - Fix the failing testAndrew Morrow2021-05-131-3/+3
|
* Fix some imports and other checker warningsMats Wichmann2021-05-051-1/+0
| | | | | | | | | | | | | * Removed a number of imports reported as unused. * Reorganize imports in a few places. * Checker reported warnings problems ("Instantiating an exception, but not raising it, has no effect"): serveral tool modules instantiated a warning class thinking (?) it would issue the warning; changed these to the standard use - calling the warn() function with the warnclass as an arg. * Tool modules that were touched had the copyright header munging applied. * Removed irritating "####" lines from gettext and msgfmt tools. Signed-off-by: Mats Wichmann <mats@linux.com>
* Tweaking of Action Objects docu, update Mkdir()Mats Wichmann2021-04-251-10/+1
| | | | | | | | | | | | Mostly it's just fiddling; did add a pointer to information on Chmod() on Windows, and that Mkdir() makes intermediate dirs and takes a list as well as a string. While resolving some doc questions, found the function used by Makedir() could be simplified by passing exist_ok=True to os.makedirs(). Signed-off-by: Mats Wichmann <mats@linux.com>
* Merge pull request #3926 from mwichmann/defines-expandWilliam Deegan2021-04-121-11/+11
|\ | | | | Expansion of CPPDEFINES now substs consvars
| * Expansion of CPPDEFINES now substs consvarsMats Wichmann2021-04-101-11/+11
| | | | | | | | | | | | | | | | | | | | | | By calling env.subst_list instead of env.subst_path, the processed defines can have construction vars interpolated. Note issue of SOURCE and TARGET not being expanded, as they're special and are not passed to the relevant function, remains open (issue 3477). Fixes #2363 Signed-off-by: Mats Wichmann <mats@linux.com>
* | Change to set reasonable default for TEMPFILEARGESCFUNC in Defaults.py ↵William Deegan2021-04-111-0/+1
|/ | | | rather in get() in TEMPFILEMUNGE logic
* Merge branch 'master' into topic/grossag/newhashesWilliam Deegan2021-03-071-51/+107
|\
| * Fix comment and move import to top of fileWilliam Deegan2021-01-041-2/+2
| |
| * initial checkin of versioned shared library rewriteWilliam Deegan2020-12-211-49/+96
| |
| * Merge remote-tracking branch 'upstream/master' into reimplement_soname_soversionWilliam Deegan2020-12-201-14/+12
| |\
| * | docstrings and minor code cleanupWilliam Deegan2020-12-081-1/+9
| | |
| * | refactor cleanup. circular import issues resolved by moving isolated imports ↵William Deegan2020-08-311-3/+0
| | | | | | | | | | | | into the few functions they are used in rather than globally in the module
* | | Merge branch 'master' into topic/grossag/newhashesAdam Gross2020-11-061-17/+11
|\ \ \ | | |/ | |/|
| * | Update some copyright strings and drop __revision__ [skip appveyor]Mats Wichmann2020-09-231-17/+11
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Touches the first and second levels of SCons (except SCons.Tool), not tests or docs which remain TODO. Make sure docstring is first non-comment content, eliminate cases where docstring is set elsewhere but assigns to __doc__ - this approach of course worked inside Python, but confuses various tools. Some module-level docstrings modified a bit, in particular the convention of having the name of the module as the first line is dropped, replaced by a summary description going there instead - this improves the look in the API Docs, which otherwise display something like: SCons.Foo - SCons.Foo Signed-off-by: Mats Wichmann <mats@linux.com>
* | Add support for overriding the default hash formatAdam Gross2020-08-041-4/+1
|/ | | | | | | This change adds support for a new --hash-format parameter that can be used to override the default hash format used by SCons. The default remains MD5, but this allows consumers to opt into SHA1, SHA256, or any other hash algorithm offered by their implementation of hashlib.
* classes no longer explicitly inherit from objectMats Wichmann2020-05-241-2/+2
| | | | | | In Python3 this is the default. Signed-off-by: Mats Wichmann <mats@linux.com>
* Reorganize the repo. Moved src/engine/SCons to ./SCons to be more in line ↵William Deegan2020-05-061-0/+594
with current python packaging practices