diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-06-29 06:52:56 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-06-29 06:52:56 +0000 |
commit | 5d0d8ac85810daa58f3bd054e4c25a59873715c6 (patch) | |
tree | e1a3745cc95a8da673251aeef24e8f2bdeacdfd9 /java | |
parent | 24a099c3b857f1b6fec2dbbb6c4ae1a67cece9da (diff) | |
parent | f043cf6b326671d81f4630e3a6b2caff7226a901 (diff) | |
download | build_soong-5d0d8ac85810daa58f3bd054e4c25a59873715c6.tar.gz build_soong-5d0d8ac85810daa58f3bd054e4c25a59873715c6.tar.bz2 build_soong-5d0d8ac85810daa58f3bd054e4c25a59873715c6.zip |
Merge "Add stub_only_libs property"
Diffstat (limited to 'java')
-rw-r--r-- | java/sdk_library.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/java/sdk_library.go b/java/sdk_library.go index 55da533c..5dfc32f6 100644 --- a/java/sdk_library.go +++ b/java/sdk_library.go @@ -99,6 +99,9 @@ type sdkLibraryProperties struct { // These libraries are not compiled into the stubs jar. Static_libs []string `android:"arch_variant"` + // List of Java libraries that will be in the classpath when building stubs + Stub_only_libs []string `android:"arch_variant"` + // list of package names that will be documented and publicized as API Api_packages []string @@ -297,6 +300,7 @@ func (module *sdkLibrary) createStubsLibrary(mctx android.TopDownMutatorContext, Name *string Srcs []string Sdk_version *string + Libs []string Soc_specific *bool Device_specific *bool Product_specific *bool @@ -314,6 +318,7 @@ func (module *sdkLibrary) createStubsLibrary(mctx android.TopDownMutatorContext, // sources are generated from the droiddoc props.Srcs = []string{":" + module.docsName(apiScope)} props.Sdk_version = proptools.StringPtr(module.sdkVersion(apiScope)) + props.Libs = module.properties.Stub_only_libs // Unbundled apps will use the prebult one from /prebuilts/sdk props.Product_variables.Unbundled_build.Enabled = proptools.BoolPtr(false) props.Product_variables.Pdk.Enabled = proptools.BoolPtr(false) |