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 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19java_library_host { 20 name: "geotz_s2storage_tools", 21 srcs: [ 22 "src/java/com/android/timezone/**/*.java", 23 ], 24 static_libs: [ 25 "geotz_host_common", 26 "geotz_s2storage_tools_protos", 27 "geotz_s2storage_rw", 28 "jcommander", 29 "libprotobuf-java-full", 30 "s2storage_tools", 31 ], 32} 33 34java_library_host { 35 name: "geotz_s2storage_tools_protos", 36 srcs: ["src/proto/**/*.proto"], 37 proto: { 38 type: "full", 39 include_dirs: ["external/protobuf/src"], 40 }, 41} 42 43// A tool to dump a tzs2 file as text for debugging. 44java_binary_host { 45 name: "geotz_dumptzs2file", 46 main_class: "com.android.timezone.location.tools.tzs2.DumpTzS2File", 47 static_libs: [ 48 "geotz_s2storage_tools", 49 ], 50} 51 52// A tool to create a tzs2 file from protos. 53java_binary_host { 54 name: "geotz_createtzs2file", 55 main_class: "com.android.timezone.location.tools.tzs2.CreateTzS2File", 56 static_libs: [ 57 "geotz_s2storage_tools", 58 ], 59} 60