Merge "droiddoc supports no_framework_libs."
am: 984285de31
Change-Id: Ia918ea0248f63643b51cc6398921d4cd544268fa
This commit is contained in:
commit
3e94af80a1
1 changed files with 7 additions and 1 deletions
|
@ -73,6 +73,10 @@ type JavadocProperties struct {
|
||||||
// list of of java libraries that will be in the classpath.
|
// list of of java libraries that will be in the classpath.
|
||||||
Libs []string `android:"arch_variant"`
|
Libs []string `android:"arch_variant"`
|
||||||
|
|
||||||
|
// don't build against the framework libraries (legacy-test, core-junit,
|
||||||
|
// ext, and framework for device targets)
|
||||||
|
No_framework_libs *bool
|
||||||
|
|
||||||
// If set to false, don't allow this module(-docs.zip) to be exported. Defaults to true.
|
// If set to false, don't allow this module(-docs.zip) to be exported. Defaults to true.
|
||||||
Installable *bool `android:"arch_variant"`
|
Installable *bool `android:"arch_variant"`
|
||||||
|
|
||||||
|
@ -183,7 +187,9 @@ func (j *Javadoc) addDeps(ctx android.BottomUpMutatorContext) {
|
||||||
sdkDep := decodeSdkDep(ctx, String(j.properties.Sdk_version))
|
sdkDep := decodeSdkDep(ctx, String(j.properties.Sdk_version))
|
||||||
if sdkDep.useDefaultLibs {
|
if sdkDep.useDefaultLibs {
|
||||||
ctx.AddDependency(ctx.Module(), bootClasspathTag, config.DefaultBootclasspathLibraries...)
|
ctx.AddDependency(ctx.Module(), bootClasspathTag, config.DefaultBootclasspathLibraries...)
|
||||||
ctx.AddDependency(ctx.Module(), libTag, []string{"ext", "framework"}...)
|
if Bool(j.properties.No_framework_libs) {
|
||||||
|
ctx.AddDependency(ctx.Module(), libTag, []string{"ext", "framework"}...)
|
||||||
|
}
|
||||||
} else if sdkDep.useModule {
|
} else if sdkDep.useModule {
|
||||||
ctx.AddDependency(ctx.Module(), bootClasspathTag, sdkDep.module)
|
ctx.AddDependency(ctx.Module(), bootClasspathTag, sdkDep.module)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue