Colin Cross | 2b7d71c | 2017-12-07 13:11:06 -0800 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2016 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
| 16 | |
| 17 | // Build the android.test.base library |
| 18 | // =================================== |
| 19 | // This contains the junit.framework and android.test classes that were in |
| 20 | // Android API level 25 excluding those from android.test.runner. |
| 21 | // Also contains the com.android.internal.util.Predicate[s] classes. |
| 22 | java_library { |
| 23 | name: "android.test.base", |
| 24 | |
| 25 | srcs: ["src/**/*.java"], |
| 26 | |
| 27 | no_framework_libs: true, |
Paul Duffin | d8871e2 | 2017-12-15 13:52:59 +0000 | [diff] [blame] | 28 | hostdex: true, |
Colin Cross | 2b7d71c | 2017-12-07 13:11:06 -0800 | [diff] [blame] | 29 | libs: [ |
| 30 | "framework", |
| 31 | ], |
| 32 | |
| 33 | } |
| 34 | |
| 35 | // Build the legacy-test library |
| 36 | // ============================= |
| 37 | // This contains the junit.framework and android.test classes that were in |
| 38 | // Android API level 25 excluding those from android.test.runner. |
| 39 | // Also contains the com.android.internal.util.Predicate[s] classes. |
| 40 | java_library { |
| 41 | name: "legacy-test", |
| 42 | static_libs: ["android.test.base"], |
| 43 | |
| 44 | no_framework_libs: true, |
| 45 | libs: [ |
| 46 | "framework", |
| 47 | ], |
| 48 | } |
| 49 | |
| 50 | // Build the repackaged.android.test.base library |
| 51 | // ============================================== |
| 52 | // This contains repackaged versions of the classes from legacy-test. |
| 53 | java_library_static { |
| 54 | name: "repackaged.android.test.base", |
| 55 | |
| 56 | static_libs: ["android.test.base"], |
| 57 | |
| 58 | no_framework_libs: true, |
| 59 | libs: [ |
| 60 | "framework", |
| 61 | ], |
| 62 | |
| 63 | jarjar_rules: "jarjar-rules.txt", |
| 64 | } |
| 65 | |
| 66 | // Build the legacy-android-test library |
| 67 | // ===================================== |
| 68 | // This contains the android.test classes that were in Android API level 25, |
| 69 | // including those from android.test.runner. |
| 70 | // Also contains the com.android.internal.util.Predicate[s] classes. |
| 71 | java_library_static { |
| 72 | name: "legacy-android-test", |
| 73 | |
| 74 | srcs: [ |
| 75 | "src/android/**/*.java", |
| 76 | "src/com/**/*.java", |
| 77 | ], |
| 78 | |
| 79 | static_libs: [ |
| 80 | "android.test.runner", |
| 81 | "android.test.mock", |
| 82 | ], |
| 83 | |
| 84 | no_framework_libs: true, |
| 85 | libs: [ |
| 86 | "framework", |
| 87 | "junit", |
| 88 | ], |
| 89 | } |