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", |
| 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 | |
| 53 | filegroup { |
| 54 | name: "error_prone_android_framework_testdata", |
| 55 | path: "tests/res", |
| 56 | srcs: ["tests/res/**/*.java"], |
| 57 | } |