OLD | NEW |
1 """SCons.Tool.PharLapCommon | 1 """SCons.Tool.PharLapCommon |
2 | 2 |
3 This module contains common code used by all Tools for the | 3 This module contains common code used by all Tools for the |
4 Phar Lap ETS tool chain. Right now, this is linkloc and | 4 Phar Lap ETS tool chain. Right now, this is linkloc and |
5 386asm. | 5 386asm. |
6 | 6 |
7 """ | 7 """ |
8 | 8 |
9 # | 9 # |
10 # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The SCons Foundat
ion | 10 # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 The SCons F
oundation |
11 # | 11 # |
12 # Permission is hereby granted, free of charge, to any person obtaining | 12 # Permission is hereby granted, free of charge, to any person obtaining |
13 # a copy of this software and associated documentation files (the | 13 # a copy of this software and associated documentation files (the |
14 # "Software"), to deal in the Software without restriction, including | 14 # "Software"), to deal in the Software without restriction, including |
15 # without limitation the rights to use, copy, modify, merge, publish, | 15 # without limitation the rights to use, copy, modify, merge, publish, |
16 # distribute, sublicense, and/or sell copies of the Software, and to | 16 # distribute, sublicense, and/or sell copies of the Software, and to |
17 # permit persons to whom the Software is furnished to do so, subject to | 17 # permit persons to whom the Software is furnished to do so, subject to |
18 # the following conditions: | 18 # the following conditions: |
19 # | 19 # |
20 # The above copyright notice and this permission notice shall be included | 20 # The above copyright notice and this permission notice shall be included |
21 # in all copies or substantial portions of the Software. | 21 # in all copies or substantial portions of the Software. |
22 # | 22 # |
23 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY | 23 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY |
24 # KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE | 24 # KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE |
25 # WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | 25 # WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
26 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | 26 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE |
27 # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | 27 # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION |
28 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | 28 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
29 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 29 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
30 # | 30 # |
31 | 31 |
32 __revision__ = "src/engine/SCons/Tool/PharLapCommon.py 3842 2008/12/20 22:59:52
scons" | 32 __revision__ = "src/engine/SCons/Tool/PharLapCommon.py 3897 2009/01/13 06:45:54
scons" |
33 | 33 |
34 import os | 34 import os |
35 import os.path | 35 import os.path |
36 import SCons.Errors | 36 import SCons.Errors |
37 import SCons.Util | 37 import SCons.Util |
38 import re | 38 import re |
39 import string | 39 import string |
40 | 40 |
41 def getPharLapPath(): | 41 def getPharLapPath(): |
42 """Reads the registry to find the installed path of the Phar Lap ETS | 42 """Reads the registry to find the installed path of the Phar Lap ETS |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 addPathIfNotExists(env_dict, 'INCLUDE', | 123 addPathIfNotExists(env_dict, 'INCLUDE', |
124 os.path.join(ph_path, 'include')) | 124 os.path.join(ph_path, 'include')) |
125 addPathIfNotExists(env_dict, 'LIB', | 125 addPathIfNotExists(env_dict, 'LIB', |
126 os.path.join(ph_path, 'lib')) | 126 os.path.join(ph_path, 'lib')) |
127 addPathIfNotExists(env_dict, 'LIB', | 127 addPathIfNotExists(env_dict, 'LIB', |
128 os.path.join(ph_path, os.path.normpath('lib/vclib'))) | 128 os.path.join(ph_path, os.path.normpath('lib/vclib'))) |
129 | 129 |
130 env['PHARLAP_PATH'] = getPharLapPath() | 130 env['PHARLAP_PATH'] = getPharLapPath() |
131 env['PHARLAP_VERSION'] = str(getPharLapVersion()) | 131 env['PHARLAP_VERSION'] = str(getPharLapVersion()) |
132 | 132 |
OLD | NEW |