blob: ccf57b00a379aa3b0094a1fadb690eec22f4bb54 [file] [log] [blame]
Colin Cross2b7d71c2017-12-07 13:11:06 -08001//
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.
22java_library {
23 name: "android.test.base",
24
25 srcs: ["src/**/*.java"],
26
27 no_framework_libs: true,
Paul Duffind8871e22017-12-15 13:52:59 +000028 hostdex: true,
Colin Cross2b7d71c2017-12-07 13:11:06 -080029 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.
40java_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// ==============================================
Paul Duffinb36eb542018-01-15 15:47:47 +000052// This contains repackaged versions of the classes from
53// android.test.base.
Colin Cross2b7d71c2017-12-07 13:11:06 -080054java_library_static {
55 name: "repackaged.android.test.base",
56
57 static_libs: ["android.test.base"],
58
59 no_framework_libs: true,
60 libs: [
61 "framework",
62 ],
63
64 jarjar_rules: "jarjar-rules.txt",
65}
66
Paul Duffina70f66c2018-01-05 15:11:18 +000067// 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.
73java_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 Cross2b7d71c2017-12-07 13:11:06 -080087// 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.
92java_library_static {
93 name: "legacy-android-test",
94
95 srcs: [
96 "src/android/**/*.java",
97 "src/com/**/*.java",
98 ],
99
100 static_libs: [
Paul Duffina88eb292018-01-12 16:08:35 +0000101 "android.test.runner-minus-junit",
Colin Cross2b7d71c2017-12-07 13:11:06 -0800102 "android.test.mock",
103 ],
104
105 no_framework_libs: true,
106 libs: [
107 "framework",
108 "junit",
109 ],
110}