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 | |
Makoto Onuki | 053eac8 | 2024-02-13 10:31:18 -0800 | [diff] [blame] | 27 | java_library_host { |
| 28 | name: "ravenwood-helper-libcore-runtime.host", |
| 29 | srcs: [ |
| 30 | "runtime-helper-src/libcore-fake/**/*.java", |
| 31 | ], |
| 32 | visibility: ["//visibility:private"], |
| 33 | } |
| 34 | |
| 35 | java_host_for_device { |
| 36 | name: "ravenwood-helper-libcore-runtime", |
| 37 | libs: [ |
| 38 | "ravenwood-helper-libcore-runtime.host", |
| 39 | ], |
| 40 | visibility: ["//visibility:private"], |
| 41 | } |
| 42 | |
| 43 | java_library { |
| 44 | name: "ravenwood-helper-framework-runtime", |
| 45 | srcs: [ |
| 46 | "runtime-helper-src/framework/**/*.java", |
| 47 | ], |
| 48 | libs: [ |
| 49 | "framework-minus-apex.ravenwood", |
| 50 | ], |
| 51 | visibility: ["//visibility:private"], |
| 52 | } |
| 53 | |
| 54 | // Combine ravenwood-helper-*-runtime and create a single library, which we include |
| 55 | // in the ravenwood runtime. |
| 56 | // We do it this way rather than including the individual jars in the runtime, because |
| 57 | // for some reason we couldn't include a java_host_for_device module in the ravenwood runtime. |
| 58 | java_library { |
| 59 | name: "ravenwood-helper-runtime", |
| 60 | defaults: ["ravenwood-internal-only-visibility-java"], |
| 61 | static_libs: [ |
| 62 | "ravenwood-helper-framework-runtime", |
| 63 | "ravenwood-helper-libcore-runtime", |
| 64 | ], |
| 65 | } |
| 66 | |
Jeff Sharkey | 91f414e | 2023-11-07 15:43:59 -0700 | [diff] [blame] | 67 | java_library { |
Jeff Sharkey | 41cfbb3 | 2023-11-16 09:26:28 -0700 | [diff] [blame] | 68 | name: "ravenwood-junit-impl", |
| 69 | srcs: [ |
| 70 | "junit-src/**/*.java", |
| 71 | "junit-impl-src/**/*.java", |
| 72 | ], |
Jeff Sharkey | c91451a | 2024-01-29 10:55:45 -0700 | [diff] [blame] | 73 | static_libs: [ |
| 74 | "androidx.test.monitor-for-device", |
| 75 | ], |
Jeff Sharkey | 91f414e | 2023-11-07 15:43:59 -0700 | [diff] [blame] | 76 | libs: [ |
Jeff Sharkey | 5e210d7 | 2023-11-10 11:22:05 -0700 | [diff] [blame] | 77 | "framework-minus-apex.ravenwood", |
Jeff Sharkey | 91f414e | 2023-11-07 15:43:59 -0700 | [diff] [blame] | 78 | "junit", |
| 79 | ], |
Makoto Onuki | a8bcba1 | 2023-11-22 14:00:24 -0800 | [diff] [blame] | 80 | sdk_version: "core_current", |
Jeff Sharkey | 41cfbb3 | 2023-11-16 09:26:28 -0700 | [diff] [blame] | 81 | visibility: ["//frameworks/base"], |
| 82 | } |
| 83 | |
| 84 | // Carefully compiles against only test_current to support tests that |
| 85 | // want to verify they're unbundled. The "impl" library above is what |
| 86 | // ships inside the Ravenwood environment to actually drive any API |
| 87 | // access to implementation details. |
| 88 | java_library { |
| 89 | name: "ravenwood-junit", |
| 90 | srcs: [ |
| 91 | "junit-src/**/*.java", |
| 92 | "junit-stub-src/**/*.java", |
| 93 | ], |
| 94 | sdk_version: "test_current", |
| 95 | libs: [ |
| 96 | "junit", |
| 97 | ], |
Jeff Sharkey | 91f414e | 2023-11-07 15:43:59 -0700 | [diff] [blame] | 98 | visibility: ["//visibility:public"], |
| 99 | } |
Jeff Sharkey | 4ee8a65 | 2023-11-14 08:45:56 -0700 | [diff] [blame] | 100 | |
Jeff Sharkey | c91451a | 2024-01-29 10:55:45 -0700 | [diff] [blame] | 101 | java_host_for_device { |
| 102 | name: "androidx.test.monitor-for-device", |
| 103 | libs: [ |
| 104 | "androidx.test.monitor-for-host", |
| 105 | ], |
| 106 | } |
| 107 | |
| 108 | java_device_for_host { |
| 109 | name: "androidx.test.monitor-for-host", |
| 110 | libs: [ |
| 111 | "androidx.test.monitor", |
| 112 | ], |
| 113 | } |