diff options
| author | 2021-04-15 09:40:37 +0000 | |
|---|---|---|
| committer | 2021-04-15 09:40:37 +0000 | |
| commit | a4b0d08b83a63eb4c4e9873ac3a2273027acbedc (patch) | |
| tree | fe552d1731326beb3ac0e87d686abb6b3996563c /java/hiddenapi_singleton.go | |
| parent | 1f105f13382f144f32b3089a1e5ffb7845bc5ecc (diff) | |
| parent | 00b2bfdea57286232ac6c7ec36742d95c9d7a04e (diff) | |
Merge "Move hidden API index file rule to platform_bootclasspath"
Diffstat (limited to 'java/hiddenapi_singleton.go')
| -rw-r--r-- | java/hiddenapi_singleton.go | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/java/hiddenapi_singleton.go b/java/hiddenapi_singleton.go index 6ba5f35bc..6c91a9140 100644 --- a/java/hiddenapi_singleton.go +++ b/java/hiddenapi_singleton.go @@ -416,32 +416,4 @@ func (h *hiddenAPIIndexSingleton) GenerateBuildActions(ctx android.SingletonCont h.index = outputPath return } - - indexes := android.Paths{} - ctx.VisitAllModules(func(module android.Module) { - if h, ok := module.(hiddenAPIIntf); ok { - if h.indexCSV() != nil { - indexes = append(indexes, h.indexCSV()) - } - } - }) - - rule := android.NewRuleBuilder(pctx, ctx) - rule.Command(). - BuiltTool("merge_csv"). - Flag("--key_field signature"). - FlagWithArg("--header=", "signature,file,startline,startcol,endline,endcol,properties"). - FlagWithOutput("--output=", hiddenAPISingletonPaths(ctx).index). - Inputs(indexes) - rule.Build("singleton-merged-hiddenapi-index", "Singleton merged Hidden API index") - - h.index = hiddenAPISingletonPaths(ctx).index -} - -func (h *hiddenAPIIndexSingleton) MakeVars(ctx android.MakeVarsContext) { - if ctx.Config().IsEnvTrue("UNSAFE_DISABLE_HIDDENAPI_FLAGS") { - return - } - - ctx.Strict("INTERNAL_PLATFORM_HIDDENAPI_INDEX", h.index.String()) } |