Neil Fuller | 808abb5 | 2019-10-28 16:01:26 +0000 | [diff] [blame] | 1 | // Copyright (C) 2019 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | |
| 16 | // Code common to various time zone host tools. |
| 17 | java_library_host { |
| 18 | name: "tztools_common", |
| 19 | |
| 20 | srcs: ["src/main/java/**/*.java"], |
| 21 | } |
| 22 | |
| 23 | // Code common to various time zone host tests. |
| 24 | java_library_host { |
| 25 | name: "tztools_common_testing", |
| 26 | |
| 27 | srcs: ["src/testing/java/**/*.java"], |
| 28 | libs: [ |
| 29 | "junit", |
| 30 | ], |
| 31 | } |
| 32 | |
| 33 | // Tests for tztools_common and tztools_common_testing. |
| 34 | java_test_host { |
| 35 | name: "tztools_common_tests", |
| 36 | |
| 37 | srcs: ["src/test/java/**/*.java"], |
Julien Desprez | 95bc2fa | 2020-12-21 10:15:56 -0800 | [diff] [blame^] | 38 | test_options: { |
| 39 | unit_test: true, |
| 40 | }, |
Neil Fuller | 808abb5 | 2019-10-28 16:01:26 +0000 | [diff] [blame] | 41 | static_libs: [ |
| 42 | "junit", |
| 43 | "tztools_common", |
| 44 | "tztools_common_testing", |
| 45 | ], |
Neil Fuller | 808abb5 | 2019-10-28 16:01:26 +0000 | [diff] [blame] | 46 | } |