Colin Cross | fc7ba9e | 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 | |
Paul Duffin | e95a895 | 2017-11-16 15:53:09 +0000 | [diff] [blame] | 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, |
| 28 | hostdex: true, |
| 29 | libs: [ |
| 30 | "framework", |
| 31 | ], |
| 32 | |
| 33 | } |
| 34 | |
Colin Cross | fc7ba9e | 2017-12-07 13:11:06 -0800 | [diff] [blame] | 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", |
Paul Duffin | e95a895 | 2017-11-16 15:53:09 +0000 | [diff] [blame] | 42 | static_libs: ["android.test.base"], |
Colin Cross | fc7ba9e | 2017-12-07 13:11:06 -0800 | [diff] [blame] | 43 | |
| 44 | no_framework_libs: true, |
| 45 | libs: [ |
| 46 | "framework", |
| 47 | ], |
Colin Cross | fc7ba9e | 2017-12-07 13:11:06 -0800 | [diff] [blame] | 48 | } |
| 49 | |
Paul Duffin | e95a895 | 2017-11-16 15:53:09 +0000 | [diff] [blame] | 50 | // Build the repackaged.android.test.base library |
| 51 | // ============================================== |
Paul Duffin | b36eb54 | 2018-01-15 15:47:47 +0000 | [diff] [blame] | 52 | // This contains repackaged versions of the classes from |
| 53 | // android.test.base. |
Colin Cross | fc7ba9e | 2017-12-07 13:11:06 -0800 | [diff] [blame] | 54 | java_library_static { |
Paul Duffin | e95a895 | 2017-11-16 15:53:09 +0000 | [diff] [blame] | 55 | name: "repackaged.android.test.base", |
Colin Cross | fc7ba9e | 2017-12-07 13:11:06 -0800 | [diff] [blame] | 56 | |
Paul Duffin | e95a895 | 2017-11-16 15:53:09 +0000 | [diff] [blame] | 57 | static_libs: ["android.test.base"], |
| 58 | |
| 59 | no_framework_libs: true, |
| 60 | libs: [ |
| 61 | "framework", |
| 62 | ], |
Colin Cross | fc7ba9e | 2017-12-07 13:11:06 -0800 | [diff] [blame] | 63 | |
| 64 | jarjar_rules: "jarjar-rules.txt", |
| 65 | } |
| 66 | |
Paul Duffin | bee7cce | 2018-01-05 15:11:18 +0000 | [diff] [blame^] | 67 | // Build the android.test.base-minus-junit library |
| 68 | // =============================================== |
| 69 | // This contains the android.test classes from android.test.base plus |
| 70 | // the com.android.internal.util.Predicate[s] classes. This is only |
| 71 | // intended for inclusion in the android.test.legacy static library and |
| 72 | // must not be used elsewhere. |
| 73 | java_library_static { |
| 74 | name: "android.test.base-minus-junit", |
| 75 | |
| 76 | srcs: [ |
| 77 | "src/android/**/*.java", |
| 78 | "src/com/**/*.java", |
| 79 | ], |
| 80 | |
| 81 | sdk_version: "current", |
| 82 | libs: [ |
| 83 | "junit", |
| 84 | ], |
| 85 | } |
| 86 | |
Colin Cross | fc7ba9e | 2017-12-07 13:11:06 -0800 | [diff] [blame] | 87 | // Build the legacy-android-test library |
| 88 | // ===================================== |
| 89 | // This contains the android.test classes that were in Android API level 25, |
| 90 | // including those from android.test.runner. |
| 91 | // Also contains the com.android.internal.util.Predicate[s] classes. |
| 92 | java_library_static { |
| 93 | name: "legacy-android-test", |
| 94 | |
| 95 | srcs: [ |
| 96 | "src/android/**/*.java", |
| 97 | "src/com/**/*.java", |
| 98 | ], |
| 99 | |
| 100 | static_libs: [ |
Paul Duffin | a88eb29 | 2018-01-12 16:08:35 +0000 | [diff] [blame] | 101 | "android.test.runner-minus-junit", |
Colin Cross | fc7ba9e | 2017-12-07 13:11:06 -0800 | [diff] [blame] | 102 | "android.test.mock", |
| 103 | ], |
| 104 | |
| 105 | no_framework_libs: true, |
| 106 | libs: [ |
| 107 | "framework", |
| 108 | "junit", |
| 109 | ], |
| 110 | } |