summaryrefslogtreecommitdiff
path: root/src/engine/SCons/Environment.py
Commit message (Collapse)AuthorAgeFilesLines
* TARGET_OS|ARCH should never be defaulted to HOST_OS|ARCH. This makes it ↵William Deegan2013-04-091-2/+2
| | | | impossible to detect if the user specified a default. Tools should have this information available to do the appropriate thing for the specified target, and if not present use reasonable sequece of defaults to try
* Add documentation and update CHANGES.txt. Remove the Environment methods ↵Robert Managan2012-11-091-71/+0
| | | | VersionedSharedLibrary and VersionSharedLibraryInstall since they are no longer needed
* add support for darwinRobert Managan2012-10-171-1/+0
|
* Add library version support to Shared Lib builderRobert Managan2012-10-161-2/+1
|
* Add the versioned sh lib and install methods to EnvironmentRobert Managan2012-10-051-0/+74
|
* Merged in ptomulik/scons, pull request #25: gettext toolsetGary Oberbrunner2012-08-011-8/+5
|\
| * Fixed FindSourceFiles to find leaf nodes.ptomulik2012-06-071-1/+14
|/
* better fix for issue 2821 -- avoid direct copies of the BuilderDict as it is ↵edA-qa mort-ora-y2012-05-061-8/+11
| | | | ambiguous/corrupts the original environment
* Applied patch from #2732: support -std=c++0x in ParseFlagsGary Oberbrunner2011-03-031-1/+6
|
* Applied patch from #2433: support -dylib_file in ParseFlagsGary Oberbrunner2011-03-031-0/+3
|
* Added -fopenmp and -openmp to ParseFlags (add to LINKFLAGS and CCFLAGS)Gary Oberbrunner2011-01-121-4/+4
|
* Fix CPPDEFINES problems with dicts (both Append and MergeFlags). From ↵Gary Oberbrunner2010-08-151-12/+95
| | | | Jean-Baptiste Lab. Fixes issue #2671.
* Fix substitution in command-line actions created by the global Alias() function.Steven Knight2010-07-051-0/+8
|
* http://scons.tigris.org/issues/show_bug.cgi?id=2365Greg Noel2010-05-281-3/+3
| | | | | | Start the deprecation cycle for SourceCode() and its related factory functions. Deprecation messages are added to the functions. Regression tests are modified to deal with the messages being generated. Documentation is updated.
* Start the deprecation cycle for the BuildDir() method and the build_dirGreg Noel2010-05-261-0/+5
| | | | | | | | | | | | | | | | | | | | | | keyword parameter. Several existing tests were still using BuildDir() or build_dir; they were converted to use VariantDir() and variant_dir. New tests were added to validate that the --warn=deprecated-build-dir option and the SetOption method did the right thing. This led to the discovery that a commonly-used test pattern provided by the infrastructure gobbled up too much, causing tests to succeed when they should have failed. Fixing the pattern led to other tests needing to be fixed. In the process, it was discovered that the SCONSFLAG environment variable was not getting correctly reset to its original value. Fixing this also caused additional tests to misbehave, requiring them to be updated. And test/Sig.py, which tests the deprecated SCons.Sig module, was moved to the test/Deprecated directory. All in all, quite a lot of action for what was supposed to be a simple change.
* Convert SubstitutionEnvironment from an old-style class to a new-style class.Steven Knight2010-05-191-1/+1
|
* Convert Environment.MethodWrapper from an old-style class to a new-style class.Steven Knight2010-05-181-1/+1
|
* Convert Environment._Null from an old-style class to a new-style class.Steven Knight2010-05-171-1/+1
|
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-241-36/+16
| | | | | | | Comb out all code that supported earlier versions of Python. Most such code is in snippets of only a few lines and can be identified by having a Python version string in it. Such snippets add up; this combing pass probably got rid of over 500 lines of code.
* http://scons.tigris.org/issues/show_bug.cgi?id=2317Greg Noel2010-04-231-5/+5
| | | | | | Apply the refactorings from the 'dict' fixer, less occurrences that were manually audited to be safe. Also pick up changes in bin/sfsum, a Python file that was not being scanned before.
* Rewrite uses of reduce(), which is being deprecated for Python 3.x.Steven Knight2010-04-201-1/+3
|
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-151-10/+10
| | | | | | Apply the first part of the 'raise' fixer (the three-argument cases are not converted and will need to wait until native support of with_traceback() is available).
* Issue 2334: Use compatibility versions of collections.User{Dict,List,String}Steven Knight2010-04-071-1/+1
| | | | | instead of the deprecated User{Dict,List,String} modules. The two test scripts that use User{List,String} fall back on ImportError by hand.
* Issue 2332: Convert from using StringIO.StringIO class to using theSteven Knight2010-04-071-1/+1
| | | | | forward-compatible io.StringIO class, with the addition of an "io" compatibility module for Python versions before 2.6.
* http://scons.tigris.org/issues/show_bug.cgi?id=2329Greg Noel2010-03-271-1/+1
| | | | | | | | | | | | | | | Applied a number of idiomatic changes. Uses of the 'sort()' method were converted into calls of 'sorted()' when possible and the sorted() expression was inserted into a subsequent statement whenever that made sense. The statement 'while 1:' was changed to 'while True:'. Names from the 'types' module (e.g., 'types.FooType') were converted to the equivalent build-in type (e.g., 'foo'). Comparisons between types were changed to use 'isinstance()'.
* Move 2.0 changes collected in branches/pending back to trunk for furtherGreg Noel2010-03-251-81/+82
| | | | | development. Note that this set of changes is NOT backward-compatible; the trunk no longer works with Python 1.5.2, 2.0, or 2.1.
* Generate an error message if a BUILDERS entry is set to something that isn'tSteven Knight2010-02-171-0/+3
| | | | a Builder object, or known to generate a Builder object, or a callable.
* Fix an import error for a reference in the Configure() method.Steven Knight2009-07-211-0/+1
|
* In addition to changed merged below, commented out for platform os2 use of ↵William Deegan2009-07-211-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | msvc, mslib, mslink as they cause test/import.py to fail. I don't have an OS2 system to resolve the issues on. Merged revisions 4065,4067-4068,4071-4072,4074,4076,4085,4111,4163,4222 via svnmerge from http://scons.tigris.org/svn/scons/branches/vs_revamp ................ r4065 | stevenknight | 2009-03-02 16:48:05 -0800 (Mon, 02 Mar 2009) | 42 lines Copy over changes by hand from branches/core (I was working in a directory pointing to the wrong branch): ........ r4059 | stevenknight | 2009-03-02 06:54:13 -0800 (Mon, 02 Mar 2009) | 14 lines Initial prototypes of modules for architecture support (MSCommon/arch.py) and Visual C/C++ configuration distinct from (and in preference to) the Visual Studio configuration, incorporating configuration info and ideas from Jason Kenny's latest parts/tools/MSCommon work. This has a lot of cut-and-paste right now and does NOT actually work. In particular, there are no changes to the rest of the infrastructure to actually call any of this new stuff. I'm checking these in so I can sync on other systems for continued development. The ultimate goal is for much of the current MSCommon/vs.py module's logic to migrate to MSCommon/vc.py, since that's what we're actually interested in configuring. ........ r4058 | stevenknight | 2009-03-02 06:49:35 -0800 (Mon, 02 Mar 2009) | 2 lines Fix doc string. ........ r4056 | stevenknight | 2009-03-01 06:10:31 -0800 (Sun, 01 Mar 2009) | 4 lines Change the sanity_check file for 6.1 per Jason's update. Add an optional version string argument to detect_sdk(). Import directly from common, not SCons.Tool.MSCommon.common. ........ r4055 | stevenknight | 2009-02-28 05:29:03 -0800 (Sat, 28 Feb 2009) | 5 lines Minor common.py enhancements: Refactor is_win64() to cache its return value so we don't have to hit registry every time we want to know if the OS is 64-bit. Accept SCONS_MSCOMMON_DEBUG=- to mean print debug messages to stdout. ........ ................ r4067 | stevenknight | 2009-03-06 04:59:21 -0800 (Fri, 06 Mar 2009) | 4 lines Fix entries in batch_file_map, after a double-check with the original code. Use a host_architecture of None in the map to indicate the "default" entry if there isn't a specific .bat file for our current architecture. ................ r4068 | stevenknight | 2009-03-06 05:15:39 -0800 (Fri, 06 Mar 2009) | 2 lines Add include_subdir and lib_subdir data to the SDK definitions. ................ r4071 | stevenknight | 2009-03-10 07:42:53 -0700 (Tue, 10 Mar 2009) | 4 lines Capture basically working snapshot. src/engine/SCons/Tool/msvsTests.py and test/IDL/midl.py still fail, and code needs clean up. ................ r4072 | stevenknight | 2009-03-11 06:38:37 -0700 (Wed, 11 Mar 2009) | 2 lines Fix path to Common7\Tools. Find vs*.bat files. ................ r4074 | stevenknight | 2009-03-13 17:11:55 -0700 (Fri, 13 Mar 2009) | 3 lines Import SCons.Tool.MSCommon.vc so it works regardless of other sys.path manipulation. ................ r4076 | stevenknight | 2009-03-19 08:08:48 -0700 (Thu, 19 Mar 2009) | 7 lines Refactor SDK support: * New mssdk_exists() and mssdk_setup_env() methods as the primary public entry points. * Call internal sdk.*() utility functions that just return information (like the SDK structure) not handle the actual setting. * Give the VisualStudio definitions explicit settings for the SDK version. ................ r4085 | bdbaddog | 2009-04-05 14:30:46 -0700 (Sun, 05 Apr 2009) | 3 lines Fix "can't find module vc" issue when building on windows. ................ r4111 | stevenknight | 2009-04-19 07:47:47 -0700 (Sun, 19 Apr 2009) | 2 lines Doc updates for how MSVS_VERSION is used. ................ r4163 | bdbaddog | 2009-04-29 17:32:43 -0700 (Wed, 29 Apr 2009) | 4 lines Fix for bug 2405 Also refactored some logic from Defaults._defines() into Defaults.processDefines() which is then used by msvs.py ................ r4222 | bdbaddog | 2009-05-31 17:01:22 -0700 (Sun, 31 May 2009) | 8 lines Added definition of HOST_OS|ARCH TARGET_OS|ARCH (For win32 only right now) Migrated some logic to determine arch from Tools/MSCommon -> Platform/Win32.py Fixed lots of minor issues with string values for directories, architectures, and registry keys Switch to find VS installs by registry (was using VC install location previously) Added but commented out that HOST_{OS|ARCH} and TARGET_{OS|ARCH} will become reserved var names in Environment() Need to resolve issues that SCons is issuing messages when SCons itself sets these variables. ................
* Issue 2401: Fix usage of comparison with None, patch from Jared GrubbGreg Noel2009-05-031-6/+6
|
* use correct base class for filesystem factory functionsGreg Noel2009-04-221-1/+1
|
* Clean up Environment code as mentioned in issue 2371Greg Noel2009-04-101-6/+0
|
* Fix case-sensitive handling when a scanner returns None as a suffix.Steven Knight2009-02-191-2/+2
|
* Issue 1193: Make suffix-matching for scanersSteven Knight2009-02-181-0/+4
| | | | case-insensitive on Windows. (Stanislav Baranov)
* Add emacs and vim editing settings to the bottom of *.py files.Steven Knight2009-02-091-0/+6
|
* 2to3 sez, "rewrite map() as loop"Greg Noel2009-02-081-11/+7
|
* Issue 1086: add support for generic batch build actions, andSteven Knight2009-01-091-7/+10
| | | | | | | | | | | | | | | | | | | | | | specific support for batched compilation for Microsoft Visual C/C++. Merged revisions 3819-3851,3854-3869,3871-3877,3880 via svnmerge from http://scons.tigris.org/svn/scons/branches/sgk_batch ........ r3820 | stevenknight | 2008-12-09 23:59:14 -0800 (Tue, 09 Dec 2008) | 6 lines Issue 1086: Batch compilation support: * $MSVC_BATCH to control Visual C/C++ batch compilation. * New $CHANGED_SOURCES, $CHANGED_TARGETS, $UNCHANGED_SOURCES and $UNCHANGED_TARGETS construction variables. * New Action(batch_key=, targets=) keyword arguments. ........ r3880 | stevenknight | 2009-01-07 20:50:41 -0800 (Wed, 07 Jan 2009) | 3 lines Use UniqueList objects to collect the all_children(), all_prerequisites() and all_sources() lists instead of calling uniquer_hashables() by hand. ........
* Have the {Append,Prepend}ENVPath() canonicalization make sure there's theSteven Knight2009-01-011-1/+1
| | | | string is non-null before checking whether the first character is '#'.
* Fix bug 2193: http://scons.tigris.org/issues/show_bug.cgi?id=2193Gary Oberbrunner2009-01-011-2/+13
| | | | | | | | | | Ap/PrependENVPath now accept paths starting with # and Dirs. Added optional _canonicalize arg to SCons.Util.Ap/PrependPath, and pass an implementation of that into them from Environment.Ap/PrependENVPath. Can't just always do the canonicalization in SCons.Util because there is no env there to get the fs to convert a #-prefixed path to the proper path.
* Issue 2255: Handle scanning of UTF-8 and UTF-16 files. (Greg Spencer)Steven Knight2008-12-121-1/+1
|
* Make ${,UN}CHANGED_{SOURCES,TARGETS} into future reserved constructionSteven Knight2008-12-071-9/+27
| | | | variable names, with an appropriate warning.
* Fix issue #3: make Append/PrependUnique uniquify the appended/prepended list ↵Gary Oberbrunner2008-12-051-0/+22
| | | | first.
* Issue 2238: Add a __contains__() method to support the "val in env"Steven Knight2008-11-091-0/+7
| | | | statement for construction environments.
* Issue 2228: discard stderr by using os.devnullGreg Noel2008-11-091-1/+2
|
* implement delete_existing for AppendUnique and PrependUnique. Finishes #2091.Gary Oberbrunner2008-10-021-8/+30
|
* Change FUTURE markers to TODO(1.5) so we are all using the same style.Greg Noel2008-09-251-1/+1
|
* make references to subprocess.Popen synchronousGreg Noel2008-09-221-7/+2
|
* Fix issue #2091 by adding new delete_existing flags to Util.{Ap,Pre}pendPath ↵Gary Oberbrunner2008-09-181-8/+39
| | | | and env.{Ap,Pre}pendENVPath.
* Issue 1693: make the subdirectory in which the .sconsign file willSteven Knight2008-09-141-0/+5
| | | | appear (if it doesn't already exist. (Damyan Pepper, Jim Randall)
* Revert the previous change, I overlooked some regression test failures.Steven Knight2008-09-131-4/+0
|