aboutsummaryrefslogtreecommitdiffstats
path: root/Android.bp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2018-09-25 13:07:21 -0700
committerJohn Reck <jreck@google.com>2018-09-25 13:32:10 -0700
commitfe7db0b9c70f030efc8d5ca137194e8091a1804d (patch)
tree49ee5735654d00a3ff7fa43a1fd460580f5b52fb /Android.bp
parent7f0a7b9711a6bbc8f5277908cbbc4c25814c7026 (diff)
downloadplatform_tools_trebuchet-fe7db0b9c70f030efc8d5ca137194e8091a1804d.tar.gz
platform_tools_trebuchet-fe7db0b9c70f030efc8d5ca137194e8091a1804d.tar.bz2
platform_tools_trebuchet-fe7db0b9c70f030efc8d5ca137194e8091a1804d.zip
Initial import of trebuchet
Bulk copy from previous team-gerrit Test: make Change-Id: I82234f36e6467b1d1e895feebd43f1891308c6bf
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp97
1 files changed, 97 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..d963cb2
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,97 @@
+// 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.
+
+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",
+ ],
+ no_framework_libs: true,
+}
+
+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",
+ ],
+}
+
+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",
+ ],
+}
+
+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",
+ ],
+}