diff options
| author | 2016-10-12 14:38:15 -0700 | |
|---|---|---|
| committer | 2016-10-12 15:33:33 -0700 | |
| commit | 1e676bef94d84d8800a23b8ed897b24a157173cd (patch) | |
| tree | 8e22d852a05b65925a0b696dd54d528aae7aae3b /android/module.go | |
| parent | 798bfce9d00217716eaee2256878db625b9e6e2e (diff) | |
Control mutator order
Register mutators inside lambdas that are called in a defined order to
correctly order mutators before and after the arch and deps mutators.
Test: build.ninja identical
Change-Id: Iefe2a3515aee8570e76a6e76925db4cda0e9e822
Diffstat (limited to 'android/module.go')
| -rw-r--r-- | android/module.go | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/android/module.go b/android/module.go index d6eee4468..06f1fca7c 100644 --- a/android/module.go +++ b/android/module.go @@ -24,15 +24,6 @@ import ( "github.com/google/blueprint" ) -func init() { - RegisterTopDownMutator("load_hooks", loadHookMutator).Parallel() - RegisterBottomUpMutator("defaults_deps", defaultsDepsMutator).Parallel() - RegisterTopDownMutator("defaults", defaultsMutator).Parallel() - - RegisterBottomUpMutator("arch", ArchMutator).Parallel() - RegisterTopDownMutator("arch_hooks", archHookMutator).Parallel() -} - var ( DeviceSharedLibrary = "shared_library" DeviceStaticLibrary = "static_library" @@ -100,6 +91,7 @@ type Module interface { blueprint.Module GenerateAndroidBuildActions(ModuleContext) + DepsMutator(BottomUpMutatorContext) base() *ModuleBase Enabled() bool |