blob: 1173bc6e656be81c313a5c1f8a3bf4511b2cbab6 [file] [log] [blame]
Colin Crossfc7ba9e2017-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 legacy-test 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: "legacy-test",
24
25 srcs: ["src/**/*.java"],
26
27 no_framework_libs: true,
28 libs: [
29 "framework",
30 ],
31
32}
33
34// Build the repackaged-legacy-test library
35// ========================================
36// This contains repackaged versions of the classes from legacy-test.
37java_library_static {
38 name: "repackaged-legacy-test",
39
40 static_libs: ["legacy-test"],
41
42 jarjar_rules: "jarjar-rules.txt",
43}
44
45// Build the legacy-android-test library
46// =====================================
47// This contains the android.test classes that were in Android API level 25,
48// including those from android.test.runner.
49// Also contains the com.android.internal.util.Predicate[s] classes.
50java_library_static {
51 name: "legacy-android-test",
52
53 srcs: [
54 "src/android/**/*.java",
55 "src/com/**/*.java",
56 ],
57
58 static_libs: [
59 "android.test.runner",
60 "android.test.mock",
61 ],
62
63 no_framework_libs: true,
64 libs: [
65 "framework",
66 "junit",
67 ],
68}