Home | History | Annotate | Download | only in site_scons

Lines Matching refs:env

13 def _GenericLibrary(env, static, **kwargs):
18 env: The environment object.
25 return ExtendComponent(env, 'ComponentLibrary', **params)
28 def Library(env, **kwargs):
33 env: The current environment.
39 return _GenericLibrary(env, True, **kwargs)
42 def DynamicLibrary(env, **kwargs):
47 env: The environment object.
53 return _GenericLibrary(env, False, **kwargs)
56 def Object(env, **kwargs):
57 return ExtendComponent(env, 'ComponentObject', **kwargs)
60 def Unittest(env, **kwargs):
65 env: The current environment.
96 return ExtendComponent(env, 'ComponentTestProgram', **params)
99 def App(env, **kwargs):
104 env: The current environment.
126 return ExtendComponent(env, 'ComponentProgram', **params)
128 def WiX(env, **kwargs):
131 env: The current environment.
137 return ExtendComponent(env, 'WiX', **kwargs)
139 def Repository(env, at, path):
145 env: The current environment object.
149 env.Dir(at).addRepository(env.Dir(path))
187 def AddMediaLibs(env, **kwargs):
189 if env.Bit('windows'):
190 if env.get('COVERAGE_ENABLED'):
194 elif env.Bit('mac'):
196 elif env.Bit('linux'):
206 if env.Bit('windows'):
207 if env.Bit('debug'):
211 elif env.Bit('mac'):
213 elif env.Bit('linux'):
249 if env.Bit('windows'):
257 if env.Bit('mac'):
310 def MergeAndFilterByPlatform(env, params):
319 env: The hammer environment which knows which platforms are active
331 platforms[x] for x in iter(platforms) if env.Bit(x)
334 platforms[x] for x in iter(platforms) if not env.Bit(x)
362 def Allow64BitCompile(env):
363 return (env.Bit('linux') and env.Bit('platform_arch_64bit')
366 def MergeSettingsFromLibraryDependencies(env, params):
374 env,
378 def ExtendComponent(env, component, **kwargs):
386 env: The hammer environment with which to build the target
396 env = env.Clone()
399 params = MergeAndFilterByPlatform(env, kwargs)
409 params = MergeSettingsFromLibraryDependencies(env, params)
412 signed = env.Bit('windows') and GetEntry(params, 'signed')
418 params = AddMediaLibs(env, **params)
422 if not srcs or not hasattr(env, component):
428 env.Depends(name, dependencies)
440 if env.Bit('windows'):
454 env.Append(**{var : values})
458 env.Prepend(**{var : values})
461 if Allow64BitCompile(env):
462 env['SHLINKCOM'] = ('$SHLINK -o $TARGET -m32 $SHLINKFLAGS $SOURCES '
464 env['LINKCOM'] = ('$LINK -o $TARGET -m32 $LINKFLAGS $SOURCES '
469 env.Replace(**{field : value})
472 builder = getattr(env, component)
477 if Allow64BitCompile(env) and GetEntry(params, 'also64bit'):
478 env_64bit = env.Clone()
510 signed_node = env.SignedBinary(
514 env.Alias('signed_binaries', signed_node)