• Home
  • Raw
  • Download

Lines Matching refs:env

53 def find(env):  argument
54 if env['machine'] == 'x86_64':
60 if env.WhereIs(prefix + 'gcc') or SCons.Util.WhereIs(prefix + 'gcc'):
65 def shlib_generator(target, source, env, for_signature): argument
68 dll = env.FindIxes(target, 'SHLIBPREFIX', 'SHLIBSUFFIX')
73 implib = env.FindIxes(target, 'LIBPREFIX', 'LIBSUFFIX')
76 def_target = env.FindIxes(target, 'WIN32DEFPREFIX', 'WIN32DEFSUFFIX')
81 def shlib_emitter(target, source, env): argument
82 dll = env.FindIxes(target, 'SHLIBPREFIX', 'SHLIBSUFFIX')
83 no_import_lib = env.get('no_import_lib', 0)
86 …or("A shared library should have exactly one target with the suffix: %s" % env.subst("$SHLIBSUFFIX…
89 not env.FindIxes(target, 'LIBPREFIX', 'LIBSUFFIX'):
92 target.append(env.ReplaceIxes(dll,
100 def_source = env.FindIxes(source, 'WIN32DEFPREFIX', 'WIN32DEFSUFFIX')
101 def_target = env.FindIxes(target, 'WIN32DEFPREFIX', 'WIN32DEFSUFFIX')
103 target.append(env.ReplaceIxes(dll,
120 def generate(env): argument
121 mingw_prefix = find(env)
124 …dir = os.path.dirname(env.WhereIs(mingw_prefix + 'gcc') or SCons.Util.WhereIs(mingw_prefix + 'gcc'…
127 path = env['ENV'].get('PATH', [])
133 env['ENV']['PATH'] = str.join(os.pathsep, [dir] + path)
138 SCons.Tool.Tool(tool)(env)
141 env['CC'] = mingw_prefix + 'gcc'
142 env['SHCCFLAGS'] = SCons.Util.CLVar('$CCFLAGS')
143 env['CXX'] = mingw_prefix + 'g++'
144 env['SHCXXFLAGS'] = SCons.Util.CLVar('$CXXFLAGS')
145 env['SHLINKFLAGS'] = SCons.Util.CLVar('$LINKFLAGS -shared')
146 env['SHLINKCOM'] = shlib_action
147 env.Append(SHLIBEMITTER = [shlib_emitter])
148 env['LINK'] = mingw_prefix + 'g++'
149 env['AR'] = mingw_prefix + 'ar'
150 env['RANLIB'] = mingw_prefix + 'ranlib'
151 env['LINK'] = mingw_prefix + 'g++'
152 env['AS'] = mingw_prefix + 'as'
153 env['WIN32DEFPREFIX'] = ''
154 env['WIN32DEFSUFFIX'] = '.def'
155 env['SHOBJSUFFIX'] = '.o'
156 env['STATIC_AND_SHARED_OBJECTS_ARE_THE_SAME'] = 1
158 env['RC'] = mingw_prefix + 'windres'
159 env['RCFLAGS'] = SCons.Util.CLVar('')
160env['RCCOM'] = '$RC $_CPPDEFFLAGS $_CPPINCFLAGS ${INCPREFIX}${SOURCE.dir} $RCFLAGS -i $SOURCE -o $…
161 env['BUILDERS']['RES'] = res_builder
164 env['OBJPREFIX'] = ''
165 env['OBJSUFFIX'] = '.o'
166 env['SHOBJPREFIX'] = '$OBJPREFIX'
167 env['SHOBJSUFFIX'] = '$OBJSUFFIX'
168 env['PROGPREFIX'] = ''
169 env['PROGSUFFIX'] = '.exe'
170 env['LIBPREFIX'] = 'lib'
171 env['LIBSUFFIX'] = '.a'
172 env['SHLIBPREFIX'] = ''
173 env['SHLIBSUFFIX'] = '.dll'
174 env['LIBPREFIXES'] = [ 'lib', '' ]
175 env['LIBSUFFIXES'] = [ '.a', '.lib' ]
177 def exists(env): argument
178 return find(env)