Lines Matching refs:env

66 def find(env):  argument
67 if env['machine'] == 'x86_64':
73 if env.WhereIs(prefix + 'gcc') or SCons.Util.WhereIs(prefix + 'gcc'):
78 def shlib_generator(target, source, env, for_signature): argument
81 dll = env.FindIxes(target, 'SHLIBPREFIX', 'SHLIBSUFFIX')
86 implib = env.FindIxes(target, 'LIBPREFIX', 'LIBSUFFIX')
89 def_target = env.FindIxes(target, 'WIN32DEFPREFIX', 'WIN32DEFSUFFIX')
94 def shlib_emitter(target, source, env): argument
95 dll = env.FindIxes(target, 'SHLIBPREFIX', 'SHLIBSUFFIX')
96 no_import_lib = env.get('no_import_lib', 0)
99 …r, "A shared library should have exactly one target with the suffix: %s" % env.subst("$SHLIBSUFFIX…
102 not env.FindIxes(target, 'LIBPREFIX', 'LIBSUFFIX'):
105 target.append(env.ReplaceIxes(dll,
113 def_source = env.FindIxes(source, 'WIN32DEFPREFIX', 'WIN32DEFSUFFIX')
114 def_target = env.FindIxes(target, 'WIN32DEFPREFIX', 'WIN32DEFSUFFIX')
116 target.append(env.ReplaceIxes(dll,
133 def compile_without_gstabs(env, sources, c_file): argument
148 env2 = env.Clone()
167 def generate(env): argument
168 mingw_prefix = find(env)
171 …dir = os.path.dirname(env.WhereIs(mingw_prefix + 'gcc') or SCons.Util.WhereIs(mingw_prefix + 'gcc'…
174 path = env['ENV'].get('PATH', [])
180 env['ENV']['PATH'] = string.join([dir] + path, os.pathsep)
185 SCons.Tool.Tool(tool)(env)
188 env['CC'] = mingw_prefix + 'gcc'
189 env['SHCCFLAGS'] = SCons.Util.CLVar('$CCFLAGS')
190 env['CXX'] = mingw_prefix + 'g++'
191 env['SHCXXFLAGS'] = SCons.Util.CLVar('$CXXFLAGS')
192 env['SHLINKFLAGS'] = SCons.Util.CLVar('$LINKFLAGS -shared')
193 env['SHLINKCOM'] = shlib_action
194 env.Append(SHLIBEMITTER = [shlib_emitter])
195 env['LINK'] = mingw_prefix + 'g++'
196 env['AR'] = mingw_prefix + 'ar'
197 env['RANLIB'] = mingw_prefix + 'ranlib'
198 env['LINK'] = mingw_prefix + 'g++'
199 env['AS'] = mingw_prefix + 'as'
200 env['WIN32DEFPREFIX'] = ''
201 env['WIN32DEFSUFFIX'] = '.def'
202 env['SHOBJSUFFIX'] = '.o'
203 env['STATIC_AND_SHARED_OBJECTS_ARE_THE_SAME'] = 1
205 env['RC'] = mingw_prefix + 'windres'
206 env['RCFLAGS'] = SCons.Util.CLVar('')
207env['RCCOM'] = '$RC $_CPPDEFFLAGS $_CPPINCFLAGS ${INCPREFIX}${SOURCE.dir} $RCFLAGS -i $SOURCE -o $…
208 env['BUILDERS']['RES'] = res_builder
211 env['OBJPREFIX'] = ''
212 env['OBJSUFFIX'] = '.o'
213 env['SHOBJPREFIX'] = '$OBJPREFIX'
214 env['SHOBJSUFFIX'] = '$OBJSUFFIX'
215 env['PROGPREFIX'] = ''
216 env['PROGSUFFIX'] = '.exe'
217 env['LIBPREFIX'] = 'lib'
218 env['LIBSUFFIX'] = '.a'
219 env['SHLIBPREFIX'] = ''
220 env['SHLIBSUFFIX'] = '.dll'
221 env['LIBPREFIXES'] = [ 'lib', '' ]
222 env['LIBSUFFIXES'] = [ '.a', '.lib' ]
227 if env['machine'] != 'x86_64':
228 env.AppendUnique(CCFLAGS = ['-gstabs'])
230 env.AddMethod(compile_without_gstabs, 'compile_without_gstabs')
232 def exists(env): argument
233 return find(env)