blob: c5dcc6216380496fe045ea1debc0a6e13714e424 [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
15java_defaults {
16 name: "trebuchet-defaults",
17 javacflags: [
18 "-Xcoroutines=enable",
19 ],
20}
21
22java_library_host {
23 name: "trebuchet-core",
24 defaults: ["trebuchet-defaults"],
25 srcs: [
26 "core/common/src/main/**/*.kt",
27 "core/model/src/main/**/*.kt",
28 ],
29 libs: [
30 "kotlin-reflect",
31 ],
32 no_framework_libs: true,
33}
34
John Reck37fc1ac2018-10-03 19:11:41 -070035java_library_host {
36 name: "trebuchet-startup-common",
37 defaults: ["trebuchet-defaults"],
38 srcs: [
39 "trebuchet/startup-common/src/**/*.kt",
40 ],
41 libs: [
42 "trebuchet-core",
43 ],
44 no_framework_libs: true,
45}
46
John Reckfe7db0b2018-09-25 13:07:21 -070047java_test_host {
48 name: "trebuchet-core-tests",
49 defaults: ["trebuchet-defaults"],
50 srcs: [
51 "core/common/src/test/**/*.kt",
52 ],
53 static_libs: [
54 "trebuchet-core",
55 "kotlin-test",
56 ],
57 libs: [
58 "junit",
59 "kotlin-reflect",
60 ],
Eric Holkacfb58a2019-03-05 12:31:54 -080061 test_suites: ["general-tests"],
John Reckfe7db0b2018-09-25 13:07:21 -070062}
63
64java_binary_host {
65 name: "AnalyzerKt",
66 defaults: ["trebuchet-defaults"],
67 manifest: "trebuchet/analyzer/MANIFEST.mf",
68 srcs: [
69 "trebuchet/analyzer/src/**/*.kt",
70 ],
71 static_libs: [
72 "trebuchet-core",
73 ],
74}
75
76java_binary_host {
77 name: "StartupAnalyzerKt",
78 defaults: ["trebuchet-defaults"],
79 manifest: "trebuchet/startup-analyzer/MANIFEST.mf",
80 srcs: [
81 "trebuchet/startup-analyzer/src/**/*.kt",
82 ],
83 static_libs: [
84 "trebuchet-core",
John Reck37fc1ac2018-10-03 19:11:41 -070085 "trebuchet-startup-common"
John Reckfe7db0b2018-09-25 13:07:21 -070086 ],
87}
88
89java_binary_host {
Chris Wailes1c177ba2018-10-11 12:49:19 -070090 name: "StartupSummarizerKt",
91 defaults: ["trebuchet-defaults"],
92 manifest: "trebuchet/startup-summarizer/MANIFEST.mf",
93 srcs: [
94 "trebuchet/startup-summarizer/src/**/*.kt",
95 ],
96 static_libs: [
97 "trebuchet-core",
98 "trebuchet-startup-common"
99 ],
100}
101
102java_binary_host {
John Reckfe7db0b2018-09-25 13:07:21 -0700103 name: "traceutils",
104 defaults: ["trebuchet-defaults"],
105 manifest: "trebuchet/traceutils/MANIFEST.mf",
106 srcs: [
107 "trebuchet/traceutils/src/**/*.kt",
108 ],
109 static_libs: [
110 "trebuchet-core",
111 ],
112}
113
114java_binary_host {
115 name: "traceviewer",
116 defaults: ["trebuchet-defaults"],
117 manifest: "trebuchet/viewer/MANIFEST.mf",
118 srcs: [
119 "trebuchet/viewer/src/main/**/*.kt",
120 ],
121 static_libs: [
122 "trebuchet-core",
123 ],
124}