diff options
author | Jiyong Park <jiyong@google.com> | 2019-09-13 20:44:44 +0900 |
---|---|---|
committer | Jiyong Park <jiyong@google.com> | 2019-09-13 20:58:00 +0900 |
commit | 7240bbc88cee80e64567de6446d12bb911a05ad0 (patch) | |
tree | 8b5f7a1286ab6687622b3347da64ef6ccb398d05 | |
parent | 0869bc39ad0e79aaf9d7544b744ac8fc40da0e3e (diff) | |
download | apache-http-7240bbc88cee80e64567de6446d12bb911a05ad0.tar.gz |
Use filegroup
Use filegroup to specify sources files with base directory via 'path'
property. This allows the build system to filter Java source files by
their packages.
Bug: 140764681
Test: m
Change-Id: I1af9c94c6b77a672604b8efe73881212666e2c25
-rw-r--r-- | Android.bp | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -12,11 +12,25 @@ // See the License for the specific language governing permissions and // limitations under the License. +filegroup { + name: "org.apache.http.legacy.sources", + srcs: ["src/**/*.java"], + path: "src", + visibility: ["//visibility:private"], +} + +filegroup { + name: "org.apache.http.legacy.android.sources", + srcs: ["android/src/**/*.java"], + path: "android/src", + visibility: ["//visibility:private"], +} + java_sdk_library { name: "org.apache.http.legacy", srcs: [ - "src/**/*.java", - "android/**/*.java", + ":org.apache.http.legacy.sources", + ":org.apache.http.legacy.android.sources", ], api_srcs: [ ":apache-http-stubs-sources", |