blob: d1e94dfed4a8635417d0954c36bae0b631845874 [file] [log] [blame]
Jeff Sharkey4d1d7b52020-05-04 15:31:07 -06001
Bob Badoure539dba2021-02-12 17:07:05 -08002package {
3 // See: http://go/android-license-faq
4 // A large-scale-change added 'default_applicable_licenses' to import
5 // all of the 'license_kinds' from "frameworks_base_license"
6 // to get the below license kinds:
7 // SPDX-license-identifier-Apache-2.0
8 default_applicable_licenses: ["frameworks_base_license"],
9}
10
Jeff Sharkey4d1d7b52020-05-04 15:31:07 -060011java_plugin {
12 name: "error_prone_android_framework",
13
14 static_libs: [
15 "error_prone_android_framework_lib",
16 ],
17}
18
19java_library_host {
20 name: "error_prone_android_framework_lib",
21
22 srcs: ["java/**/*.java"],
23
24 static_libs: [
25 "//external/error_prone:error_prone_core",
Colin Crossdf1cdec2020-06-25 21:07:43 -070026 ],
27
28 libs: [
29 "//external/auto:auto_service_annotations",
Jeff Sharkey4d1d7b52020-05-04 15:31:07 -060030 ],
31
32 plugins: [
Colin Crossdf1cdec2020-06-25 21:07:43 -070033 "//external/auto:auto_service_plugin",
Jeff Sharkey4d1d7b52020-05-04 15:31:07 -060034 ],
Jeff Sharkey4d1d7b52020-05-04 15:31:07 -060035}
Jeff Sharkey86ba6082020-06-23 23:16:59 -060036
37java_test_host {
38 name: "error_prone_android_framework_test",
39 test_suites: ["general-tests"],
40 srcs: ["tests/java/**/*.java"],
41 java_resource_dirs: ["tests/res"],
42 java_resources: [":error_prone_android_framework_testdata"],
43 static_libs: [
44 "error_prone_android_framework_lib",
45 "error_prone_test_helpers",
46 "hamcrest-library",
47 "hamcrest",
48 "platform-test-annotations",
49 "junit",
50 ],
51}
52
53filegroup {
54 name: "error_prone_android_framework_testdata",
55 path: "tests/res",
56 srcs: ["tests/res/**/*.java"],
57}