OSDN Git Service

Merge "Add more sms error codes"
[android-x86/frameworks-base.git] / test-base / Android.bp
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     errorprone: {
28       javacflags: ["-Xep:DepAnn:ERROR"],
29     },
30
31     // Needs to be consistent with the repackaged version of this make target.
32     java_version: "1.8",
33
34     sdk_version: "current",
35     hostdex: true,
36 }
37
38 // Build the legacy-test library
39 // =============================
40 // This contains the junit.framework and android.test classes that were in
41 // Android API level 25 excluding those from android.test.runner.
42 // Also contains the com.android.internal.util.Predicate[s] classes.
43 java_library {
44     name: "legacy-test",
45
46     sdk_version: "current",
47     static_libs: ["android.test.base"],
48 }
49
50 // Build the repackaged.android.test.base library
51 // ==============================================
52 // This contains repackaged versions of the classes from
53 // android.test.base.
54 java_library_static {
55     name: "repackaged.android.test.base",
56
57     sdk_version: "current",
58     static_libs: ["android.test.base"],
59
60     jarjar_rules: "jarjar-rules.txt",
61     // Pin java_version until jarjar is certified to support later versions. http://b/72703434
62     java_version: "1.8",
63 }
64
65 // Build the android.test.base-minus-junit library
66 // ===============================================
67 // This contains the android.test classes from android.test.base plus
68 // the com.android.internal.util.Predicate[s] classes. This is only
69 // intended for inclusion in the android.test.legacy and
70 // legacy-android-test static libraries and must not be used elsewhere.
71 java_library_static {
72     name: "android.test.base-minus-junit",
73
74     srcs: [
75         "src/android/**/*.java",
76         "src/com/**/*.java",
77     ],
78
79     sdk_version: "current",
80     libs: [
81         "junit",
82     ],
83 }