OLD | NEW |
1 """SCons.Tool.dmd | 1 """SCons.Tool.dmd |
2 | 2 |
3 Tool-specific initialization for the Digital Mars D compiler. | 3 Tool-specific initialization for the Digital Mars D compiler. |
4 (http://digitalmars.com/d) | 4 (http://digitalmars.com/d) |
5 | 5 |
6 Coded by Andy Friesen (andy@ikagames.com) | 6 Coded by Andy Friesen (andy@ikagames.com) |
7 15 November 2003 | 7 15 November 2003 |
8 | 8 |
9 There are a number of problems with this script at this point in time. | 9 There are a number of problems with this script at this point in time. |
10 The one that irritates me the most is the Windows linker setup. The D | 10 The one that irritates me the most is the Windows linker setup. The D |
(...skipping 14 matching lines...) Expand all Loading... |
25 DLINK - Name of the linker to use. Defaults to dmd or gdmd. | 25 DLINK - Name of the linker to use. Defaults to dmd or gdmd. |
26 DLINKFLAGS - List of linker flags. | 26 DLINKFLAGS - List of linker flags. |
27 | 27 |
28 Lib tool variables: | 28 Lib tool variables: |
29 DLIB - Name of the lib tool to use. Defaults to lib. | 29 DLIB - Name of the lib tool to use. Defaults to lib. |
30 DLIBFLAGS - List of flags to pass to the lib tool. | 30 DLIBFLAGS - List of flags to pass to the lib tool. |
31 LIBS - Same as for the linker. (libraries to pull into the .lib) | 31 LIBS - Same as for the linker. (libraries to pull into the .lib) |
32 """ | 32 """ |
33 | 33 |
34 # | 34 # |
35 # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The SCons Foundat
ion | 35 # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 The SCons F
oundation |
36 # | 36 # |
37 # Permission is hereby granted, free of charge, to any person obtaining | 37 # Permission is hereby granted, free of charge, to any person obtaining |
38 # a copy of this software and associated documentation files (the | 38 # a copy of this software and associated documentation files (the |
39 # "Software"), to deal in the Software without restriction, including | 39 # "Software"), to deal in the Software without restriction, including |
40 # without limitation the rights to use, copy, modify, merge, publish, | 40 # without limitation the rights to use, copy, modify, merge, publish, |
41 # distribute, sublicense, and/or sell copies of the Software, and to | 41 # distribute, sublicense, and/or sell copies of the Software, and to |
42 # permit persons to whom the Software is furnished to do so, subject to | 42 # permit persons to whom the Software is furnished to do so, subject to |
43 # the following conditions: | 43 # the following conditions: |
44 # | 44 # |
45 # The above copyright notice and this permission notice shall be included | 45 # The above copyright notice and this permission notice shall be included |
46 # in all copies or substantial portions of the Software. | 46 # in all copies or substantial portions of the Software. |
47 # | 47 # |
48 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY | 48 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY |
49 # KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE | 49 # KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE |
50 # WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | 50 # WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
51 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | 51 # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE |
52 # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | 52 # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION |
53 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | 53 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
54 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 54 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
55 # | 55 # |
56 | 56 |
57 __revision__ = "src/engine/SCons/Tool/dmd.py 3842 2008/12/20 22:59:52 scons" | 57 __revision__ = "src/engine/SCons/Tool/dmd.py 3897 2009/01/13 06:45:54 scons" |
58 | 58 |
59 import os | 59 import os |
60 import string | 60 import string |
61 | 61 |
62 import SCons.Action | 62 import SCons.Action |
63 import SCons.Builder | 63 import SCons.Builder |
64 import SCons.Defaults | 64 import SCons.Defaults |
65 import SCons.Scanner.D | 65 import SCons.Scanner.D |
66 import SCons.Tool | 66 import SCons.Tool |
67 | 67 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 env.Append(LIBS = ['pthread']) | 209 env.Append(LIBS = ['pthread']) |
210 if 'm' not in libs: | 210 if 'm' not in libs: |
211 env.Append(LIBS = ['m']) | 211 env.Append(LIBS = ['m']) |
212 return defaultLinker | 212 return defaultLinker |
213 env['SMART_LINKCOM'] = smart_link[linkcom] = _smartLink | 213 env['SMART_LINKCOM'] = smart_link[linkcom] = _smartLink |
214 | 214 |
215 env['LINKCOM'] = '$SMART_LINKCOM ' | 215 env['LINKCOM'] = '$SMART_LINKCOM ' |
216 | 216 |
217 def exists(env): | 217 def exists(env): |
218 return env.Detect(['dmd', 'gdmd']) | 218 return env.Detect(['dmd', 'gdmd']) |
OLD | NEW |