diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/arch.go | 7 | ||||
-rw-r--r-- | common/env.go | 5 | ||||
-rw-r--r-- | common/module.go | 5 |
3 files changed, 17 insertions, 0 deletions
diff --git a/common/arch.go b/common/arch.go index 6865904d..c0e63eb0 100644 --- a/common/arch.go +++ b/common/arch.go @@ -20,10 +20,17 @@ import ( "runtime" "strings" + "android/soong" + "github.com/google/blueprint" "github.com/google/blueprint/proptools" ) +func init() { + soong.RegisterEarlyMutator("host_or_device", HostOrDeviceMutator) + soong.RegisterEarlyMutator("arch", ArchMutator) +} + var ( Arm = newArch("arm", "lib32") Arm64 = newArch("arm64", "lib64") diff --git a/common/env.go b/common/env.go index e33a0258..3214baa8 100644 --- a/common/env.go +++ b/common/env.go @@ -15,6 +15,7 @@ package common import ( + "android/soong" "android/soong/env" "github.com/google/blueprint" @@ -27,6 +28,10 @@ import ( // compare the contents of the environment variables, rewriting the file if necessary to cause // a manifest regeneration. +func init() { + soong.RegisterSingletonType("env", EnvSingleton) +} + func EnvSingleton() blueprint.Singleton { return &envSingleton{} } diff --git a/common/module.go b/common/module.go index 1d17de10..b19b6d1c 100644 --- a/common/module.go +++ b/common/module.go @@ -15,6 +15,7 @@ package common import ( + "android/soong" "path/filepath" "runtime" "sort" @@ -520,6 +521,10 @@ func (ctx *androidModuleContext) Glob(globPattern string, excludes []string) []s return ret } +func init() { + soong.RegisterSingletonType("buildtarget", BuildTargetSingleton) +} + func BuildTargetSingleton() blueprint.Singleton { return &buildTargetSingleton{} } |