diff options
| author | 2020-05-01 14:12:06 +0000 | |
|---|---|---|
| committer | 2020-05-01 14:12:06 +0000 | |
| commit | bd650a11980651a0cf617fd5421e40930b019119 (patch) | |
| tree | cfa922080dbcad0a7fb4ba0a01b0c0fbfb435585 | |
| parent | 5a9c628f9dc2305cdb0ade0c8e0cccaee4ec5f9e (diff) | |
| parent | da36425419d671c2d7c7c629a85d007bcd141f8f (diff) | |
Merge "java_sdk_library: Correct stubs source generation classpath" into rvc-dev
| -rw-r--r-- | java/sdk_library.go | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/java/sdk_library.go b/java/sdk_library.go index e62a71510..fa267953e 100644 --- a/java/sdk_library.go +++ b/java/sdk_library.go @@ -494,17 +494,15 @@ func (module *SdkLibrary) createStubsSources(mctx android.LoadHookContext, apiSc } }{} - sdkDep := decodeSdkDep(mctx, sdkContext(&module.Library)) - // Use the platform API if standard libraries were requested, otherwise use - // no default libraries. - sdkVersion := "" - if !sdkDep.hasStandardLibs() { - sdkVersion = "none" - } + // The stubs source processing uses the same compile time classpath when extracting the + // API from the implementation library as it does when compiling it. i.e. the same + // * sdk version + // * system_modules + // * libs (static_libs/libs) props.Name = proptools.StringPtr(module.docsName(apiScope)) props.Srcs = append(props.Srcs, module.Library.Module.properties.Srcs...) - props.Sdk_version = proptools.StringPtr(sdkVersion) + props.Sdk_version = module.Library.Module.deviceProperties.Sdk_version props.System_modules = module.Library.Module.deviceProperties.System_modules props.Installable = proptools.BoolPtr(false) // A droiddoc module has only one Libs property and doesn't distinguish between |