aboutsummaryrefslogtreecommitdiffstats
path: root/android/androidmk.go
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2020-03-04 20:15:08 +0000
committerPaul Duffin <paulduffin@google.com>2020-04-22 12:51:32 +0100
commit22595f9370e3c4d58e21390f06bddae0c1006cb7 (patch)
tree63bcd2d45ae544260ecf01bee32e7505ae8dc06a /android/androidmk.go
parenta40f0b5db934594b310b4644ed66d7f9968d84e8 (diff)
downloadbuild_soong-22595f9370e3c4d58e21390f06bddae0c1006cb7.tar.gz
build_soong-22595f9370e3c4d58e21390f06bddae0c1006cb7.tar.bz2
build_soong-22595f9370e3c4d58e21390f06bddae0c1006cb7.zip
Enable androidmk processing in sdk testing
Previously, while sdk tests would pass the sdk code would often fail in androidmk processing. This change makes the tests more realistic and will catch the errors earlier. Bug: 142935992 Bug: 153306490 Test: m nothing Merged-In: Ifd0b2d7cf24e941c919f6b6e0beb2403a67d4308 Change-Id: Ifd0b2d7cf24e941c919f6b6e0beb2403a67d4308
Diffstat (limited to 'android/androidmk.go')
-rw-r--r--android/androidmk.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/android/androidmk.go b/android/androidmk.go
index dbf3aa88..c296a5bf 100644
--- a/android/androidmk.go
+++ b/android/androidmk.go
@@ -29,7 +29,11 @@ import (
)
func init() {
- RegisterSingletonType("androidmk", AndroidMkSingleton)
+ RegisterAndroidMkBuildComponents(InitRegistrationContext)
+}
+
+func RegisterAndroidMkBuildComponents(ctx RegistrationContext) {
+ ctx.RegisterSingletonType("androidmk", AndroidMkSingleton)
}
// Deprecated: consider using AndroidMkEntriesProvider instead, especially if you're not going to