diff options
| author | 2019-01-31 10:48:11 +0000 | |
|---|---|---|
| committer | 2019-01-31 10:48:11 +0000 | |
| commit | fcde77c303e19b7f4f734feb61fa58740d95d215 (patch) | |
| tree | 713fe4d57683a4acbbbff916abd7861ed11f936d | |
| parent | 7495f4aa2684aa0caddf26b6e8d9c2a4c8fec7c1 (diff) | |
| parent | b4113e3da5c648bff975422e1748d3993e1210a9 (diff) | |
Merge "ART: Remove hidden metricslogger dependencies"
| -rw-r--r-- | build/art.go | 43 |
1 files changed, 2 insertions, 41 deletions
diff --git a/build/art.go b/build/art.go index 22f6410829..5236e314fa 100644 --- a/build/art.go +++ b/build/art.go @@ -348,26 +348,7 @@ func artDefaultsFactory() android.Module { func libartDefaultsFactory() android.Module { c := &codegenProperties{} module := cc.DefaultsFactory(c) - android.AddLoadHook(module, func(ctx android.LoadHookContext) { - codegen(ctx, c, true) - - type props struct { - Target struct { - Android struct { - Shared_libs []string - } - } - } - - p := &props{} - // TODO: express this in .bp instead b/79671158 - if !envTrue(ctx, "ART_TARGET_LINUX") { - p.Target.Android.Shared_libs = []string{ - "libmetricslogger", - } - } - ctx.AppendProperties(p) - }) + android.AddLoadHook(module, func(ctx android.LoadHookContext) { codegen(ctx, c, true) }) return module } @@ -375,27 +356,7 @@ func libartDefaultsFactory() android.Module { func libartStaticDefaultsFactory() android.Module { c := &codegenProperties{} module := cc.DefaultsFactory(c) - android.AddLoadHook(module, func(ctx android.LoadHookContext) { - codegen(ctx, c, true) - - type props struct { - Target struct { - Android struct { - Static_libs []string - } - } - } - - p := &props{} - // TODO: express this in .bp instead b/79671158 - if !envTrue(ctx, "ART_TARGET_LINUX") { - p.Target.Android.Static_libs = []string{ - "libmetricslogger", - "libstatssocket", - } - } - ctx.AppendProperties(p) - }) + android.AddLoadHook(module, func(ctx android.LoadHookContext) { codegen(ctx, c, true) }) return module } |