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 15package { 16 // http://go/android-license-faq 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20// Proto library 21java_library_host { 22 name: "tzids_protos", 23 24 proto: { 25 type: "full", 26 include_dirs: ["external/protobuf/src"], 27 }, 28 29 srcs: ["src/main/proto/**/*.proto"], 30} 31 32java_library_host { 33 name: "tzids", 34 srcs: ["src/main/java/**/*.java"], 35 static_libs: ["tzids_protos"], 36} 37 38java_test_host { 39 name: "tzids_tests", 40 41 srcs: ["src/test/java/**/*.java"], 42 test_options: { 43 unit_test: true, 44 }, 45 static_libs: [ 46 "junit", 47 "tzids", 48 ], 49} 50