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_team: "trendy_team_android_core_graphics_stack", 17 default_applicable_licenses: ["tools_trebuchet_license"], 18} 19 20// Added automatically by a large-scale-change 21// http://go/android-license-faq 22license { 23 name: "tools_trebuchet_license", 24 visibility: [":__subpackages__"], 25 license_kinds: [ 26 "SPDX-license-identifier-Apache-2.0", 27 ], 28 license_text: [ 29 "LICENSE", 30 ], 31} 32 33java_defaults { 34 name: "trebuchet-defaults", 35 javacflags: [ 36 "-Xcoroutines=enable", 37 ], 38} 39 40java_library_host { 41 name: "trebuchet-core", 42 defaults: ["trebuchet-defaults"], 43 srcs: [ 44 "core/common/src/main/**/*.kt", 45 "core/model/src/main/**/*.kt", 46 ], 47 libs: [ 48 "kotlin-reflect", 49 ], 50} 51 52java_library_host { 53 name: "trebuchet-startup-common", 54 defaults: ["trebuchet-defaults"], 55 srcs: [ 56 "trebuchet/startup-common/src/**/*.kt", 57 ], 58 libs: [ 59 "trebuchet-core", 60 ], 61} 62 63java_test_host { 64 name: "trebuchet-core-tests", 65 defaults: ["trebuchet-defaults"], 66 srcs: [ 67 "core/common/src/test/**/*.kt", 68 ], 69 static_libs: [ 70 "trebuchet-core", 71 "kotlin-test", 72 ], 73 libs: [ 74 "junit", 75 "kotlin-reflect", 76 ], 77 test_suites: ["general-tests"], 78} 79 80java_test_host { 81 name: "trebuchet-startup-common-tests", 82 defaults: ["trebuchet-defaults"], 83 srcs: [ 84 "trebuchet/startup-common/test/**/*.kt", 85 ], 86 static_libs: [ 87 "trebuchet-core", 88 "trebuchet-startup-common", 89 ], 90 libs: [ 91 "junit", 92 ], 93 test_suites: ["general-tests"], 94} 95 96java_binary_host { 97 name: "AnalyzerKt", 98 defaults: ["trebuchet-defaults"], 99 manifest: "trebuchet/analyzer/MANIFEST.mf", 100 srcs: [ 101 "trebuchet/analyzer/src/**/*.kt", 102 ], 103 static_libs: [ 104 "trebuchet-core", 105 ], 106} 107 108java_binary_host { 109 name: "StartupAnalyzerKt", 110 defaults: ["trebuchet-defaults"], 111 manifest: "trebuchet/startup-analyzer/MANIFEST.mf", 112 srcs: [ 113 "trebuchet/startup-analyzer/src/**/*.kt", 114 ], 115 static_libs: [ 116 "trebuchet-core", 117 "trebuchet-startup-common", 118 ], 119} 120 121java_binary_host { 122 name: "StartupSummarizerKt", 123 defaults: ["trebuchet-defaults"], 124 manifest: "trebuchet/startup-summarizer/MANIFEST.mf", 125 srcs: [ 126 "trebuchet/startup-summarizer/src/**/*.kt", 127 ], 128 static_libs: [ 129 "trebuchet-core", 130 "trebuchet-startup-common", 131 ], 132} 133 134java_binary_host { 135 name: "traceutils", 136 defaults: ["trebuchet-defaults"], 137 manifest: "trebuchet/traceutils/MANIFEST.mf", 138 srcs: [ 139 "trebuchet/traceutils/src/**/*.kt", 140 ], 141 static_libs: [ 142 "trebuchet-core", 143 ], 144} 145 146java_binary_host { 147 name: "traceviewer", 148 defaults: ["trebuchet-defaults"], 149 manifest: "trebuchet/viewer/MANIFEST.mf", 150 srcs: [ 151 "trebuchet/viewer/src/main/**/*.kt", 152 ], 153 static_libs: [ 154 "trebuchet-core", 155 ], 156} 157