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 | |
| 67 | // Build the legacy-android-test library |
| 68 | // ===================================== |
| 69 | // This contains the android.test classes that were in Android API level 25, |
| 70 | // including those from android.test.runner. |
| 71 | // Also contains the com.android.internal.util.Predicate[s] classes. |
| 72 | java_library_static { |
| 73 | name: "legacy-android-test", |
| 74 | |
| 75 | srcs: [ |
| 76 | "src/android/**/*.java", |
| 77 | "src/com/**/*.java", |
| 78 | ], |
| 79 | |
| 80 | static_libs: [ |
Paul Duffin | a88eb29 | 2018-01-12 16:08:35 +0000 | [diff] [blame] | 81 | "android.test.runner-minus-junit", |
Colin Cross | fc7ba9e | 2017-12-07 13:11:06 -0800 | [diff] [blame] | 82 | "android.test.mock", |
| 83 | ], |
| 84 | |
| 85 | no_framework_libs: true, |
| 86 | libs: [ |
| 87 | "framework", |
| 88 | "junit", |
| 89 | ], |
| 90 | } |