blob: 8fbc3e8a78dba676aebce54fb9f3262b3e27b713 [file] [log] [blame]
Bob Badour8a6a2bc2021-02-12 17:07:05 -08001package {
2 // See: http://go/android-license-faq
3 // A large-scale-change added 'default_applicable_licenses' to import
4 // all of the 'license_kinds' from "frameworks_base_license"
5 // to get the below license kinds:
6 // SPDX-license-identifier-Apache-2.0
7 default_applicable_licenses: ["frameworks_base_license"],
8}
9
Adam Pardyl0f1b3d42019-08-19 15:24:11 +020010java_library_host {
11 name: "protologtool-lib",
12 srcs: [
13 "src/com/android/protolog/tool/**/*.kt",
Pablo Gamito5fe2c802024-02-12 12:48:48 +000014 ":protolog-common-src",
Adam Pardyl0f1b3d42019-08-19 15:24:11 +020015 ],
16 static_libs: [
Adam Pardyl0f1b3d42019-08-19 15:24:11 +020017 "javaparser",
Wenjie Zhou27030cd2020-04-15 10:35:07 -070018 "platformprotos",
Adam Pardyl0f1b3d42019-08-19 15:24:11 +020019 "jsonlib",
Pablo Gamito5fe2c802024-02-12 12:48:48 +000020 "perfetto_trace-full",
Adam Pardyl0f1b3d42019-08-19 15:24:11 +020021 ],
22}
23
Adam Pardylfab9ad62019-08-27 02:07:16 +020024java_binary_host {
25 name: "protologtool",
26 manifest: "manifest.txt",
Adam Pardylfab9ad62019-08-27 02:07:16 +020027 static_libs: [
Adam Pardyl0f1b3d42019-08-19 15:24:11 +020028 "protologtool-lib",
Adam Pardylfab9ad62019-08-27 02:07:16 +020029 ],
30}
31
32java_test_host {
33 name: "protologtool-tests",
34 test_suites: ["general-tests"],
35 srcs: [
Adam Pardylfab9ad62019-08-27 02:07:16 +020036 "tests/**/*.kt",
37 ],
Julien Desprezf9be7162021-02-23 04:28:45 +000038 test_options: {
39 unit_test: true,
40 },
Adam Pardylfab9ad62019-08-27 02:07:16 +020041 static_libs: [
Adam Pardyl0f1b3d42019-08-19 15:24:11 +020042 "protologtool-lib",
Adam Pardylfab9ad62019-08-27 02:07:16 +020043 "junit",
44 "mockito",
Julien Desprezf9be7162021-02-23 04:28:45 +000045 "objenesis",
Pablo Gamito329813a2024-02-13 14:27:15 +000046 "truth",
Adam Pardylfab9ad62019-08-27 02:07:16 +020047 ],
48}