Fix the issue for incorrect logic of "no_framework_libs"
Fortunately Android stubs jar generation didn't get affected by this issue since "framework" and "ext" were explicitly added to the "libs" property: https://cs.corp.google.com/aosp-master/frameworks/base/Android.bp?rcl=72fa61b3250529504a9f5dab2e927a0d2e873f58&l=876 Test: m -j android_stubs_current and check the build.ninja to see if addtional "framework" and "lib" are shwon there. Bug: b/70351683 Change-Id: I9f1eec0d7f8baff6361efef064b7a09a5b2d4a58
This commit is contained in:
@@ -234,7 +234,7 @@ func (j *Javadoc) addDeps(ctx android.BottomUpMutatorContext) {
|
||||
sdkDep := decodeSdkDep(ctx, String(j.properties.Sdk_version))
|
||||
if sdkDep.useDefaultLibs {
|
||||
ctx.AddDependency(ctx.Module(), bootClasspathTag, config.DefaultBootclasspathLibraries...)
|
||||
if Bool(j.properties.No_framework_libs) {
|
||||
if !Bool(j.properties.No_framework_libs) {
|
||||
ctx.AddDependency(ctx.Module(), libTag, []string{"ext", "framework"}...)
|
||||
}
|
||||
} else if sdkDep.useModule {
|
||||
|
Reference in New Issue
Block a user