Neil Fuller | b2fff33 | 2019-10-28 16:06:09 +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 | |
Bob Badour | a8ca344 | 2021-02-03 18:16:54 -0800 | [diff] [blame^] | 15 | package { |
| 16 | // http://go/android-license-faq |
| 17 | // A large-scale-change added 'default_applicable_licenses' to import |
| 18 | // the below license kinds from "system_timezone_license": |
| 19 | // SPDX-license-identifier-Apache-2.0 |
| 20 | default_applicable_licenses: ["system_timezone_license"], |
| 21 | } |
| 22 | |
Neil Fuller | b2fff33 | 2019-10-28 16:06:09 +0000 | [diff] [blame] | 23 | // Proto library |
| 24 | java_library_host { |
| 25 | name: "telephonylookupprotos", |
| 26 | proto: { |
| 27 | type: "full", |
| 28 | include_dirs: ["external/protobuf/src"], |
| 29 | }, |
| 30 | |
| 31 | srcs: ["src/main/proto/**/*.proto"], |
| 32 | } |
| 33 | |
| 34 | // The telephonylookup_generator host tool. |
| 35 | java_binary_host { |
| 36 | name: "telephonylookup_generator", |
| 37 | |
| 38 | main_class: "com.android.libcore.timezone.telephonylookup.TelephonyLookupGenerator", |
| 39 | srcs: ["src/main/java/**/*.java"], |
| 40 | static_libs: [ |
| 41 | "icu4j", |
| 42 | "libprotobuf-java-full", |
| 43 | "telephonylookupprotos", |
| 44 | "tztools_common", |
| 45 | ], |
| 46 | } |
| 47 | |
| 48 | // Tests for the telephonylookup_generator host tool. |
| 49 | java_test_host { |
| 50 | name: "telephonylookup_generator_tests", |
| 51 | |
| 52 | srcs: ["src/test/java/**/*.java"], |
Julien Desprez | 95bc2fa | 2020-12-21 10:15:56 -0800 | [diff] [blame] | 53 | test_options: { |
| 54 | unit_test: true, |
| 55 | }, |
Neil Fuller | b2fff33 | 2019-10-28 16:06:09 +0000 | [diff] [blame] | 56 | static_libs: [ |
| 57 | "junit", |
| 58 | "telephonylookup_generator", |
| 59 | "tztools_common_testing", |
| 60 | ], |
Neil Fuller | b2fff33 | 2019-10-28 16:06:09 +0000 | [diff] [blame] | 61 | } |