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 | |
| 15 | java_defaults { |
| 16 | name: "trebuchet-defaults", |
| 17 | javacflags: [ |
| 18 | "-Xcoroutines=enable", |
| 19 | ], |
| 20 | } |
| 21 | |
| 22 | java_library_host { |
| 23 | name: "trebuchet-core", |
| 24 | defaults: ["trebuchet-defaults"], |
| 25 | srcs: [ |
| 26 | "core/common/src/main/**/*.kt", |
| 27 | "core/model/src/main/**/*.kt", |
| 28 | ], |
| 29 | libs: [ |
| 30 | "kotlin-reflect", |
| 31 | ], |
| 32 | no_framework_libs: true, |
| 33 | } |
| 34 | |
| 35 | java_test_host { |
| 36 | name: "trebuchet-core-tests", |
| 37 | defaults: ["trebuchet-defaults"], |
| 38 | srcs: [ |
| 39 | "core/common/src/test/**/*.kt", |
| 40 | ], |
| 41 | static_libs: [ |
| 42 | "trebuchet-core", |
| 43 | "kotlin-test", |
| 44 | ], |
| 45 | libs: [ |
| 46 | "junit", |
| 47 | "kotlin-reflect", |
| 48 | ], |
| 49 | } |
| 50 | |
| 51 | java_binary_host { |
| 52 | name: "AnalyzerKt", |
| 53 | defaults: ["trebuchet-defaults"], |
| 54 | manifest: "trebuchet/analyzer/MANIFEST.mf", |
| 55 | srcs: [ |
| 56 | "trebuchet/analyzer/src/**/*.kt", |
| 57 | ], |
| 58 | static_libs: [ |
| 59 | "trebuchet-core", |
| 60 | ], |
| 61 | } |
| 62 | |
| 63 | java_binary_host { |
| 64 | name: "StartupAnalyzerKt", |
| 65 | defaults: ["trebuchet-defaults"], |
| 66 | manifest: "trebuchet/startup-analyzer/MANIFEST.mf", |
| 67 | srcs: [ |
| 68 | "trebuchet/startup-analyzer/src/**/*.kt", |
| 69 | ], |
| 70 | static_libs: [ |
| 71 | "trebuchet-core", |
| 72 | ], |
| 73 | } |
| 74 | |
| 75 | java_binary_host { |
| 76 | name: "traceutils", |
| 77 | defaults: ["trebuchet-defaults"], |
| 78 | manifest: "trebuchet/traceutils/MANIFEST.mf", |
| 79 | srcs: [ |
| 80 | "trebuchet/traceutils/src/**/*.kt", |
| 81 | ], |
| 82 | static_libs: [ |
| 83 | "trebuchet-core", |
| 84 | ], |
| 85 | } |
| 86 | |
| 87 | java_binary_host { |
| 88 | name: "traceviewer", |
| 89 | defaults: ["trebuchet-defaults"], |
| 90 | manifest: "trebuchet/viewer/MANIFEST.mf", |
| 91 | srcs: [ |
| 92 | "trebuchet/viewer/src/main/**/*.kt", |
| 93 | ], |
| 94 | static_libs: [ |
| 95 | "trebuchet-core", |
| 96 | ], |
| 97 | } |