Lines Matching full:env

47 def quietCommandLines(env):  argument
50 env['ASCOMSTR'] = " Assembling $SOURCE ..."
51 env['ASPPCOMSTR'] = " Assembling $SOURCE ..."
52 env['CCCOMSTR'] = " Compiling $SOURCE ..."
53 env['SHCCCOMSTR'] = " Compiling $SOURCE ..."
54 env['CXXCOMSTR'] = " Compiling $SOURCE ..."
55 env['SHCXXCOMSTR'] = " Compiling $SOURCE ..."
56 env['ARCOMSTR'] = " Archiving $TARGET ..."
57 env['RANLIBCOMSTR'] = " Indexing $TARGET ..."
58 env['LINKCOMSTR'] = " Linking $TARGET ..."
59 env['SHLINKCOMSTR'] = " Linking $TARGET ..."
60 env['LDMODULECOMSTR'] = " Linking $TARGET ..."
61 env['SWIGCOMSTR'] = " Generating $TARGET ..."
62 env['LEXCOMSTR'] = " Generating $TARGET ..."
63 env['YACCCOMSTR'] = " Generating $TARGET ..."
64 env['CODEGENCOMSTR'] = " Generating $TARGET ..."
65 env['INSTALLSTR'] = " Installing $TARGET ..."
68 def createConvenienceLibBuilder(env): argument
78 convenience_lib = env['BUILDERS']['ConvenienceLibrary']
81 if env.Detect('ranlib'):
91 env['BUILDERS']['ConvenienceLibrary'] = convenience_lib
100 def python_scan(node, env, path): argument
110 results.append(env.File(file))
114 results.append(env.File(file))
121 def code_generate(env, script, target, source, command): argument
131 script_src = env.File(script).srcnode()
136 code = env.Command(target, source, action)
142 deps += script_src.get_implicit_deps(env, python_scanner, path)
143 env.Depends(code, deps)
149 pyc = env.File(str(dep) + 'c')
150 env.SideEffect(pyc, code)
155 def createCodeGenerateMethod(env): argument
156 env.Append(SCANNERS = python_scanner)
157 env.AddMethod(code_generate, 'CodeGenerate')
160 def _pkg_check_modules(env, name, modules): argument
163 env['HAVE_' + name] = False
166 env[name.lower()] = False
168 if env['platform'] == 'windows':
171 if not env.Detect('pkg-config'):
183 flags = env.ParseFlags('!pkg-config --cflags --libs ' + ' '.join(modules))
189 env[prefix + flag_name] = flag_value
191 env['HAVE_' + name] = True
193 def pkg_check_modules(env, name, modules): argument
196 _pkg_check_modules(env, name, modules)
197 result = env['HAVE_' + name]
201 env[name.lower()] = result
204 def pkg_use_modules(env, names): argument
208 names = env.Flatten(names)
213 if not 'HAVE_' + name in env:
216 if not env['HAVE_' + name]:
220 for flag_name, flag_value in env.Dictionary().iteritems():
226 env.MergeFlags(flags)
229 def createPkgConfigMethods(env): argument
230 env.AddMethod(pkg_check_modules, 'PkgCheckModules')
231 env.AddMethod(pkg_use_modules, 'PkgUseModules')
234 def parse_source_list(env, filename, names=None): argument
237 src = env.File(filename).srcnode()
239 cur_srcdir = env.Dir('.').srcnode().abspath
240 top_srcdir = env.Dir('#').abspath
241 top_builddir = os.path.join(top_srcdir, env['build_dir'])
287 def createParseSourceListMethod(env): argument
288 env.AddMethod(parse_source_list, 'ParseSourceList')
291 def generate(env): argument
294 verbose = env.get('verbose', False) or not env.get('quiet', True)
296 quietCommandLines(env)
299 createConvenienceLibBuilder(env)
300 createCodeGenerateMethod(env)
301 createPkgConfigMethods(env)
302 createParseSourceListMethod(env)
305 #print env.Dump()
308 def exists(env): argument