diff options
| author | 2020-02-06 22:56:08 +0000 | |
|---|---|---|
| committer | 2020-02-06 22:56:08 +0000 | |
| commit | 1fd192302c012009129f7a0e7d7bca899e07877b (patch) | |
| tree | 174a3c944be2e27c2afec6f3a2b5243206cdea89 /java/java.go | |
| parent | 3beeb1ebb47fa1f6c0626458043d2ae87283b062 (diff) | |
| parent | d7536ba58d8f68ae1cdb7cc1d50f67961dc12963 (diff) | |
Merge changes from topic "apex_available"
* changes:
  shared_lib dependency from a static lib crosses the APEX boundary
  apex_available tracks static dependencies
Diffstat (limited to 'java/java.go')
| -rw-r--r-- | java/java.go | 14 | 
1 files changed, 12 insertions, 2 deletions
| diff --git a/java/java.go b/java/java.go index a4e91ab9c..c94ea8293 100644 --- a/java/java.go +++ b/java/java.go @@ -1717,8 +1717,10 @@ func (j *Module) hasCode(ctx android.ModuleContext) bool {  func (j *Module) DepIsInSameApex(ctx android.BaseModuleContext, dep android.Module) bool {  	depTag := ctx.OtherModuleDependencyTag(dep) -	// dependencies other than the static linkage are all considered crossing APEX boundary -	return depTag == staticLibTag +	// Dependencies other than the static linkage are all considered crossing APEX boundary +	// Also, a dependency to an sdk member is also considered as such. This is required because +	// sdk members should be mutated into APEXes. Refer to sdk.sdkDepsReplaceMutator. +	return depTag == staticLibTag || j.IsInAnySdk()  }  func (j *Module) Stem() string { @@ -2406,6 +2408,14 @@ func (j *Import) SrcJarArgs() ([]string, android.Paths) {  	return nil, nil  } +func (j *Import) DepIsInSameApex(ctx android.BaseModuleContext, dep android.Module) bool { +	depTag := ctx.OtherModuleDependencyTag(dep) +	// dependencies other than the static linkage are all considered crossing APEX boundary +	// Also, a dependency to an sdk member is also considered as such. This is required because +	// sdk members should be mutated into APEXes. Refer to sdk.sdkDepsReplaceMutator. +	return depTag == staticLibTag || j.IsInAnySdk() +} +  // Add compile time check for interface implementation  var _ android.IDEInfo = (*Import)(nil)  var _ android.IDECustomizedModuleName = (*Import)(nil) |