• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// 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
15package {
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
32java_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    ],
49}
50
51java_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    ],
60}
61
62java_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    ],
76    test_suites: ["general-tests"],
77}
78
79java_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
95java_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",
116        "trebuchet-startup-common"
117    ],
118}
119
120java_binary_host {
121    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 {
134    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}
156