blob: 6391fa0a97f2d7bbfb8c03fe96ea9c486ee5a143 [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 ],
61}
62
63java_binary_host {
64 name: "AnalyzerKt",
65 defaults: ["trebuchet-defaults"],
66 manifest: "trebuchet/analyzer/MANIFEST.mf",
67 srcs: [
68 "trebuchet/analyzer/src/**/*.kt",
69 ],
70 static_libs: [
71 "trebuchet-core",
72 ],
73}
74
75java_binary_host {
76 name: "StartupAnalyzerKt",
77 defaults: ["trebuchet-defaults"],
78 manifest: "trebuchet/startup-analyzer/MANIFEST.mf",
79 srcs: [
80 "trebuchet/startup-analyzer/src/**/*.kt",
81 ],
82 static_libs: [
83 "trebuchet-core",
John Reck37fc1ac2018-10-03 19:11:41 -070084 "trebuchet-startup-common"
John Reckfe7db0b2018-09-25 13:07:21 -070085 ],
86}
87
88java_binary_host {
89 name: "traceutils",
90 defaults: ["trebuchet-defaults"],
91 manifest: "trebuchet/traceutils/MANIFEST.mf",
92 srcs: [
93 "trebuchet/traceutils/src/**/*.kt",
94 ],
95 static_libs: [
96 "trebuchet-core",
97 ],
98}
99
100java_binary_host {
101 name: "traceviewer",
102 defaults: ["trebuchet-defaults"],
103 manifest: "trebuchet/viewer/MANIFEST.mf",
104 srcs: [
105 "trebuchet/viewer/src/main/**/*.kt",
106 ],
107 static_libs: [
108 "trebuchet-core",
109 ],
110}