blob: b7b5decc979e6c28d908dcd25baeee29eef98bfa [file] [log] [blame]
Thomas Nguyen1f049df2023-11-23 10:20:54 -08001// 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
Thomas Nguyen4f9c89e2023-12-18 10:51:57 -080042// 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
Thomas Nguyen1f049df2023-11-23 10:20:54 -080051// 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"],
Hakjun Choi898f8cd2024-11-07 17:18:52 +000073 java_resource_dirs: ["src/test/java/"],
Thomas Nguyen1f049df2023-11-23 10:20:54 -080074 static_libs: [
75 "junit",
76 "satellite-s2storage-tools",
77 "s2-geometry-library-java",
Hakjun Choi898f8cd2024-11-07 17:18:52 +000078 "satellite-s2storage-testutils",
Thomas Nguyen1f049df2023-11-23 10:20:54 -080079 ],
80 test_suites: ["general-tests"],
Hakjun Choi898f8cd2024-11-07 17:18:52 +000081}