blob: 6c0735f9af44e95374ef426c8220726ff2e694eb [file] [log] [blame]
John Reckfe7db0b2018-09-25 13:07:21 -07001// Copyright (C) 2018 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
Bob Badour58f24692021-02-03 23:46:10 -080015package {
16 default_applicable_licenses: ["tools_trebuchet_license"],
17}
18
19// Added automatically by a large-scale-change
20// http://go/android-license-faq
21license {
22 name: "tools_trebuchet_license",
23 visibility: [":__subpackages__"],
24 license_kinds: [
25 "SPDX-license-identifier-Apache-2.0",
26 ],
27 license_text: [
28 "LICENSE",
29 ],
30}
31
John Reckfe7db0b2018-09-25 13:07:21 -070032java_defaults {
33 name: "trebuchet-defaults",
34 javacflags: [
35 "-Xcoroutines=enable",
36 ],
37}
38
39java_library_host {
40 name: "trebuchet-core",
41 defaults: ["trebuchet-defaults"],
42 srcs: [
43 "core/common/src/main/**/*.kt",
44 "core/model/src/main/**/*.kt",
45 ],
46 libs: [
47 "kotlin-reflect",
48 ],
John Reckfe7db0b2018-09-25 13:07:21 -070049}
50
John Reck37fc1ac2018-10-03 19:11:41 -070051java_library_host {
52 name: "trebuchet-startup-common",
53 defaults: ["trebuchet-defaults"],
54 srcs: [
55 "trebuchet/startup-common/src/**/*.kt",
56 ],
57 libs: [
58 "trebuchet-core",
59 ],
John Reck37fc1ac2018-10-03 19:11:41 -070060}
61
John Reckfe7db0b2018-09-25 13:07:21 -070062java_test_host {
63 name: "trebuchet-core-tests",
64 defaults: ["trebuchet-defaults"],
65 srcs: [
66 "core/common/src/test/**/*.kt",
67 ],
68 static_libs: [
69 "trebuchet-core",
70 "kotlin-test",
71 ],
72 libs: [
73 "junit",
74 "kotlin-reflect",
75 ],
Eric Holkacfb58a2019-03-05 12:31:54 -080076 test_suites: ["general-tests"],
John Reckfe7db0b2018-09-25 13:07:21 -070077}
78
Eric Holk78fc9b12019-03-06 20:15:03 -080079java_test_host {
80 name: "trebuchet-startup-common-tests",
81 defaults: ["trebuchet-defaults"],
82 srcs: [
83 "trebuchet/startup-common/test/**/*.kt",
84 ],
85 static_libs: [
86 "trebuchet-core",
87 "trebuchet-startup-common",
88 ],
89 libs: [
90 "junit",
91 ],
92 test_suites: ["general-tests"],
93}
94
John Reckfe7db0b2018-09-25 13:07:21 -070095java_binary_host {
96 name: "AnalyzerKt",
97 defaults: ["trebuchet-defaults"],
98 manifest: "trebuchet/analyzer/MANIFEST.mf",
99 srcs: [
100 "trebuchet/analyzer/src/**/*.kt",
101 ],
102 static_libs: [
103 "trebuchet-core",
104 ],
105}
106
107java_binary_host {
108 name: "StartupAnalyzerKt",
109 defaults: ["trebuchet-defaults"],
110 manifest: "trebuchet/startup-analyzer/MANIFEST.mf",
111 srcs: [
112 "trebuchet/startup-analyzer/src/**/*.kt",
113 ],
114 static_libs: [
115 "trebuchet-core",
John Reck37fc1ac2018-10-03 19:11:41 -0700116 "trebuchet-startup-common"
John Reckfe7db0b2018-09-25 13:07:21 -0700117 ],
118}
119
120java_binary_host {
Chris Wailes1c177ba2018-10-11 12:49:19 -0700121 name: "StartupSummarizerKt",
122 defaults: ["trebuchet-defaults"],
123 manifest: "trebuchet/startup-summarizer/MANIFEST.mf",
124 srcs: [
125 "trebuchet/startup-summarizer/src/**/*.kt",
126 ],
127 static_libs: [
128 "trebuchet-core",
129 "trebuchet-startup-common"
130 ],
131}
132
133java_binary_host {
John Reckfe7db0b2018-09-25 13:07:21 -0700134 name: "traceutils",
135 defaults: ["trebuchet-defaults"],
136 manifest: "trebuchet/traceutils/MANIFEST.mf",
137 srcs: [
138 "trebuchet/traceutils/src/**/*.kt",
139 ],
140 static_libs: [
141 "trebuchet-core",
142 ],
143}
144
145java_binary_host {
146 name: "traceviewer",
147 defaults: ["trebuchet-defaults"],
148 manifest: "trebuchet/viewer/MANIFEST.mf",
149 srcs: [
150 "trebuchet/viewer/src/main/**/*.kt",
151 ],
152 static_libs: [
153 "trebuchet-core",
154 ],
155}