Initial import of trebuchet
Bulk copy from previous team-gerrit
Test: make
Change-Id: I82234f36e6467b1d1e895feebd43f1891308c6bf
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",
+ ],
+}