diff options
author | 2022-05-24 17:10:02 +0000 | |
---|---|---|
committer | 2022-08-25 14:47:41 -0400 | |
commit | 2351eacb19faed3867903e1ddfa2992f7a787d02 (patch) | |
tree | 7471023a3c2b892d6b75c0481032749df8ec18db /java/droiddoc.go | |
parent | 97bd12745766082ed6b1f6dc3d6f135c237eba49 (diff) |
AIDL source generation accounts for Bazel paths
The AIDL source generation rule sets include flags based on the relative
path of .aidl sources. For .aidl sources provided by Bazel targets, e.g.
in a filegroup, the same directory could be added to the include path
twice. Instead we need to ensure that if a Bazel source provides the
include path, that we don't add it again from a Soong source.
Bug: 229251008
Test: USE_BAZEL_ANALYSIS=1 m api-stubs-docs-non-updatable
Change-Id: I4997039003242b43e0e52ccf41729acb4ad11324
Diffstat (limited to 'java/droiddoc.go')
-rw-r--r-- | java/droiddoc.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/droiddoc.go b/java/droiddoc.go index 901419cba..9b1f43b4c 100644 --- a/java/droiddoc.go +++ b/java/droiddoc.go @@ -314,7 +314,7 @@ func (j *Javadoc) genSources(ctx android.ModuleContext, srcFiles android.Paths, outSrcFiles := make(android.Paths, 0, len(srcFiles)) var aidlSrcs android.Paths - aidlIncludeFlags := genAidlIncludeFlags(srcFiles) + aidlIncludeFlags := genAidlIncludeFlags(ctx, srcFiles, android.Paths{}) for _, srcFile := range srcFiles { switch srcFile.Ext() { |