Debian Codegraph @

test-runner/Android.bp

raw
1 //
2 // Copyright (C) 2008 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.runner library
18 // =====================================
19 package {
20 // See: http://go/android-license-faq
21 default_applicable_licenses: ["frameworks_base_test-runner_license"],
22 }
23
24 license {
25 name: "frameworks_base_test-runner_license",
26 visibility: [":__subpackages__"],
27 license_kinds: [
28 "SPDX-license-identifier-Apache-2.0",
29 "SPDX-license-identifier-CPL-1.0",
30 ],
31 license_text: [
32 "src/junit/cpl-v10.html",
33 ],
34 }
35
36 java_sdk_library {
37 name: "android.test.runner",
38
39 srcs: [":android-test-runner-sources"],
40
41 errorprone: {
42 javacflags: ["-Xep:DepAnn:ERROR"],
43 },
44
45 libs: [
46 "android.test.base",
47 "android.test.mock",
48 ],
49 stub_only_libs: [
50 "android.test.base",
51 "android.test.mock",
52 ],
53 api_packages: [
54 "android.test",
55 "android.test.suitebuilder",
56 "junit.runner",
57 "junit.textui",
58 ],
59
60 compile_dex: true,
61 default_to_stubs: true,
62 dist_group: "android",
63 }
64
65 // Build the android.test.runner-minus-junit library
66 // =================================================
67 // This is only intended for inclusion in the android.test.legacy static
68 // library and must not be used elsewhere.
69 java_library {
70 name: "android.test.runner-minus-junit",
71
72 srcs: ["src/android/**/*.java"],
73
74 sdk_version: "current",
75 libs: [
76 "android.test.base_static",
77 "android.test.mock",
78 "junit",
79 ],
80 }
81
82 // Make the current.txt available for use by the cts/tests/signature tests.
83 // ========================================================================
84 filegroup {
85 name: "android-test-runner-current.txt",
86 visibility: [
87 "//cts/tests/signature/api",
88 ],
89 srcs: [
90 "api/current.txt",
91 ],
92 }
93
94 filegroup {
95 name: "android-test-runner-sources",
96 srcs: ["src/**/*.java"],
97 path: "src",
98 }