• Home
  • Raw
  • Download

Lines Matching full:arch

149     class Arch():  class in GnParser.Target
208 self.arch = {'common': self.Arch()}
228 # Properties to forward access to common arch.
232 return self.arch['common'].sources
236 self.arch['common'].sources = val
240 return self.arch['common'].inputs
244 self.arch['common'].inputs = val
248 return self.arch['common'].outputs
252 self.arch['common'].outputs = val
256 return self.arch['common'].args
260 self.arch['common'].args = val
264 return self.arch['common'].response_file_contents
268 self.arch['common'].response_file_contents = val
272 return self.arch['common'].cflags
276 return self.arch['common'].defines
280 return self.arch['common'].deps
284 self.arch['common'].deps = val
288 return self.arch['common'].rust_flags
292 self.arch['common'].rust_flags = val
296 return self.arch['common'].include_dirs
300 return self.arch['common'].ldflags
303 return 'host' in self.arch
306 return any([name.startswith('android') for name in self.arch.keys()])
327 def update(self, other, arch): argument
334 getattr(self.arch[arch],
335 key_in_arch).update(getattr(other.arch[arch], key_in_arch, []))
338 """ Returns a dict of archs without the common arch """
339 return {arch: val for arch, val in self.arch.items() if arch != 'common'}
342 # Target contains the intersection of arch-dependent properties
345 *[getattr(arch, key) for arch in self.get_archs().values()]))
347 # Deduplicate arch-dependent properties
348 for arch in self.get_archs().values():
349 getattr(arch, key).difference_update(getattr(self, key))
352 # Only when all the arch has the same non empty value, move the value to the target common
355 [val == getattr(arch, key) for arch in self.get_archs().values()]):
368 """Move common properties out of arch-dependent subobjects to Target object.
376 if len(self.arch) == 1:
454 arch, chromium_arch = self._get_arch(desc['toolchain'])
465 if arch not in target.arch:
466 target.arch[arch] = GnParser.Target.Arch()
494 target.arch[arch].sources.update(desc.get('sources', []))
495 target.arch[arch].inputs.update(desc.get('inputs', []))
497 target.arch[arch].sources.update(source
501 target.arch[arch].sources.update(source
505 target.arch[arch].sources.update(source
538 target.arch[arch].inputs.update(desc.get('inputs', []))
539 target.arch[arch].sources.update(desc.get('sources', []))
541 target.arch[arch].outputs.update(outs)
545 target.arch[arch].args = desc['args']
546 target.arch[
547 arch].response_file_contents = self._get_response_file_contents(desc)
563 target.arch[arch].sources.update(source
579 target.arch[arch].cflags.update(
582 target.arch[arch].ldflags.update(desc.get('ldflags', []))
583 target.arch[arch].defines.update(desc.get('defines', []))
584 target.arch[arch].include_dirs.update(desc.get('include_dirs', []))
588 target.arch[arch].rust_flags = desc.get("rustflags", list())
589 target.arch[arch].rust_flags.extend(
596 if "-frtti" in target.arch[arch].cflags:
612 target.update(dep, arch)
614 target.update(dep, arch) # Bubble up groups's cflags/ldflags etc.
618 target.arch[arch].deps.add(dep.name)
622 target.arch[arch].deps.add(dep.name)
624 target.arch[arch].deps.add(dep.name)
632 target.arch[arch].deps.add(dep.name)
638 target.arch[arch].transitive_static_libs_deps.add(dep.name)
640 if arch in dep.arch:
641 target.arch[arch].transitive_static_libs_deps.update(
642 dep.arch[arch].transitive_static_libs_deps)
643 target.arch[arch].deps.update(
644 target.arch[arch].transitive_static_libs_deps)