Neil Fuller | 7803149 | 2020-08-07 21:17:58 +0100 | [diff] [blame] | 1 | // Copyright (C) 2020 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 | 7803149 | 2020-08-07 21:17:58 +0100 | [diff] [blame] | 23 | // Proto library |
| 24 | java_library_host { |
| 25 | name: "tzids_protos", |
| 26 | |
| 27 | proto: { |
| 28 | type: "full", |
| 29 | include_dirs: ["external/protobuf/src"], |
| 30 | }, |
| 31 | |
| 32 | srcs: ["src/main/proto/**/*.proto"], |
| 33 | } |
| 34 | |
| 35 | java_library_host { |
| 36 | name: "tzids", |
| 37 | srcs: ["src/main/java/**/*.java"], |
| 38 | static_libs: ["tzids_protos"], |
| 39 | } |
| 40 | |
| 41 | java_test_host { |
| 42 | name: "tzids_tests", |
| 43 | |
| 44 | srcs: ["src/test/java/**/*.java"], |
Julien Desprez | 95bc2fa | 2020-12-21 10:15:56 -0800 | [diff] [blame] | 45 | test_options: { |
| 46 | unit_test: true, |
| 47 | }, |
Neil Fuller | 7803149 | 2020-08-07 21:17:58 +0100 | [diff] [blame] | 48 | static_libs: [ |
| 49 | "junit", |
| 50 | "tzids", |
| 51 | ], |
Neil Fuller | 7803149 | 2020-08-07 21:17:58 +0100 | [diff] [blame] | 52 | } |