Separate HostOrDevice out of Arch

Take HostOrDevice out of Arch, and put it into AndroidModuleBase
instead.  Also separate out the host vs. device mutator from
ArchMutator.  This will make it possible for genrules to depend
on a host tool, regardless of which host arches it is compiled
for.

Change-Id: I22bbfd28b65c3eebdfa101a712f90dd615148dc8
This commit is contained in:
Colin Cross
2015-05-07 14:11:29 -07:00
committed by Colin Cross
parent af11df1538
commit d3ba039f74
4 changed files with 88 additions and 47 deletions

View File

@@ -75,6 +75,7 @@ func main() {
ctx.RegisterModuleType("android_app", java.AndroidAppFactory)
// Mutators
ctx.RegisterEarlyMutator("host_or_device", common.HostOrDeviceMutator)
ctx.RegisterEarlyMutator("arch", common.ArchMutator)
ctx.RegisterEarlyMutator("link", cc.LinkageMutator)
ctx.RegisterEarlyMutator("test_per_src", cc.TestPerSrcMutator)