summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Android.bp11
1 files changed, 9 insertions, 2 deletions
diff --git a/Android.bp b/Android.bp
index 439f8bb..7e90b4c 100644
--- a/Android.bp
+++ b/Android.bp
@@ -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 {