aboutsummaryrefslogtreecommitdiffstats
path: root/java/config/config.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2019-01-31 14:12:44 -0800
committerColin Cross <ccross@android.com>2019-02-06 11:23:40 -0800
commitf24a22a98a3cc4cc5a5618e20f1962198d4ac5ab (patch)
treeac4624f51e35d07d399d84882aeb59749cdf75f3 /java/config/config.go
parent0d2f40ae6c5321ac8f15f01ec154f9378815a09f (diff)
downloadbuild_soong-f24a22a98a3cc4cc5a5618e20f1962198d4ac5ab.tar.gz
build_soong-f24a22a98a3cc4cc5a5618e20f1962198d4ac5ab.tar.bz2
build_soong-f24a22a98a3cc4cc5a5618e20f1962198d4ac5ab.zip
Move hiddenapi singleton rules to Soong
Move the rules that build hiddenapi-stubs-flags.txt, hiddenapi-flags.csv and hiddenapi-greylist.csv into Soong. Bug: 123645297 Test: m checkbuild Test: m UNSAFE_DISABLE_HIDDEN_API_FLAGS=true Change-Id: I90bf58710f6153ee8565994f799d3ec5699bc7fa
Diffstat (limited to 'java/config/config.go')
-rw-r--r--java/config/config.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/java/config/config.go b/java/config/config.go
index 5c838a55..75be9e21 100644
--- a/java/config/config.go
+++ b/java/config/config.go
@@ -33,6 +33,12 @@ var (
DefaultLambdaStubsLibrary = "core-lambda-stubs"
SdkLambdaStubsPath = "prebuilts/sdk/tools/core-lambda-stubs.jar"
+ // A list of the jars that provide information about usages of the hidden API.
+ HiddenAPIExtraAppUsageJars = []string{
+ // The core-oj-hiddenapi provides information for the core-oj jar.
+ "core-oj-hiddenapi",
+ }
+
DefaultJacocoExcludeFilter = []string{"org.junit.*", "org.jacoco.*", "org.mockito.*"}
InstrumentFrameworkModules = []string{
@@ -107,6 +113,7 @@ func init() {
pctx.HostBinToolVariable("ApiCheckCmd", "apicheck")
pctx.HostBinToolVariable("D8Cmd", "d8")
pctx.HostBinToolVariable("R8Cmd", "r8-compat-proguard")
+ pctx.HostBinToolVariable("HiddenAPICmd", "hiddenapi")
pctx.VariableFunc("TurbineJar", func(ctx android.PackageVarContext) string {
turbine := "turbine.jar"