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: "satellite-s2storage-tools", 21 srcs: [ 22 "src/main/java/**/*.java", 23 ], 24 static_libs: [ 25 "jcommander", 26 "guava", 27 "satellite-s2storage-rw", 28 "s2storage_tools", 29 "s2-geometry-library-java", 30 ], 31} 32 33// A tool to create a binary satellite S2 file. 34java_binary_host { 35 name: "satellite_createsats2file", 36 main_class: "com.android.telephony.tools.sats2.CreateSatS2File", 37 static_libs: [ 38 "satellite-s2storage-tools", 39 ], 40} 41 42// A tool to look up a location in the input binary satellite S2 file. 43java_binary_host { 44 name: "satellite_location_lookup", 45 main_class: "com.android.telephony.tools.sats2.SatS2LocationLookup", 46 static_libs: [ 47 "satellite-s2storage-tools", 48 ], 49} 50 51// A tool to create a test satellite S2 file. 52java_binary_host { 53 name: "satellite_createsats2file_test", 54 main_class: "com.android.telephony.tools.sats2.CreateTestSatS2File", 55 static_libs: [ 56 "satellite-s2storage-tools", 57 ], 58} 59 60// A tool to dump a satellite S2 file as text for debugging. 61java_binary_host { 62 name: "satellite_dumpsats2file", 63 main_class: "com.android.telephony.tools.sats2.DumpSatS2File", 64 static_libs: [ 65 "satellite-s2storage-tools", 66 ], 67} 68 69// Tests for CreateSatS2File. 70java_test_host { 71 name: "SatelliteToolsTests", 72 srcs: ["src/test/java/**/*.java"], 73 static_libs: [ 74 "junit", 75 "satellite-s2storage-tools", 76 "s2-geometry-library-java", 77 "satellite-s2storage-testutils" 78 ], 79 test_suites: ["general-tests"], 80}