xref: /aosp_15_r20/system/timezone/input_tools/android/tzids/Android.bp (revision 2fd832c65f8b41db7ddb4ac802b9196762fe4888)
1*2fd832c6SAndroid Build Coastguard Worker// Copyright (C) 2020 The Android Open Source Project
2*2fd832c6SAndroid Build Coastguard Worker//
3*2fd832c6SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*2fd832c6SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*2fd832c6SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*2fd832c6SAndroid Build Coastguard Worker//
7*2fd832c6SAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
8*2fd832c6SAndroid Build Coastguard Worker//
9*2fd832c6SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*2fd832c6SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*2fd832c6SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*2fd832c6SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*2fd832c6SAndroid Build Coastguard Worker// limitations under the License.
14*2fd832c6SAndroid Build Coastguard Worker
15*2fd832c6SAndroid Build Coastguard Workerpackage {
16*2fd832c6SAndroid Build Coastguard Worker    default_team: "trendy_team_java_core_libraries",
17*2fd832c6SAndroid Build Coastguard Worker    // http://go/android-license-faq
18*2fd832c6SAndroid Build Coastguard Worker    default_applicable_licenses: ["Android-Apache-2.0"],
19*2fd832c6SAndroid Build Coastguard Worker}
20*2fd832c6SAndroid Build Coastguard Worker
21*2fd832c6SAndroid Build Coastguard Worker// Proto library
22*2fd832c6SAndroid Build Coastguard Workerjava_library_host {
23*2fd832c6SAndroid Build Coastguard Worker    name: "tzids_protos",
24*2fd832c6SAndroid Build Coastguard Worker
25*2fd832c6SAndroid Build Coastguard Worker    proto: {
26*2fd832c6SAndroid Build Coastguard Worker        type: "full",
27*2fd832c6SAndroid Build Coastguard Worker        include_dirs: ["external/protobuf/src"],
28*2fd832c6SAndroid Build Coastguard Worker    },
29*2fd832c6SAndroid Build Coastguard Worker
30*2fd832c6SAndroid Build Coastguard Worker    srcs: ["src/main/proto/**/*.proto"],
31*2fd832c6SAndroid Build Coastguard Worker}
32*2fd832c6SAndroid Build Coastguard Worker
33*2fd832c6SAndroid Build Coastguard Workerjava_library_host {
34*2fd832c6SAndroid Build Coastguard Worker    name: "tzids",
35*2fd832c6SAndroid Build Coastguard Worker    srcs: ["src/main/java/**/*.java"],
36*2fd832c6SAndroid Build Coastguard Worker    static_libs: ["tzids_protos"],
37*2fd832c6SAndroid Build Coastguard Worker}
38*2fd832c6SAndroid Build Coastguard Worker
39*2fd832c6SAndroid Build Coastguard Workerjava_test_host {
40*2fd832c6SAndroid Build Coastguard Worker    name: "tzids_tests",
41*2fd832c6SAndroid Build Coastguard Worker
42*2fd832c6SAndroid Build Coastguard Worker    srcs: ["src/test/java/**/*.java"],
43*2fd832c6SAndroid Build Coastguard Worker    test_options: {
44*2fd832c6SAndroid Build Coastguard Worker        unit_test: true,
45*2fd832c6SAndroid Build Coastguard Worker    },
46*2fd832c6SAndroid Build Coastguard Worker    static_libs: [
47*2fd832c6SAndroid Build Coastguard Worker        "junit",
48*2fd832c6SAndroid Build Coastguard Worker        "tzids",
49*2fd832c6SAndroid Build Coastguard Worker    ],
50*2fd832c6SAndroid Build Coastguard Worker}
51