Jeff Sharkey | 4d1d7b5 | 2020-05-04 15:31:07 -0600 | [diff] [blame] | 1 | |
Bob Badour | e539dba | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 2 | package { |
| 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 Sharkey | 4d1d7b5 | 2020-05-04 15:31:07 -0600 | [diff] [blame] | 11 | java_plugin { |
| 12 | name: "error_prone_android_framework", |
| 13 | |
| 14 | static_libs: [ |
| 15 | "error_prone_android_framework_lib", |
| 16 | ], |
| 17 | } |
| 18 | |
| 19 | java_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 Cross | df1cdec | 2020-06-25 21:07:43 -0700 | [diff] [blame] | 26 | ], |
| 27 | |
| 28 | libs: [ |
| 29 | "//external/auto:auto_service_annotations", |
Jeff Sharkey | 4d1d7b5 | 2020-05-04 15:31:07 -0600 | [diff] [blame] | 30 | ], |
| 31 | |
| 32 | plugins: [ |
Colin Cross | df1cdec | 2020-06-25 21:07:43 -0700 | [diff] [blame] | 33 | "//external/auto:auto_service_plugin", |
Jeff Sharkey | 4d1d7b5 | 2020-05-04 15:31:07 -0600 | [diff] [blame] | 34 | ], |
Jeff Sharkey | 4d1d7b5 | 2020-05-04 15:31:07 -0600 | [diff] [blame] | 35 | } |
Jeff Sharkey | 86ba608 | 2020-06-23 23:16:59 -0600 | [diff] [blame] | 36 | |
| 37 | java_test_host { |
| 38 | name: "error_prone_android_framework_test", |
Jeff Sharkey | 86ba608 | 2020-06-23 23:16:59 -0600 | [diff] [blame] | 39 | srcs: ["tests/java/**/*.java"], |
| 40 | java_resource_dirs: ["tests/res"], |
| 41 | java_resources: [":error_prone_android_framework_testdata"], |
| 42 | static_libs: [ |
Julien Desprez | b8c9a05 | 2021-02-24 02:07:45 +0000 | [diff] [blame] | 43 | "truth-prebuilt", |
| 44 | "kxml2-2.3.0", |
Jeff Sharkey | 86ba608 | 2020-06-23 23:16:59 -0600 | [diff] [blame] | 45 | "error_prone_android_framework_lib", |
| 46 | "error_prone_test_helpers", |
| 47 | "hamcrest-library", |
| 48 | "hamcrest", |
| 49 | "platform-test-annotations", |
| 50 | "junit", |
| 51 | ], |
Julien Desprez | b8c9a05 | 2021-02-24 02:07:45 +0000 | [diff] [blame] | 52 | test_options: { |
| 53 | unit_test: true, |
| 54 | }, |
Jeff Sharkey | 86ba608 | 2020-06-23 23:16:59 -0600 | [diff] [blame] | 55 | } |
| 56 | |
| 57 | filegroup { |
| 58 | name: "error_prone_android_framework_testdata", |
| 59 | path: "tests/res", |
| 60 | srcs: ["tests/res/**/*.java"], |
| 61 | } |