diff options
author | Makoto Onuki <omakoto@google.com> | 2020-06-02 14:00:38 -0700 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2020-12-08 17:55:56 +0200 |
commit | 1cf76752389fa8e38160db40eb922237b0a2001d (patch) | |
tree | 32992801d8010e9434d622b4bc521f46ac1fe7e8 | |
parent | a88781ea435c485f9814dc765e08224a80b15161 (diff) |
Limit metalava visibility
Do not allow linking metalava directly.
(The "merged-in" is to prevent it from getting merged into
qt-qpr1-dev-plus-aosp)
Test: build (tree hugger)
Bug: 151160048
Merged-In: I802343a9ff189fcef00d8310c84302f355becc24
Change-Id: I57f5433a07c6ba965195b837447bb5ab4aef1406
-rw-r--r-- | Android.bp | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -12,9 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -java_binary { +java_binary_host { name: "metalava", - host_supported: true, srcs: [ "src/main/java/**/*.java", "src/main/java/**/*.kt", @@ -33,6 +32,14 @@ java_binary { }, }, }, + visibility: [ + // Metalava is linked by //vendor/xts/gts-tests/hostsidetests/api, but because it's a + // make project, soong's visibility won't apply. Soong also won't let you specify a + // subpackage of //vendor/ here. So let's just make it private. + // When //vendor/xts/gts-tests/hostsidetests/api migrates to Android.bp, we need to + // open metalava to //vendor:__subpackages__. + "//visibility:private", + ], } java_library { |