• Home
  • Raw
  • Download

Lines Matching full:env

53 def quietCommandLines(env):  argument
56 env['ASCOMSTR'] = " Assembling $SOURCE ..."
57 env['ASPPCOMSTR'] = " Assembling $SOURCE ..."
58 env['CCCOMSTR'] = " Compiling $SOURCE ..."
59 env['SHCCCOMSTR'] = " Compiling $SOURCE ..."
60 env['CXXCOMSTR'] = " Compiling $SOURCE ..."
61 env['SHCXXCOMSTR'] = " Compiling $SOURCE ..."
62 env['ARCOMSTR'] = " Archiving $TARGET ..."
63 env['RANLIBCOMSTR'] = " Indexing $TARGET ..."
64 env['LINKCOMSTR'] = " Linking $TARGET ..."
65 env['SHLINKCOMSTR'] = " Linking $TARGET ..."
66 env['LDMODULECOMSTR'] = " Linking $TARGET ..."
67 env['SWIGCOMSTR'] = " Generating $TARGET ..."
68 env['LEXCOMSTR'] = " Generating $TARGET ..."
69 env['YACCCOMSTR'] = " Generating $TARGET ..."
70 env['CODEGENCOMSTR'] = " Generating $TARGET ..."
71 env['INSTALLSTR'] = " Installing $TARGET ..."
74 def createConvenienceLibBuilder(env): argument
84 convenience_lib = env['BUILDERS']['ConvenienceLibrary']
87 if env.Detect('ranlib'):
97 env['BUILDERS']['ConvenienceLibrary'] = convenience_lib
102 def python_scan(node, env, path): argument
110 GLAPI = env.Dir('#src/mapi/glapi/gen').abspath
120 results.append(env.File(mod.__file__))
126 def code_generate(env, script, target, source, command): argument
136 script_src = env.File(script).srcnode()
141 code = env.Command(target, source, action)
147 deps += script_src.get_implicit_deps(env, python_scanner, path)
148 env.Depends(code, deps)
154 pyc = env.File(str(dep) + 'c')
155 env.SideEffect(pyc, code)
160 def createCodeGenerateMethod(env): argument
161 env.Append(SCANNERS = python_scanner)
162 env.AddMethod(code_generate, 'CodeGenerate')
165 def _pkg_check_modules(env, name, modules): argument
168 env['HAVE_' + name] = False
171 env[name.lower()] = False
173 if env['platform'] == 'windows':
176 if not env.Detect('pkg-config'):
188 flags = env.ParseFlags('!pkg-config --cflags --libs ' + ' '.join(modules))
194 env[prefix + flag_name] = flag_value
196 env['HAVE_' + name] = True
198 def pkg_check_modules(env, name, modules): argument
201 _pkg_check_modules(env, name, modules)
202 result = env['HAVE_' + name]
206 env[name.lower()] = result
209 def pkg_use_modules(env, names): argument
213 names = env.Flatten(names)
218 if not 'HAVE_' + name in env:
221 if not env['HAVE_' + name]:
225 for flag_name, flag_value in env.Dictionary().items():
231 env.MergeFlags(flags)
234 def createPkgConfigMethods(env): argument
235 env.AddMethod(pkg_check_modules, 'PkgCheckModules')
236 env.AddMethod(pkg_use_modules, 'PkgUseModules')
239 def parse_source_list(env, filename, names=None): argument
242 src = env.File(filename).srcnode()
244 cur_srcdir = env.Dir('.').srcnode().abspath
245 top_srcdir = env.Dir('#').abspath
246 top_builddir = os.path.join(top_srcdir, env['build_dir'])
300 def createParseSourceListMethod(env): argument
301 env.AddMethod(parse_source_list, 'ParseSourceList')
304 def generate(env): argument
307 verbose = env.get('verbose', False) or not env.get('quiet', True)
309 quietCommandLines(env)
312 createConvenienceLibBuilder(env)
313 createCodeGenerateMethod(env)
314 createPkgConfigMethods(env)
315 createParseSourceListMethod(env)
318 #print env.Dump()
321 def exists(env): argument