• Home
  • Raw
  • Download

Lines Matching full:arch

103     class Arch():  class in GnParser.Target
158 self.arch = {'common': self.Arch()}
163 # Properties to forward access to common arch.
167 return self.arch['common'].sources
171 self.arch['common'].sources = val
175 return self.arch['common'].inputs
179 self.arch['common'].inputs = val
183 return self.arch['common'].outputs
187 self.arch['common'].outputs = val
191 return self.arch['common'].args
195 self.arch['common'].args = val
199 return self.arch['common'].response_file_contents
203 self.arch['common'].response_file_contents = val
207 return self.arch['common'].cflags
211 return self.arch['common'].defines
215 return self.arch['common'].deps
219 return self.arch['common'].include_dirs
223 return self.arch['common'].ldflags
227 return self.arch['common'].source_set_deps
230 return 'host' in self.arch
233 return any([name.startswith('android') for name in self.arch.keys()])
253 def update(self, other, arch): argument
260 getattr(self.arch[arch], key_in_arch).update(getattr(other.arch[arch], key_in_arch, []))
263 """ Returns a dict of archs without the common arch """
264 return {arch: val for arch, val in self.arch.items() if arch != 'common'}
267 # Target contains the intersection of arch-dependent properties
268 getattr(self, key).update(set.intersection(*[getattr(arch, key) for arch in
271 # Deduplicate arch-dependent properties
272 for arch in self.get_archs().values():
273 getattr(arch, key).difference_update(getattr(self, key))
276 # Only when all the arch has the same non empty value, move the value to the target common
278 if val and all([val == getattr(arch, key) for arch in self.get_archs().values()]):
291 """Move common properties out of arch-dependent subobjects to Target object.
299 if len(self.arch) == 1:
372 arch = self._get_arch(desc['toolchain'])
385 if arch not in target.arch:
386 target.arch[arch] = GnParser.Target.Arch()
406 target.arch[arch].sources.update(proto_desc.get('sources', []))
407 assert (all(x.endswith('.proto') for x in target.arch[arch].sources))
409 target.arch[arch].sources.update(desc.get('sources', []))
411 target.arch[arch].sources.update(desc.get('sources', []))
423 target.arch[arch].inputs.update(desc.get('inputs', []))
424 target.arch[arch].sources.update(desc.get('sources', []))
426 target.arch[arch].outputs.update(outs)
430 target.arch[arch].args = desc['args']
431 target.arch[arch].response_file_contents = self._get_response_file_contents(desc)
444 target.arch[arch].cflags.update(desc.get('cflags', []) + desc.get('cflags_cc', []))
446 target.arch[arch].ldflags.update(desc.get('ldflags', []))
447 target.arch[arch].defines.update(desc.get('defines', []))
448 target.arch[arch].include_dirs.update(desc.get('include_dirs', []))
450 if "-frtti" in target.arch[arch].cflags:
462 target.update(dep, arch) # Bubble up groups's cflags/ldflags etc.
465 target.arch[arch].deps.add(dep.name)
467 target.arch[arch].deps.add(dep.name)
479 target.arch[arch].transitive_static_libs_deps.add(dep.name)
481 if arch in dep.arch:
482 target.arch[arch].transitive_static_libs_deps.update(
483 dep.arch[arch].transitive_static_libs_deps)
484 target.arch[arch].deps.update(target.arch[arch].transitive_static_libs_deps)
507 self.java_sources[java_group_name].update(dep.arch[arch].sources)
509 _extract_includes_from_aidl_args(dep.arch[arch].args))