diff options
| author | 2024-01-31 02:58:33 +0000 | |
|---|---|---|
| committer | 2024-01-31 02:58:33 +0000 | |
| commit | f4ef60c1a5724e6b5983a1a3a1ffd5a00dd4d84f (patch) | |
| tree | f42adcb968e24b5c74bb7cbe45b5feaece11bda2 /java/java.go | |
| parent | 098d9ee8000ae850cffd15f96e1caa20ff9ffd09 (diff) | |
| parent | 6a830dc530470329ef8ef3bba08b50f8999cf5f6 (diff) | |
Merge "Support mechanism to select a specific version of module sdk prebuilt" into main am: 5809f65748 am: 6a830dc530
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2935330
Change-Id: Idd80e40739e34e885a7aa5803676e3e3dbcb8e81
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'java/java.go')
| -rw-r--r-- | java/java.go | 11 | 
1 files changed, 10 insertions, 1 deletions
diff --git a/java/java.go b/java/java.go index 8c56bd771..f806298bf 100644 --- a/java/java.go +++ b/java/java.go @@ -2090,6 +2090,11 @@ type ImportProperties struct {  		// that depend on this module, as well as to aidl for this module.  		Export_include_dirs []string  	} + +	// Name of the source soong module that gets shadowed by this prebuilt +	// If unspecified, follows the naming convention that the source module of +	// the prebuilt is Name() without "prebuilt_" prefix +	Source_module_name *string  }  type Import struct { @@ -2163,12 +2168,16 @@ func (j *Import) PrebuiltSrcs() []string {  	return j.properties.Jars  } +func (j *Import) BaseModuleName() string { +	return proptools.StringDefault(j.properties.Source_module_name, j.ModuleBase.Name()) +} +  func (j *Import) Name() string {  	return j.prebuilt.Name(j.ModuleBase.Name())  }  func (j *Import) Stem() string { -	return proptools.StringDefault(j.properties.Stem, j.ModuleBase.Name()) +	return proptools.StringDefault(j.properties.Stem, j.BaseModuleName())  }  func (a *Import) JacocoReportClassesFile() android.Path {  |