blob: de90afe093a610f6dcaa0dd62dba3a353d6d5332 [file] [log] [blame]
Neil Fuller7e1dc662020-07-15 14:08:47 +01001//
2// Copyright (C) 2020 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18 default_visibility: ["//system/timezone"],
19}
20
21// A non-jarjar'd version of the Java S2 geometry lib.
22java_library {
23 name: "s2-geometry-library-java",
24 host_supported: true,
25 sdk_version: "current",
26 srcs: ["src/**/*.java"],
27 static_libs: [
28 "guava",
29 ],
30}
31
32// A bundle of the S2 geometry lib and its tests.
33//
34// atest --host s2-geometry-library-java-tests
35java_test {
36 name: "s2-geometry-library-java-tests",
37 host_supported: true,
38 sdk_version: "current",
39 srcs: ["tests/**/*.java"],
40 static_libs: [
41 "s2-geometry-library-java",
42 ],
43 libs: [
44 "junit",
45 ],
46}
47
48// Device tests: atest S2GeometryLibraryJavaTests
49android_test {
50 name: "S2GeometryLibraryJavaTests",
51 sdk_version: "current",
52 manifest: "AndroidManifest.xml",
53 static_libs: [
54 "s2-geometry-library-java-tests",
55 "androidx.test.rules",
56 "junit",
57 ],
58}