blob: 4d69e0fa5878bb55dc3cee371b887b7b6acbf4fc [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
Neil Fuller7e1dc662020-07-15 14:08:47 +010017// A non-jarjar'd version of the Java S2 geometry lib.
18java_library {
19 name: "s2-geometry-library-java",
20 host_supported: true,
21 sdk_version: "current",
22 srcs: ["src/**/*.java"],
23 static_libs: [
24 "guava",
25 ],
26}
27
28// A bundle of the S2 geometry lib and its tests.
29//
30// atest --host s2-geometry-library-java-tests
31java_test {
32 name: "s2-geometry-library-java-tests",
33 host_supported: true,
34 sdk_version: "current",
35 srcs: ["tests/**/*.java"],
36 static_libs: [
37 "s2-geometry-library-java",
38 ],
39 libs: [
40 "junit",
41 ],
Neil Fullere750d5d2020-07-16 19:45:30 +010042 test_suites: ["general-tests"],
Neil Fuller7e1dc662020-07-15 14:08:47 +010043}
44
45// Device tests: atest S2GeometryLibraryJavaTests
46android_test {
47 name: "S2GeometryLibraryJavaTests",
48 sdk_version: "current",
49 manifest: "AndroidManifest.xml",
50 static_libs: [
51 "s2-geometry-library-java-tests",
52 "androidx.test.rules",
53 "junit",
54 ],
55}