java_sdk_library: Rename createDocs to createStubsSources
am: c4cea76c0d
Change-Id: Ie9963a6abd5d6856fe384c6ff32e664f7d8b14f5
This commit is contained in:
@@ -478,7 +478,7 @@ func (module *SdkLibrary) createStubsLibrary(mctx android.LoadHookContext, apiSc
|
|||||||
|
|
||||||
// Creates a droiddoc module that creates stubs source files from the given full source
|
// Creates a droiddoc module that creates stubs source files from the given full source
|
||||||
// files
|
// files
|
||||||
func (module *SdkLibrary) createDocs(mctx android.LoadHookContext, apiScope apiScope) {
|
func (module *SdkLibrary) createStubsSources(mctx android.LoadHookContext, apiScope apiScope) {
|
||||||
props := struct {
|
props := struct {
|
||||||
Name *string
|
Name *string
|
||||||
Srcs []string
|
Srcs []string
|
||||||
@@ -728,17 +728,17 @@ func (module *SdkLibrary) CreateInternalModules(mctx android.LoadHookContext) {
|
|||||||
|
|
||||||
// for public API stubs
|
// for public API stubs
|
||||||
module.createStubsLibrary(mctx, apiScopePublic)
|
module.createStubsLibrary(mctx, apiScopePublic)
|
||||||
module.createDocs(mctx, apiScopePublic)
|
module.createStubsSources(mctx, apiScopePublic)
|
||||||
|
|
||||||
sdkDep := decodeSdkDep(mctx, sdkContext(&module.Library))
|
sdkDep := decodeSdkDep(mctx, sdkContext(&module.Library))
|
||||||
if sdkDep.hasStandardLibs() {
|
if sdkDep.hasStandardLibs() {
|
||||||
// for system API stubs
|
// for system API stubs
|
||||||
module.createStubsLibrary(mctx, apiScopeSystem)
|
module.createStubsLibrary(mctx, apiScopeSystem)
|
||||||
module.createDocs(mctx, apiScopeSystem)
|
module.createStubsSources(mctx, apiScopeSystem)
|
||||||
|
|
||||||
// for test API stubs
|
// for test API stubs
|
||||||
module.createStubsLibrary(mctx, apiScopeTest)
|
module.createStubsLibrary(mctx, apiScopeTest)
|
||||||
module.createDocs(mctx, apiScopeTest)
|
module.createStubsSources(mctx, apiScopeTest)
|
||||||
|
|
||||||
// for runtime
|
// for runtime
|
||||||
module.createXmlFile(mctx)
|
module.createXmlFile(mctx)
|
||||||
|
Reference in New Issue
Block a user