Jeff Sharkey | 4d1d7b5 | 2020-05-04 15:31:07 -0600 | [diff] [blame] | 1 | |
| 2 | java_plugin { |
| 3 | name: "error_prone_android_framework", |
| 4 | |
| 5 | static_libs: [ |
| 6 | "error_prone_android_framework_lib", |
| 7 | ], |
| 8 | } |
| 9 | |
| 10 | java_library_host { |
| 11 | name: "error_prone_android_framework_lib", |
| 12 | |
| 13 | srcs: ["java/**/*.java"], |
| 14 | |
| 15 | static_libs: [ |
| 16 | "//external/error_prone:error_prone_core", |
Colin Cross | df1cdec | 2020-06-25 21:07:43 -0700 | [diff] [blame] | 17 | ], |
| 18 | |
| 19 | libs: [ |
| 20 | "//external/auto:auto_service_annotations", |
Jeff Sharkey | 4d1d7b5 | 2020-05-04 15:31:07 -0600 | [diff] [blame] | 21 | ], |
| 22 | |
| 23 | plugins: [ |
Colin Cross | df1cdec | 2020-06-25 21:07:43 -0700 | [diff] [blame] | 24 | "//external/auto:auto_service_plugin", |
Jeff Sharkey | 4d1d7b5 | 2020-05-04 15:31:07 -0600 | [diff] [blame] | 25 | ], |
Jeff Sharkey | 4d1d7b5 | 2020-05-04 15:31:07 -0600 | [diff] [blame] | 26 | } |
Jeff Sharkey | 86ba608 | 2020-06-23 23:16:59 -0600 | [diff] [blame] | 27 | |
| 28 | java_test_host { |
| 29 | name: "error_prone_android_framework_test", |
| 30 | test_suites: ["general-tests"], |
| 31 | srcs: ["tests/java/**/*.java"], |
| 32 | java_resource_dirs: ["tests/res"], |
| 33 | java_resources: [":error_prone_android_framework_testdata"], |
| 34 | static_libs: [ |
| 35 | "error_prone_android_framework_lib", |
| 36 | "error_prone_test_helpers", |
| 37 | "hamcrest-library", |
| 38 | "hamcrest", |
| 39 | "platform-test-annotations", |
| 40 | "junit", |
| 41 | ], |
| 42 | } |
| 43 | |
| 44 | filegroup { |
| 45 | name: "error_prone_android_framework_testdata", |
| 46 | path: "tests/res", |
| 47 | srcs: ["tests/res/**/*.java"], |
| 48 | } |