Merge changes I7bc54dc4,I4e9bfebd
* changes: java_sdk_library: Correct stubs source generation classpath Fix definition of android_stubs_current in sdk tests
This commit is contained in:
commit
b407131a0e
|
@ -498,17 +498,15 @@ func (module *SdkLibrary) createStubsSources(mctx android.LoadHookContext, apiSc
|
||||||
}
|
}
|
||||||
}{}
|
}{}
|
||||||
|
|
||||||
sdkDep := decodeSdkDep(mctx, sdkContext(&module.Library))
|
// The stubs source processing uses the same compile time classpath when extracting the
|
||||||
// Use the platform API if standard libraries were requested, otherwise use
|
// API from the implementation library as it does when compiling it. i.e. the same
|
||||||
// no default libraries.
|
// * sdk version
|
||||||
sdkVersion := ""
|
// * system_modules
|
||||||
if !sdkDep.hasStandardLibs() {
|
// * libs (static_libs/libs)
|
||||||
sdkVersion = "none"
|
|
||||||
}
|
|
||||||
|
|
||||||
props.Name = proptools.StringPtr(module.docsName(apiScope))
|
props.Name = proptools.StringPtr(module.docsName(apiScope))
|
||||||
props.Srcs = append(props.Srcs, module.Library.Module.properties.Srcs...)
|
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.System_modules = module.Library.Module.deviceProperties.System_modules
|
||||||
props.Installable = proptools.BoolPtr(false)
|
props.Installable = proptools.BoolPtr(false)
|
||||||
// A droiddoc module has only one Libs property and doesn't distinguish between
|
// A droiddoc module has only one Libs property and doesn't distinguish between
|
||||||
|
|
|
@ -46,13 +46,13 @@ java_system_modules_import {
|
||||||
java_import {
|
java_import {
|
||||||
name: "core.platform.api.stubs",
|
name: "core.platform.api.stubs",
|
||||||
}
|
}
|
||||||
java_sdk_library_import {
|
java_import {
|
||||||
name: "android_stubs_current",
|
name: "android_stubs_current",
|
||||||
}
|
}
|
||||||
java_sdk_library_import {
|
java_import {
|
||||||
name: "android_system_stubs_current",
|
name: "android_system_stubs_current",
|
||||||
}
|
}
|
||||||
java_sdk_library_import {
|
java_import {
|
||||||
name: "android_test_stubs_current",
|
name: "android_test_stubs_current",
|
||||||
}
|
}
|
||||||
java_import {
|
java_import {
|
||||||
|
|
Loading…
Reference in New Issue