diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2020-05-07 01:02:11 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2020-05-07 01:02:11 +0000 |
commit | 0a6f16f832198a9faa0d110a09dada506d1c6b0b (patch) | |
tree | 1543a86fa0fea59b9c7df12c829134446b0dfaf2 | |
parent | 914042e1fd2ed48ad363467b128deea48de9fda1 (diff) | |
parent | faa21a688ef3124a6851f8c9beb16ecb2ea8b0e4 (diff) | |
download | hidl-0a6f16f832198a9faa0d110a09dada506d1c6b0b.tar.gz |
Snap for 6469672 from faa21a688ef3124a6851f8c9beb16ecb2ea8b0e4 to rvc-release
Change-Id: I4aaffca91a3a754b035ab2e84218bee04cf0b093
-rw-r--r-- | build/hidl_interface.go | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/build/hidl_interface.go b/build/hidl_interface.go index 71f4a68d..ebc2dc57 100644 --- a/build/hidl_interface.go +++ b/build/hidl_interface.go @@ -129,6 +129,9 @@ func (m *hidlInterfacesMetadataSingleton) GenerateAndroidBuildActions(ctx androi var inheritanceHierarchyOutputs android.Paths ctx.VisitDirectDeps(func(m android.Module) { + if !m.ExportedToMake() { + return + } if t, ok := m.(*hidlGenRule); ok { if t.properties.Language == "inheritance-hierarchy" { inheritanceHierarchyOutputs = append(inheritanceHierarchyOutputs, t.genOutputs.Paths()...) @@ -893,17 +896,15 @@ This corresponds to the "-r%s:<some path>" option that would be passed into hidl Inputs: i.properties.Srcs, }) - if i.ModuleBase.ExportedToMake() { - mctx.CreateModule(hidlGenFactory, &nameProperties{ - Name: proptools.StringPtr(name.inheritanceHierarchyName()), - }, &hidlGenProperties{ - Language: "inheritance-hierarchy", - FqName: name.string(), - Root: i.properties.Root, - Interfaces: i.properties.Interfaces, - Inputs: i.properties.Srcs, - }) - } + mctx.CreateModule(hidlGenFactory, &nameProperties{ + Name: proptools.StringPtr(name.inheritanceHierarchyName()), + }, &hidlGenProperties{ + Language: "inheritance-hierarchy", + FqName: name.string(), + Root: i.properties.Root, + Interfaces: i.properties.Interfaces, + Inputs: i.properties.Srcs, + }) } func (h *hidlInterface) Name() string { |