Makoto Onuki | 3aefe33 | 2023-10-06 10:02:07 -0700 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "frameworks_base_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["frameworks_base_license"], |
| 8 | } |
| 9 | |
| 10 | filegroup { |
| 11 | name: "ravenwood-annotations", |
| 12 | srcs: [ |
| 13 | "annotations-src/**/*.java", |
| 14 | ], |
Anton Hansson | d82cbc7 | 2023-10-30 20:00:39 +0000 | [diff] [blame] | 15 | path: "annotations-src", |
Makoto Onuki | 3aefe33 | 2023-10-06 10:02:07 -0700 | [diff] [blame] | 16 | visibility: ["//visibility:public"], |
| 17 | } |
| 18 | |
Makoto Onuki | 3aefe33 | 2023-10-06 10:02:07 -0700 | [diff] [blame] | 19 | java_library { |
| 20 | name: "ravenwood-annotations-lib", |
| 21 | srcs: [":ravenwood-annotations"], |
| 22 | sdk_version: "core_current", |
| 23 | host_supported: true, |
| 24 | visibility: ["//visibility:public"], |
| 25 | } |
Jeff Sharkey | 91f414e | 2023-11-07 15:43:59 -0700 | [diff] [blame] | 26 | |
| 27 | java_library { |
Jeff Sharkey | 41cfbb3 | 2023-11-16 09:26:28 -0700 | [diff] [blame] | 28 | name: "ravenwood-junit-impl", |
| 29 | srcs: [ |
| 30 | "junit-src/**/*.java", |
| 31 | "junit-impl-src/**/*.java", |
| 32 | ], |
Jeff Sharkey | 91f414e | 2023-11-07 15:43:59 -0700 | [diff] [blame] | 33 | libs: [ |
Jeff Sharkey | 5e210d7 | 2023-11-10 11:22:05 -0700 | [diff] [blame] | 34 | "framework-minus-apex.ravenwood", |
Jeff Sharkey | 91f414e | 2023-11-07 15:43:59 -0700 | [diff] [blame] | 35 | "junit", |
| 36 | ], |
Makoto Onuki | a8bcba1 | 2023-11-22 14:00:24 -0800 | [diff] [blame] | 37 | sdk_version: "core_current", |
Jeff Sharkey | 41cfbb3 | 2023-11-16 09:26:28 -0700 | [diff] [blame] | 38 | visibility: ["//frameworks/base"], |
| 39 | } |
| 40 | |
| 41 | // Carefully compiles against only test_current to support tests that |
| 42 | // want to verify they're unbundled. The "impl" library above is what |
| 43 | // ships inside the Ravenwood environment to actually drive any API |
| 44 | // access to implementation details. |
| 45 | java_library { |
| 46 | name: "ravenwood-junit", |
| 47 | srcs: [ |
| 48 | "junit-src/**/*.java", |
| 49 | "junit-stub-src/**/*.java", |
| 50 | ], |
| 51 | sdk_version: "test_current", |
| 52 | libs: [ |
| 53 | "junit", |
| 54 | ], |
Jeff Sharkey | 91f414e | 2023-11-07 15:43:59 -0700 | [diff] [blame] | 55 | visibility: ["//visibility:public"], |
| 56 | } |
Jeff Sharkey | 4ee8a65 | 2023-11-14 08:45:56 -0700 | [diff] [blame] | 57 | |
| 58 | java_host_for_device { |
| 59 | name: "core-xml-for-device", |
| 60 | libs: [ |
| 61 | "core-xml-for-host", |
| 62 | ], |
| 63 | } |