Neil Fuller | 7e1dc66 | 2020-07-15 14:08:47 +0100 | [diff] [blame] | 1 | // |
| 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 Fuller | 7e1dc66 | 2020-07-15 14:08:47 +0100 | [diff] [blame] | 17 | // A non-jarjar'd version of the Java S2 geometry lib. |
| 18 | java_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 |
| 31 | java_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 Fuller | e750d5d | 2020-07-16 19:45:30 +0100 | [diff] [blame] | 42 | test_suites: ["general-tests"], |
Neil Fuller | 7e1dc66 | 2020-07-15 14:08:47 +0100 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | // Device tests: atest S2GeometryLibraryJavaTests |
| 46 | android_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 | } |