diff options
| author | 2020-07-01 17:23:46 +0000 | |
|---|---|---|
| committer | 2020-07-01 17:23:46 +0000 | |
| commit | 7d9deed9fd74b9cc221bbd272ad9025273ace5e1 (patch) | |
| tree | def90fc89b5866a33f5e35eedc10268074e3e7ef /java/java.go | |
| parent | e6b5e9aa82ccd54cedfb7220f044f5f374fdade2 (diff) | |
| parent | 7b0bdce69eef1b950662a7b493b4cc350da718c0 (diff) | |
Merge changes Ib7ad715d,I3a83b5ed
* changes:
  Remove frameworkResModule from sdkCorePlatform.
  Remove the concept of useDefaultLibs from Soong.
Diffstat (limited to 'java/java.go')
| -rw-r--r-- | java/java.go | 17 | 
1 files changed, 9 insertions, 8 deletions
diff --git a/java/java.go b/java/java.go index be60ccad2..0d4667268 100644 --- a/java/java.go +++ b/java/java.go @@ -597,7 +597,7 @@ func IsStaticLibDepTag(depTag blueprint.DependencyTag) bool {  }  type sdkDep struct { -	useModule, useFiles, useDefaultLibs, invalidVersion bool +	useModule, useFiles, invalidVersion bool  	// The modules that will be added to the bootclasspath when targeting 1.8 or lower  	bootclasspath []string @@ -606,7 +606,11 @@ type sdkDep struct {  	// modules are to be used.  	systemModules string +	// The modules that will be added to the classpath regardless of the Java language level targeted +	classpath []string +  	// The modules that will be added ot the classpath when targeting 1.9 or higher +	// (normally these will be on the bootclasspath when targeting 1.8 or lower)  	java9Classpath []string  	frameworkResModule string @@ -700,17 +704,14 @@ func (j *Module) deps(ctx android.BottomUpMutatorContext) {  		j.linter.deps(ctx)  		sdkDep := decodeSdkDep(ctx, sdkContext(j)) -		if sdkDep.useDefaultLibs { -			ctx.AddVariationDependencies(nil, bootClasspathTag, config.LegacyCorePlatformBootclasspathLibraries...) -			ctx.AddVariationDependencies(nil, systemModulesTag, config.LegacyCorePlatformSystemModules) -			if sdkDep.hasFrameworkLibs() { -				ctx.AddVariationDependencies(nil, libTag, config.FrameworkLibraries...) -			} -		} else if sdkDep.useModule { +		if sdkDep.useModule {  			ctx.AddVariationDependencies(nil, bootClasspathTag, sdkDep.bootclasspath...)  			ctx.AddVariationDependencies(nil, java9LibTag, sdkDep.java9Classpath...) +			ctx.AddVariationDependencies(nil, libTag, sdkDep.classpath...)  			if j.deviceProperties.EffectiveOptimizeEnabled() && sdkDep.hasStandardLibs() {  				ctx.AddVariationDependencies(nil, proguardRaiseTag, config.LegacyCorePlatformBootclasspathLibraries...) +			} +			if j.deviceProperties.EffectiveOptimizeEnabled() && sdkDep.hasFrameworkLibs() {  				ctx.AddVariationDependencies(nil, proguardRaiseTag, config.FrameworkLibraries...)  			}  		}  |