You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
156 lines
3.5 KiB
156 lines
3.5 KiB
// Copyright (C) 2018 The Android Open Source Project
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
package {
|
|
default_applicable_licenses: ["tools_trebuchet_license"],
|
|
}
|
|
|
|
// Added automatically by a large-scale-change
|
|
// http://go/android-license-faq
|
|
license {
|
|
name: "tools_trebuchet_license",
|
|
visibility: [":__subpackages__"],
|
|
license_kinds: [
|
|
"SPDX-license-identifier-Apache-2.0",
|
|
],
|
|
license_text: [
|
|
"LICENSE",
|
|
],
|
|
}
|
|
|
|
java_defaults {
|
|
name: "trebuchet-defaults",
|
|
javacflags: [
|
|
"-Xcoroutines=enable",
|
|
],
|
|
}
|
|
|
|
java_library_host {
|
|
name: "trebuchet-core",
|
|
defaults: ["trebuchet-defaults"],
|
|
srcs: [
|
|
"core/common/src/main/**/*.kt",
|
|
"core/model/src/main/**/*.kt",
|
|
],
|
|
libs: [
|
|
"kotlin-reflect",
|
|
],
|
|
}
|
|
|
|
java_library_host {
|
|
name: "trebuchet-startup-common",
|
|
defaults: ["trebuchet-defaults"],
|
|
srcs: [
|
|
"trebuchet/startup-common/src/**/*.kt",
|
|
],
|
|
libs: [
|
|
"trebuchet-core",
|
|
],
|
|
}
|
|
|
|
java_test_host {
|
|
name: "trebuchet-core-tests",
|
|
defaults: ["trebuchet-defaults"],
|
|
srcs: [
|
|
"core/common/src/test/**/*.kt",
|
|
],
|
|
static_libs: [
|
|
"trebuchet-core",
|
|
"kotlin-test",
|
|
],
|
|
libs: [
|
|
"junit",
|
|
"kotlin-reflect",
|
|
],
|
|
test_suites: ["general-tests"],
|
|
}
|
|
|
|
java_test_host {
|
|
name: "trebuchet-startup-common-tests",
|
|
defaults: ["trebuchet-defaults"],
|
|
srcs: [
|
|
"trebuchet/startup-common/test/**/*.kt",
|
|
],
|
|
static_libs: [
|
|
"trebuchet-core",
|
|
"trebuchet-startup-common",
|
|
],
|
|
libs: [
|
|
"junit",
|
|
],
|
|
test_suites: ["general-tests"],
|
|
}
|
|
|
|
java_binary_host {
|
|
name: "AnalyzerKt",
|
|
defaults: ["trebuchet-defaults"],
|
|
manifest: "trebuchet/analyzer/MANIFEST.mf",
|
|
srcs: [
|
|
"trebuchet/analyzer/src/**/*.kt",
|
|
],
|
|
static_libs: [
|
|
"trebuchet-core",
|
|
],
|
|
}
|
|
|
|
java_binary_host {
|
|
name: "StartupAnalyzerKt",
|
|
defaults: ["trebuchet-defaults"],
|
|
manifest: "trebuchet/startup-analyzer/MANIFEST.mf",
|
|
srcs: [
|
|
"trebuchet/startup-analyzer/src/**/*.kt",
|
|
],
|
|
static_libs: [
|
|
"trebuchet-core",
|
|
"trebuchet-startup-common"
|
|
],
|
|
}
|
|
|
|
java_binary_host {
|
|
name: "StartupSummarizerKt",
|
|
defaults: ["trebuchet-defaults"],
|
|
manifest: "trebuchet/startup-summarizer/MANIFEST.mf",
|
|
srcs: [
|
|
"trebuchet/startup-summarizer/src/**/*.kt",
|
|
],
|
|
static_libs: [
|
|
"trebuchet-core",
|
|
"trebuchet-startup-common"
|
|
],
|
|
}
|
|
|
|
java_binary_host {
|
|
name: "traceutils",
|
|
defaults: ["trebuchet-defaults"],
|
|
manifest: "trebuchet/traceutils/MANIFEST.mf",
|
|
srcs: [
|
|
"trebuchet/traceutils/src/**/*.kt",
|
|
],
|
|
static_libs: [
|
|
"trebuchet-core",
|
|
],
|
|
}
|
|
|
|
java_binary_host {
|
|
name: "traceviewer",
|
|
defaults: ["trebuchet-defaults"],
|
|
manifest: "trebuchet/viewer/MANIFEST.mf",
|
|
srcs: [
|
|
"trebuchet/viewer/src/main/**/*.kt",
|
|
],
|
|
static_libs: [
|
|
"trebuchet-core",
|
|
],
|
|
}
|