1// Copyright (C) 2017 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
15package {
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
23// Proto library
24java_library_host {
25    name: "countryzones_protos",
26
27    proto: {
28        type: "full",
29        include_dirs: ["external/protobuf/src"],
30    },
31
32    srcs: ["src/main/proto/**/*.proto"],
33}
34
35java_library_host {
36    name: "tzlookup",
37
38    srcs: ["src/main/java/**/*.java"],
39    static_libs: [
40        "countryzones_protos",
41        "icu4j",
42        "tzids",
43        "tztools_common",
44    ],
45}
46
47// The tzlookup_generator host tool.
48java_binary_host {
49    name: "tzlookup_generator",
50
51    main_class: "com.android.libcore.timezone.tzlookup.TzLookupGenerator",
52    srcs: ["src/main/java/**/*.java"],
53    static_libs: [
54        "tzlookup",
55    ],
56}
57
58java_test_host {
59    name: "tzlookup_tests",
60
61    srcs: ["src/test/java/**/*.java"],
62    test_options: {
63        unit_test: true,
64    },
65    static_libs: [
66        "junit",
67        "tzlookup",
68        "tztools_common_testing",
69    ],
70}
71