John Reck | fe7db0b | 2018-09-25 13:07:21 -0700 | [diff] [blame] | 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 | |
Bob Badour | 58f2469 | 2021-02-03 23:46:10 -0800 | [diff] [blame] | 15 | package { |
| 16 | default_applicable_licenses: ["tools_trebuchet_license"], |
| 17 | } |
| 18 | |
| 19 | // Added automatically by a large-scale-change |
| 20 | // http://go/android-license-faq |
| 21 | license { |
| 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 Reck | fe7db0b | 2018-09-25 13:07:21 -0700 | [diff] [blame] | 32 | java_defaults { |
| 33 | name: "trebuchet-defaults", |
| 34 | javacflags: [ |
| 35 | "-Xcoroutines=enable", |
| 36 | ], |
| 37 | } |
| 38 | |
| 39 | java_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 Reck | fe7db0b | 2018-09-25 13:07:21 -0700 | [diff] [blame] | 49 | } |
| 50 | |
John Reck | 37fc1ac | 2018-10-03 19:11:41 -0700 | [diff] [blame] | 51 | java_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 Reck | 37fc1ac | 2018-10-03 19:11:41 -0700 | [diff] [blame] | 60 | } |
| 61 | |
John Reck | fe7db0b | 2018-09-25 13:07:21 -0700 | [diff] [blame] | 62 | java_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 Holk | acfb58a | 2019-03-05 12:31:54 -0800 | [diff] [blame] | 76 | test_suites: ["general-tests"], |
John Reck | fe7db0b | 2018-09-25 13:07:21 -0700 | [diff] [blame] | 77 | } |
| 78 | |
Eric Holk | 78fc9b1 | 2019-03-06 20:15:03 -0800 | [diff] [blame] | 79 | java_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 Reck | fe7db0b | 2018-09-25 13:07:21 -0700 | [diff] [blame] | 95 | java_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 | |
| 107 | java_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 Reck | 37fc1ac | 2018-10-03 19:11:41 -0700 | [diff] [blame] | 116 | "trebuchet-startup-common" |
John Reck | fe7db0b | 2018-09-25 13:07:21 -0700 | [diff] [blame] | 117 | ], |
| 118 | } |
| 119 | |
| 120 | java_binary_host { |
Chris Wailes | 1c177ba | 2018-10-11 12:49:19 -0700 | [diff] [blame] | 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 | |
| 133 | java_binary_host { |
John Reck | fe7db0b | 2018-09-25 13:07:21 -0700 | [diff] [blame] | 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 | |
| 145 | java_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 | } |