From 2e25fdc90f3da2fbf7df9378fe60b51b4f184b7c Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Mon, 10 May 2021 12:40:05 +0100 Subject: Use filegroups for test-{base,mock,runner} srcs This allows soong to infer the package of the given srcs, which in turns make it able to filter the inputs to metalava to exclude unwanted packages. This is part of a larger topic of changes intended to remove undesired classes from the public documentation. Bug: 187386774 Test: m Change-Id: I8196c306b743ce6ca8a6452d212f3d7c0b5b2b82 --- test-base/Android.bp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'test-base') diff --git a/test-base/Android.bp b/test-base/Android.bp index 9bd639b63ae0..b58aa11597c2 100644 --- a/test-base/Android.bp +++ b/test-base/Android.bp @@ -32,7 +32,7 @@ package { java_sdk_library { name: "android.test.base", - srcs: ["src/**/*.java"], + srcs: [":android-test-base-sources"], errorprone: { javacflags: ["-Xep:DepAnn:ERROR"], @@ -66,7 +66,7 @@ java_library_static { name: "android.test.base_static", installable: false, - srcs: ["src/**/*.java"], + srcs: [":android-test-base-sources"], errorprone: { javacflags: ["-Xep:DepAnn:ERROR"], @@ -114,6 +114,12 @@ java_library_static { ], } +filegroup { + name: "android-test-base-sources", + srcs: ["src/**/*.java"], + path: "src", +} + // Make the current.txt available for use by the cts/tests/signature tests. // ======================================================================== filegroup { -- cgit v1.2.3-59-g8ed1b