summaryrefslogtreecommitdiff
path: root/sdk/sdk.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2019-11-29 20:17:53 +0000
committer Paul Duffin <paulduffin@google.com> 2019-12-06 12:16:53 +0000
commit375058f67d23150e8e2f2c9bd390420705f7f698 (patch)
treeb555154d9e5641b741e591ed7ffdbdf101c6d18d /sdk/sdk.go
parentcea93afe7605ed60f9b4810390d15b3010009ab7 (diff)
Use static build rules in snapshot generation
It is easier to extract information out of static build rules than it is out of custom build rules built using the builder as the former provides access to the in/out and args separate from the rule whereas the latter only provides access to in/out. Also, cleans up some warnings that appear in Intellij. There is a lot of duplication in the testing code. That will be resolved in a follow up change. Bug: 143678475 Test: m conscrypt-module-sdk Change-Id: I973bc0c90b0affd84487f1b222dd3e6c22c07ec0
Diffstat (limited to 'sdk/sdk.go')
-rw-r--r--sdk/sdk.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/sdk/sdk.go b/sdk/sdk.go
index 431ace9a5..18b0040b9 100644
--- a/sdk/sdk.go
+++ b/sdk/sdk.go
@@ -31,6 +31,8 @@ import (
func init() {
pctx.Import("android/soong/android")
+ pctx.Import("android/soong/java/config")
+
android.RegisterModuleType("sdk", ModuleFactory)
android.RegisterModuleType("sdk_snapshot", SnapshotModuleFactory)
android.PreDepsMutators(RegisterPreDepsMutators)