• Home
  • Raw
  • Download

Lines Matching refs:env

58 def quietCommandLines(env):  argument
61 env['ASCOMSTR'] = " Assembling $SOURCE ..."
62 env['ASPPCOMSTR'] = " Assembling $SOURCE ..."
63 env['CCCOMSTR'] = " Compiling $SOURCE ..."
64 env['SHCCCOMSTR'] = " Compiling $SOURCE ..."
65 env['CXXCOMSTR'] = " Compiling $SOURCE ..."
66 env['SHCXXCOMSTR'] = " Compiling $SOURCE ..."
67 env['ARCOMSTR'] = " Archiving $TARGET ..."
68 env['RANLIBCOMSTR'] = " Indexing $TARGET ..."
69 env['LINKCOMSTR'] = " Linking $TARGET ..."
70 env['SHLINKCOMSTR'] = " Linking $TARGET ..."
71 env['LDMODULECOMSTR'] = " Linking $TARGET ..."
72 env['SWIGCOMSTR'] = " Generating $TARGET ..."
73 env['LEXCOMSTR'] = " Generating $TARGET ..."
74 env['YACCCOMSTR'] = " Generating $TARGET ..."
75 env['CODEGENCOMSTR'] = " Generating $TARGET ..."
76 env['INSTALLSTR'] = " Installing $TARGET ..."
79 def createConvenienceLibBuilder(env): argument
89 convenience_lib = env['BUILDERS']['ConvenienceLibrary']
92 if env.Detect('ranlib'):
102 env['BUILDERS']['ConvenienceLibrary'] = convenience_lib
107 def python_scan(node, env, path): argument
115 GLAPI = env.Dir('#src/mapi/glapi/gen').abspath
125 results.append(env.File(mod.__file__))
131 def code_generate(env, script, target, source, command): argument
141 script_src = env.File(script).srcnode()
146 code = env.Command(target, source, action)
152 deps += script_src.get_implicit_deps(env, python_scanner, path)
153 env.Depends(code, deps)
159 pyc = env.File(str(dep) + 'c')
160 env.SideEffect(pyc, code)
165 def createCodeGenerateMethod(env): argument
166 env.Append(SCANNERS = python_scanner)
167 env.AddMethod(code_generate, 'CodeGenerate')
170 def _pkg_check_modules(env, name, modules): argument
173 env['HAVE_' + name] = False
176 env[name.lower()] = False
178 if env['platform'] == 'windows':
181 if not env.Detect('pkg-config'):
193 flags = env.ParseFlags('!pkg-config --cflags --libs ' + ' '.join(modules))
199 env[prefix + flag_name] = flag_value
201 env['HAVE_' + name] = True
203 def pkg_check_modules(env, name, modules): argument
206 _pkg_check_modules(env, name, modules)
207 result = env['HAVE_' + name]
211 env[name.lower()] = result
214 def pkg_use_modules(env, names): argument
218 names = env.Flatten(names)
223 if not 'HAVE_' + name in env:
226 if not env['HAVE_' + name]:
230 for flag_name, flag_value in env.Dictionary().items():
236 env.MergeFlags(flags)
239 def createPkgConfigMethods(env): argument
240 env.AddMethod(pkg_check_modules, 'PkgCheckModules')
241 env.AddMethod(pkg_use_modules, 'PkgUseModules')
244 def parse_source_list(env, filename, names=None): argument
247 src = env.File(filename).srcnode()
249 cur_srcdir = env.Dir('.').srcnode().abspath
250 top_srcdir = env.Dir('#').abspath
251 top_builddir = os.path.join(top_srcdir, env['build_dir'])
309 def createParseSourceListMethod(env): argument
310 env.AddMethod(parse_source_list, 'ParseSourceList')
313 def generate(env): argument
316 verbose = env.get('verbose', False) or not env.get('quiet', True)
318 quietCommandLines(env)
321 createConvenienceLibBuilder(env)
322 createCodeGenerateMethod(env)
323 createPkgConfigMethods(env)
324 createParseSourceListMethod(env)
330 def exists(env): argument