| OLD | NEW |
| 1 """SCons.Platform | 1 """SCons.Platform |
| 2 | 2 |
| 3 SCons platform selection. | 3 SCons platform selection. |
| 4 | 4 |
| 5 This looks for modules that define a callable object that can modify a | 5 This looks for modules that define a callable object that can modify a |
| 6 construction environment as appropriate for a given platform. | 6 construction environment as appropriate for a given platform. |
| 7 | 7 |
| 8 Note that we take a more simplistic view of "platform" than Python does. | 8 Note that we take a more simplistic view of "platform" than Python does. |
| 9 We're looking for a single string that determines a set of | 9 We're looking for a single string that determines a set of |
| 10 tool-independent variables with which to initialize a construction | 10 tool-independent variables with which to initialize a construction |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 # | 35 # |
| 36 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY | 36 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY |
| 37 # KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE | 37 # KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE |
| 38 # WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | 38 # WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 39 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | 39 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE |
| 40 # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | 40 # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION |
| 41 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | 41 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
| 42 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 42 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 43 # | 43 # |
| 44 | 44 |
| 45 __revision__ = "src/engine/SCons/Platform/__init__.py 3603 2008/10/10 05:46:45 s
cons" | 45 __revision__ = "src/engine/SCons/Platform/__init__.py 3842 2008/12/20 22:59:52 s
cons" |
| 46 | 46 |
| 47 import imp | 47 import imp |
| 48 import os | 48 import os |
| 49 import string | 49 import string |
| 50 import sys | 50 import sys |
| 51 import tempfile | 51 import tempfile |
| 52 | 52 |
| 53 import SCons.Errors | 53 import SCons.Errors |
| 54 import SCons.Tool | 54 import SCons.Tool |
| 55 | 55 |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 str(cmd[0]) + " " + string.join(args," ")) | 207 str(cmd[0]) + " " + string.join(args," ")) |
| 208 return [ cmd[0], prefix + native_tmp + '\n' + rm, native_tmp ] | 208 return [ cmd[0], prefix + native_tmp + '\n' + rm, native_tmp ] |
| 209 | 209 |
| 210 def Platform(name = platform_default()): | 210 def Platform(name = platform_default()): |
| 211 """Select a canned Platform specification. | 211 """Select a canned Platform specification. |
| 212 """ | 212 """ |
| 213 module = platform_module(name) | 213 module = platform_module(name) |
| 214 spec = PlatformSpec(name) | 214 spec = PlatformSpec(name) |
| 215 spec.__call__ = module.generate | 215 spec.__call__ = module.generate |
| 216 return spec | 216 return spec |
| OLD | NEW |