aboutsummaryrefslogtreecommitdiffstats
path: root/android/arch.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2016-08-19 16:07:38 -0700
committerColin Cross <ccross@android.com>2016-08-22 17:08:06 -0700
commita120ec1c5e5fb7f089433c800fba2dbc983bc0d1 (patch)
tree4104f69f47107807850e38689927092328e9deeb /android/arch.go
parente1d764e369cd49f7d1f485798e073662e0bee4b1 (diff)
downloadbuild_soong-a120ec1c5e5fb7f089433c800fba2dbc983bc0d1.tar.gz
build_soong-a120ec1c5e5fb7f089433c800fba2dbc983bc0d1.tar.bz2
build_soong-a120ec1c5e5fb7f089433c800fba2dbc983bc0d1.zip
Add PropertyCustomizer
Allow any module factory to insert a PropertyCustomizer on the module, which will be called before any other mutators. The PropertyCustomizer can append or prepend to any properties, allowing module types to extend other module types by modifying the public, stable interface provided by the properties. Change-Id: Idff02be80d939a70df1c6bbccffdd1f04ff975d2
Diffstat (limited to 'android/arch.go')
-rw-r--r--android/arch.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/android/arch.go b/android/arch.go
index 2d38dafc..62acb09d 100644
--- a/android/arch.go
+++ b/android/arch.go
@@ -24,13 +24,6 @@ import (
"github.com/google/blueprint/proptools"
)
-func init() {
- RegisterBottomUpMutator("defaults_deps", defaultsDepsMutator).Parallel()
- RegisterTopDownMutator("defaults", defaultsMutator).Parallel()
-
- RegisterBottomUpMutator("arch", ArchMutator).Parallel()
-}
-
var (
Arm = newArch("arm", "lib32")
Arm64 = newArch("arm64", "lib64")
@@ -490,6 +483,8 @@ func InitArchModule(m Module,
allProperties = append(allProperties, asp)
}
+ base.customizableProperties = allProperties
+
return m, allProperties
}