Remove dependency on framework.jar
Remove dependency on framework.jar to reduce the build time. So sdk libraries are not checked API whenever frameowkr.jar changes. Test: m -j Bug: 119625999 Change-Id: I7435c429b7857de8c3c1834757c54888091753e5
This commit is contained in:
@@ -626,7 +626,7 @@ func (j *Javadoc) collectDeps(ctx android.ModuleContext) deps {
|
|||||||
case libTag:
|
case libTag:
|
||||||
switch dep := module.(type) {
|
switch dep := module.(type) {
|
||||||
case Dependency:
|
case Dependency:
|
||||||
deps.classpath = append(deps.classpath, dep.ImplementationJars()...)
|
deps.classpath = append(deps.classpath, dep.HeaderJars()...)
|
||||||
case SdkLibraryDependency:
|
case SdkLibraryDependency:
|
||||||
sdkVersion := j.sdkVersion()
|
sdkVersion := j.sdkVersion()
|
||||||
linkType := javaSdk
|
linkType := javaSdk
|
||||||
|
@@ -541,11 +541,6 @@ func (module *sdkLibrary) createDocs(mctx android.TopDownMutatorContext, apiScop
|
|||||||
props.Srcs_lib_whitelist_pkgs = []string{"android.annotation"}
|
props.Srcs_lib_whitelist_pkgs = []string{"android.annotation"}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// These libs are required by doclava to parse the framework sources add via
|
|
||||||
// Src_lib and Src_lib_whitelist_* properties just above.
|
|
||||||
// If we don't add them to the classpath, errors messages are generated by doclava,
|
|
||||||
// though they don't break the build.
|
|
||||||
props.Libs = append(props.Libs, "framework")
|
|
||||||
|
|
||||||
if Bool(module.properties.Metalava_enabled) == true {
|
if Bool(module.properties.Metalava_enabled) == true {
|
||||||
mctx.CreateModule(android.ModuleFactoryAdaptor(DroidstubsFactory), &props)
|
mctx.CreateModule(android.ModuleFactoryAdaptor(DroidstubsFactory), &props)
|
||||||
|
Reference in New Issue
Block a user