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 | |
| 17 | package { |
| 18 | default_visibility: ["//system/timezone"], |
| 19 | } |
| 20 | |
| 21 | // A non-jarjar'd version of the Java S2 geometry lib. |
| 22 | java_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 |
| 35 | java_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 | ], |
Neil Fuller | e750d5d | 2020-07-16 19:45:30 +0100 | [diff] [blame^] | 46 | test_suites: ["general-tests"], |
Neil Fuller | 7e1dc66 | 2020-07-15 14:08:47 +0100 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | // Device tests: atest S2GeometryLibraryJavaTests |
| 50 | android_test { |
| 51 | name: "S2GeometryLibraryJavaTests", |
| 52 | sdk_version: "current", |
| 53 | manifest: "AndroidManifest.xml", |
| 54 | static_libs: [ |
| 55 | "s2-geometry-library-java-tests", |
| 56 | "androidx.test.rules", |
| 57 | "junit", |
| 58 | ], |
| 59 | } |