Lines Matching full:scons
1 """SCons.Tool.gcc
6 It will usually be imported through the generic SCons.Tool.Tool()
9 See also http://www.scons.org/wiki/CrossCompilingMingw
13 # Copyright (c) 2001, 2002, 2003, 2004 The SCons Foundation
39 import SCons.Action
40 import SCons.Builder
41 import SCons.Tool
42 import SCons.Util
46 prefixes32 = SCons.Util.Split("""
49 prefixes64 = SCons.Util.Split("""
59 # First search in the SCons path and then the OS path:
60 if env.WhereIs(prefix + 'gcc') or SCons.Util.WhereIs(prefix + 'gcc'):
66 cmd = SCons.Util.CLVar(['$SHLINK', '$SHLINKFLAGS'])
86 …raise SCons.Errors.UserError("A shared library should have exactly one target with the suffix: %s"…
110 shlib_action = SCons.Action.Action(shlib_generator, '$SHLINKCOMSTR', generator=1)
112 res_action = SCons.Action.Action('$RCCOM', '$RCCOMSTR')
114 res_builder = SCons.Builder.Builder(action=res_action, suffix='.o',
115 source_scanner=SCons.Tool.SourceFileScanner)
116 SCons.Tool.SourceFileScanner.add_scanner('.rc', SCons.Defaults.CScan)
124 …dir = os.path.dirname(env.WhereIs(mingw_prefix + 'gcc') or SCons.Util.WhereIs(mingw_prefix + 'gcc'…
130 if SCons.Util.is_String(path):
138 SCons.Tool.Tool(tool)(env)
142 env['SHCCFLAGS'] = SCons.Util.CLVar('$CCFLAGS')
144 env['SHCXXFLAGS'] = SCons.Util.CLVar('$CXXFLAGS')
145 env['SHLINKFLAGS'] = SCons.Util.CLVar('$LINKFLAGS -shared')
159 env['RCFLAGS'] = SCons.Util.CLVar('')