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"], |
John Wu | 9834616 | 2024-09-26 22:59:40 +0000 | [diff] [blame] | 8 | |
| 9 | // OWNER: g/ravenwood |
| 10 | // Bug component: 25698 |
Makoto Onuki | 9e4c072 | 2024-10-14 15:32:09 -0700 | [diff] [blame] | 11 | default_team: "trendy_team_ravenwood", |
Makoto Onuki | 3aefe33 | 2023-10-06 10:02:07 -0700 | [diff] [blame] | 12 | } |
| 13 | |
| 14 | filegroup { |
John Wu | 2511073 | 2024-10-10 22:40:49 +0000 | [diff] [blame] | 15 | name: "ravenwood-common-policies", |
| 16 | srcs: [ |
| 17 | "texts/ravenwood-common-policies.txt", |
| 18 | ], |
| 19 | visibility: ["//visibility:private"], |
| 20 | } |
| 21 | |
| 22 | filegroup { |
Makoto Onuki | dfade84 | 2024-05-02 15:42:08 -0700 | [diff] [blame] | 23 | name: "ravenwood-services-policies", |
| 24 | srcs: [ |
| 25 | "texts/ravenwood-services-policies.txt", |
| 26 | ], |
John Wu | 2abff41 | 2024-10-10 21:58:26 +0000 | [diff] [blame] | 27 | visibility: ["//visibility:private"], |
Makoto Onuki | dfade84 | 2024-05-02 15:42:08 -0700 | [diff] [blame] | 28 | } |
| 29 | |
| 30 | filegroup { |
| 31 | name: "ravenwood-framework-policies", |
| 32 | srcs: [ |
| 33 | "texts/ravenwood-framework-policies.txt", |
| 34 | ], |
John Wu | 2abff41 | 2024-10-10 21:58:26 +0000 | [diff] [blame] | 35 | visibility: ["//visibility:private"], |
Makoto Onuki | dfade84 | 2024-05-02 15:42:08 -0700 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | filegroup { |
| 39 | name: "ravenwood-standard-options", |
| 40 | srcs: [ |
| 41 | "texts/ravenwood-standard-options.txt", |
| 42 | ], |
John Wu | 2abff41 | 2024-10-10 21:58:26 +0000 | [diff] [blame] | 43 | visibility: ["//visibility:private"], |
Makoto Onuki | dfade84 | 2024-05-02 15:42:08 -0700 | [diff] [blame] | 44 | } |
| 45 | |
| 46 | filegroup { |
| 47 | name: "ravenwood-annotation-allowed-classes", |
| 48 | srcs: [ |
| 49 | "texts/ravenwood-annotation-allowed-classes.txt", |
| 50 | ], |
John Wu | 2abff41 | 2024-10-10 21:58:26 +0000 | [diff] [blame] | 51 | visibility: ["//visibility:private"], |
Makoto Onuki | dfade84 | 2024-05-02 15:42:08 -0700 | [diff] [blame] | 52 | } |
| 53 | |
Makoto Onuki | df9cd26 | 2024-05-16 15:44:38 -0700 | [diff] [blame] | 54 | // This and the next module contain the same classes with different implementations. |
| 55 | // "ravenwood-runtime-common-device" will be statically linked in device side tests. |
| 56 | // "ravenwood-runtime-common-ravenwood" will only exist in ravenwood-runtime, which will take |
| 57 | // precedence even if the test jar (accidentally) contains "ravenwood-runtime-common-device". |
| 58 | // "ravenwood-runtime-common" uses it to detect if the rutime is Ravenwood or not. |
| 59 | java_library { |
| 60 | name: "ravenwood-runtime-common-ravenwood", |
| 61 | host_supported: true, |
| 62 | sdk_version: "core_current", |
| 63 | srcs: [ |
| 64 | "runtime-common-ravenwood-src/**/*.java", |
| 65 | ], |
Makoto Onuki | d619e43 | 2024-07-19 16:45:02 -0700 | [diff] [blame] | 66 | visibility: [ |
| 67 | // Some tests need to access the utilities. |
| 68 | ":__subpackages__", |
| 69 | ], |
Makoto Onuki | df9cd26 | 2024-05-16 15:44:38 -0700 | [diff] [blame] | 70 | } |
| 71 | |
| 72 | java_library { |
| 73 | name: "ravenwood-runtime-common-device", |
| 74 | host_supported: true, |
| 75 | sdk_version: "core_current", |
| 76 | srcs: [ |
| 77 | "runtime-common-device-src/**/*.java", |
| 78 | ], |
| 79 | visibility: ["//visibility:private"], |
| 80 | } |
| 81 | |
| 82 | java_library { |
| 83 | name: "ravenwood-runtime-common", |
| 84 | host_supported: true, |
| 85 | sdk_version: "core_current", |
| 86 | srcs: [ |
| 87 | "runtime-common-src/**/*.java", |
| 88 | ], |
| 89 | libs: [ |
| 90 | "ravenwood-runtime-common-ravenwood", |
| 91 | ], |
John Wu | 9834616 | 2024-09-26 22:59:40 +0000 | [diff] [blame] | 92 | static_libs: [ |
| 93 | "framework-annotations-lib", // should it be "libs" instead? |
| 94 | ], |
Makoto Onuki | df9cd26 | 2024-05-16 15:44:38 -0700 | [diff] [blame] | 95 | visibility: ["//visibility:private"], |
| 96 | } |
| 97 | |
Makoto Onuki | 053eac8 | 2024-02-13 10:31:18 -0800 | [diff] [blame] | 98 | java_library_host { |
| 99 | name: "ravenwood-helper-libcore-runtime.host", |
| 100 | srcs: [ |
| 101 | "runtime-helper-src/libcore-fake/**/*.java", |
| 102 | ], |
Makoto Onuki | df9cd26 | 2024-05-16 15:44:38 -0700 | [diff] [blame] | 103 | static_libs: [ |
| 104 | "ravenwood-runtime-common", |
| 105 | ], |
Makoto Onuki | 053eac8 | 2024-02-13 10:31:18 -0800 | [diff] [blame] | 106 | visibility: ["//visibility:private"], |
| 107 | } |
| 108 | |
| 109 | java_host_for_device { |
| 110 | name: "ravenwood-helper-libcore-runtime", |
| 111 | libs: [ |
| 112 | "ravenwood-helper-libcore-runtime.host", |
| 113 | ], |
| 114 | visibility: ["//visibility:private"], |
| 115 | } |
| 116 | |
| 117 | java_library { |
| 118 | name: "ravenwood-helper-framework-runtime", |
| 119 | srcs: [ |
| 120 | "runtime-helper-src/framework/**/*.java", |
| 121 | ], |
Makoto Onuki | df9cd26 | 2024-05-16 15:44:38 -0700 | [diff] [blame] | 122 | static_libs: [ |
| 123 | "ravenwood-runtime-common", |
| 124 | ], |
Makoto Onuki | 053eac8 | 2024-02-13 10:31:18 -0800 | [diff] [blame] | 125 | libs: [ |
| 126 | "framework-minus-apex.ravenwood", |
John Wu | 0bbc544 | 2024-10-17 08:46:06 +0000 | [diff] [blame] | 127 | "framework-configinfrastructure.ravenwood", |
John Wu | 9834616 | 2024-09-26 22:59:40 +0000 | [diff] [blame] | 128 | "ravenwood-helper-libcore-runtime", |
Makoto Onuki | 053eac8 | 2024-02-13 10:31:18 -0800 | [diff] [blame] | 129 | ], |
John Wu | 9834616 | 2024-09-26 22:59:40 +0000 | [diff] [blame] | 130 | sdk_version: "core_current", |
Makoto Onuki | 053eac8 | 2024-02-13 10:31:18 -0800 | [diff] [blame] | 131 | visibility: ["//visibility:private"], |
| 132 | } |
| 133 | |
| 134 | // Combine ravenwood-helper-*-runtime and create a single library, which we include |
| 135 | // in the ravenwood runtime. |
| 136 | // We do it this way rather than including the individual jars in the runtime, because |
| 137 | // for some reason we couldn't include a java_host_for_device module in the ravenwood runtime. |
| 138 | java_library { |
| 139 | name: "ravenwood-helper-runtime", |
| 140 | defaults: ["ravenwood-internal-only-visibility-java"], |
| 141 | static_libs: [ |
| 142 | "ravenwood-helper-framework-runtime", |
| 143 | "ravenwood-helper-libcore-runtime", |
| 144 | ], |
| 145 | } |
| 146 | |
Jeff Sharkey | 91f414e | 2023-11-07 15:43:59 -0700 | [diff] [blame] | 147 | java_library { |
Jeff Sharkey | 41cfbb3 | 2023-11-16 09:26:28 -0700 | [diff] [blame] | 148 | name: "ravenwood-junit-impl", |
| 149 | srcs: [ |
| 150 | "junit-src/**/*.java", |
| 151 | "junit-impl-src/**/*.java", |
| 152 | ], |
Jeff Sharkey | c91451a | 2024-01-29 10:55:45 -0700 | [diff] [blame] | 153 | static_libs: [ |
| 154 | "androidx.test.monitor-for-device", |
Makoto Onuki | df9cd26 | 2024-05-16 15:44:38 -0700 | [diff] [blame] | 155 | "ravenwood-runtime-common", |
Jeff Sharkey | c91451a | 2024-01-29 10:55:45 -0700 | [diff] [blame] | 156 | ], |
Jeff Sharkey | 91f414e | 2023-11-07 15:43:59 -0700 | [diff] [blame] | 157 | libs: [ |
Jihoon Kang | 1e37ed3 | 2024-08-30 00:29:12 +0000 | [diff] [blame] | 158 | "android.test.mock.impl", |
Jeff Sharkey | 5e210d7 | 2023-11-10 11:22:05 -0700 | [diff] [blame] | 159 | "framework-minus-apex.ravenwood", |
Jeff Sharkey | 8a922ec | 2024-02-27 12:36:36 -0700 | [diff] [blame] | 160 | "ravenwood-framework", |
Jeff Sharkey | 3e91c2b | 2024-02-15 14:12:07 -0700 | [diff] [blame] | 161 | "services.core.ravenwood", |
Jeff Sharkey | 91f414e | 2023-11-07 15:43:59 -0700 | [diff] [blame] | 162 | "junit", |
John Wu | 9834616 | 2024-09-26 22:59:40 +0000 | [diff] [blame] | 163 | "framework-annotations-lib", |
| 164 | "ravenwood-helper-framework-runtime", |
| 165 | "ravenwood-helper-libcore-runtime", |
John Wu | 9c7227e | 2024-10-09 00:29:02 +0000 | [diff] [blame] | 166 | "hoststubgen-helper-runtime.ravenwood", |
| 167 | "mockito-ravenwood-prebuilt", |
Jeff Sharkey | 91f414e | 2023-11-07 15:43:59 -0700 | [diff] [blame] | 168 | ], |
Jeff Sharkey | 41cfbb3 | 2023-11-16 09:26:28 -0700 | [diff] [blame] | 169 | visibility: ["//frameworks/base"], |
Jeff Sharkey | 3e91c2b | 2024-02-15 14:12:07 -0700 | [diff] [blame] | 170 | jarjar_rules: ":ravenwood-services-jarjar-rules", |
Jeff Sharkey | 41cfbb3 | 2023-11-16 09:26:28 -0700 | [diff] [blame] | 171 | } |
| 172 | |
John Wu | 9834616 | 2024-09-26 22:59:40 +0000 | [diff] [blame] | 173 | java_device_for_host { |
| 174 | name: "ravenwood-junit-impl-for-ravenizer", |
| 175 | libs: [ |
| 176 | "ravenwood-junit-impl", |
| 177 | ], |
| 178 | visibility: [":__subpackages__"], |
| 179 | } |
| 180 | |
Jeff Sharkey | 7037e35 | 2024-02-27 14:22:24 -0700 | [diff] [blame] | 181 | // Separated out from ravenwood-junit-impl since it needs to compile |
| 182 | // against `module_current` |
| 183 | java_library { |
| 184 | name: "ravenwood-junit-impl-flag", |
| 185 | srcs: [ |
| 186 | "junit-flag-src/**/*.java", |
| 187 | ], |
Liana Kazanova | 0c16dd3 | 2024-06-25 20:40:04 +0000 | [diff] [blame] | 188 | sdk_version: "module_current", |
Jeff Sharkey | 7037e35 | 2024-02-27 14:22:24 -0700 | [diff] [blame] | 189 | libs: [ |
| 190 | "junit", |
| 191 | "flag-junit", |
| 192 | ], |
| 193 | visibility: ["//visibility:public"], |
| 194 | } |
| 195 | |
Makoto Onuki | 8df6bd0 | 2024-08-01 12:38:50 -0700 | [diff] [blame] | 196 | // Carefully compiles against only module_current to support tests that |
Jeff Sharkey | 41cfbb3 | 2023-11-16 09:26:28 -0700 | [diff] [blame] | 197 | // want to verify they're unbundled. The "impl" library above is what |
| 198 | // ships inside the Ravenwood environment to actually drive any API |
| 199 | // access to implementation details. |
Makoto Onuki | 8df6bd0 | 2024-08-01 12:38:50 -0700 | [diff] [blame] | 200 | // We can't use test_current here because this library needs to be statically |
| 201 | // linked to mainline tests as well, which can't use test APIs because they |
| 202 | // need to be able to run on multiple API levels. |
Jeff Sharkey | 41cfbb3 | 2023-11-16 09:26:28 -0700 | [diff] [blame] | 203 | java_library { |
| 204 | name: "ravenwood-junit", |
| 205 | srcs: [ |
| 206 | "junit-src/**/*.java", |
| 207 | "junit-stub-src/**/*.java", |
Jeff Sharkey | 7037e35 | 2024-02-27 14:22:24 -0700 | [diff] [blame] | 208 | "junit-flag-src/**/*.java", |
Jeff Sharkey | 41cfbb3 | 2023-11-16 09:26:28 -0700 | [diff] [blame] | 209 | ], |
Felipe Leme | dfbfb23 | 2024-07-23 05:31:38 +0000 | [diff] [blame] | 210 | sdk_version: "module_current", |
Makoto Onuki | df9cd26 | 2024-05-16 15:44:38 -0700 | [diff] [blame] | 211 | static_libs: [ |
| 212 | "ravenwood-runtime-common", |
| 213 | "ravenwood-runtime-common-device", |
| 214 | ], |
Jeff Sharkey | 41cfbb3 | 2023-11-16 09:26:28 -0700 | [diff] [blame] | 215 | libs: [ |
| 216 | "junit", |
Jeff Sharkey | 7037e35 | 2024-02-27 14:22:24 -0700 | [diff] [blame] | 217 | "flag-junit", |
John Wu | 9834616 | 2024-09-26 22:59:40 +0000 | [diff] [blame] | 218 | "framework-annotations-lib", |
Jeff Sharkey | 41cfbb3 | 2023-11-16 09:26:28 -0700 | [diff] [blame] | 219 | ], |
Jeff Sharkey | 91f414e | 2023-11-07 15:43:59 -0700 | [diff] [blame] | 220 | visibility: ["//visibility:public"], |
| 221 | } |
Jeff Sharkey | 4ee8a65 | 2023-11-14 08:45:56 -0700 | [diff] [blame] | 222 | |
Jeff Sharkey | 8a922ec | 2024-02-27 12:36:36 -0700 | [diff] [blame] | 223 | // Library used to publish a handful of `android.ravenwood` APIs into |
| 224 | // the Ravenwood BCP; we don't want to publish these APIs into the BCP |
| 225 | // on physical devices, which is why this is a separate library |
| 226 | java_library { |
| 227 | name: "ravenwood-framework", |
| 228 | srcs: [ |
| 229 | "framework-src/**/*.java", |
| 230 | ], |
| 231 | libs: [ |
| 232 | "framework-minus-apex.ravenwood", |
| 233 | ], |
| 234 | sdk_version: "core_current", |
| 235 | visibility: ["//visibility:public"], |
| 236 | } |
| 237 | |
Jeff Sharkey | c91451a | 2024-01-29 10:55:45 -0700 | [diff] [blame] | 238 | java_host_for_device { |
| 239 | name: "androidx.test.monitor-for-device", |
| 240 | libs: [ |
| 241 | "androidx.test.monitor-for-host", |
| 242 | ], |
| 243 | } |
| 244 | |
| 245 | java_device_for_host { |
| 246 | name: "androidx.test.monitor-for-host", |
| 247 | libs: [ |
| 248 | "androidx.test.monitor", |
| 249 | ], |
| 250 | } |
Jeff Sharkey | 3e91c2b | 2024-02-15 14:12:07 -0700 | [diff] [blame] | 251 | |
| 252 | filegroup { |
Makoto Onuki | f38d599 | 2024-05-30 10:40:50 -0700 | [diff] [blame] | 253 | name: "ravenwood-framework-jarjar-rules", |
| 254 | srcs: ["texts/ravenwood-framework-jarjar-rules.txt"], |
| 255 | visibility: ["//frameworks/base"], |
| 256 | } |
| 257 | |
| 258 | filegroup { |
Jeff Sharkey | 3e91c2b | 2024-02-15 14:12:07 -0700 | [diff] [blame] | 259 | name: "ravenwood-services-jarjar-rules", |
Makoto Onuki | a3fe562 | 2024-03-27 13:08:32 -0700 | [diff] [blame] | 260 | srcs: ["texts/ravenwood-services-jarjar-rules.txt"], |
Jeff Sharkey | 3e91c2b | 2024-02-15 14:12:07 -0700 | [diff] [blame] | 261 | visibility: ["//frameworks/base"], |
| 262 | } |
Makoto Onuki | 3fb1f2b | 2024-03-27 13:08:32 -0700 | [diff] [blame] | 263 | |
John Wu | 5e13e25 | 2024-09-25 00:43:28 +0000 | [diff] [blame] | 264 | cc_defaults { |
| 265 | name: "ravenwood_jni_defaults", |
Makoto Onuki | aedf30b | 2024-05-01 11:16:50 -0700 | [diff] [blame] | 266 | cflags: [ |
| 267 | "-Wall", |
| 268 | "-Werror", |
| 269 | "-Wno-unused-parameter", |
| 270 | "-Wthread-safety", |
| 271 | ], |
John Wu | 5e13e25 | 2024-09-25 00:43:28 +0000 | [diff] [blame] | 272 | static_libs: [ |
| 273 | "libnativehelper_jvm", |
Makoto Onuki | aedf30b | 2024-05-01 11:16:50 -0700 | [diff] [blame] | 274 | ], |
John Wu | 5e13e25 | 2024-09-25 00:43:28 +0000 | [diff] [blame] | 275 | shared_libs: [ |
| 276 | "liblog", |
| 277 | ], |
| 278 | } |
Makoto Onuki | aedf30b | 2024-05-01 11:16:50 -0700 | [diff] [blame] | 279 | |
John Wu | 5e13e25 | 2024-09-25 00:43:28 +0000 | [diff] [blame] | 280 | // We need this as a separate library because we need to overload the |
| 281 | // sysprop symbols before libbase is loaded into the process |
| 282 | cc_library_host_shared { |
| 283 | name: "libravenwood_sysprop", |
| 284 | defaults: ["ravenwood_jni_defaults"], |
| 285 | srcs: ["runtime-jni/ravenwood_sysprop.cpp"], |
| 286 | } |
| 287 | |
| 288 | cc_library_host_shared { |
| 289 | name: "libravenwood_runtime", |
| 290 | defaults: ["ravenwood_jni_defaults"], |
| 291 | srcs: [ |
| 292 | "runtime-jni/ravenwood_runtime.cpp", |
| 293 | "runtime-jni/ravenwood_os_constants.cpp", |
| 294 | ], |
Makoto Onuki | aedf30b | 2024-05-01 11:16:50 -0700 | [diff] [blame] | 295 | shared_libs: [ |
| 296 | "libbase", |
Makoto Onuki | aedf30b | 2024-05-01 11:16:50 -0700 | [diff] [blame] | 297 | "libutils", |
| 298 | "libcutils", |
| 299 | ], |
| 300 | visibility: ["//frameworks/base"], |
| 301 | } |
| 302 | |
Makoto Onuki | 3fb1f2b | 2024-03-27 13:08:32 -0700 | [diff] [blame] | 303 | // For collecting the *stats.csv files in a known directory under out/host/linux-x86/testcases/. |
| 304 | // The "test" just shows the available stats filenames. |
| 305 | sh_test_host { |
| 306 | name: "ravenwood-stats-checker", |
Makoto Onuki | a3fe562 | 2024-03-27 13:08:32 -0700 | [diff] [blame] | 307 | src: "scripts/ravenwood-stats-checker.sh", |
Makoto Onuki | 3fb1f2b | 2024-03-27 13:08:32 -0700 | [diff] [blame] | 308 | test_suites: ["general-tests"], |
Cole Faust | 5aeb9fd | 2024-10-22 16:30:57 -0700 | [diff] [blame^] | 309 | device_common_data: [ |
John Wu | 9834616 | 2024-09-26 22:59:40 +0000 | [diff] [blame] | 310 | ":framework-minus-apex.ravenwood-base_all{hoststubgen_framework-minus-apex_stats.csv}", |
| 311 | ":framework-minus-apex.ravenwood-base_all{hoststubgen_framework-minus-apex_apis.csv}", |
| 312 | ":framework-minus-apex.ravenwood-base_all{hoststubgen_framework-minus-apex_keep_all.txt}", |
| 313 | ":framework-minus-apex.ravenwood-base_all{hoststubgen_framework-minus-apex_dump.txt}", |
Makoto Onuki | 134a415 | 2024-06-26 14:21:12 -0700 | [diff] [blame] | 314 | ":services.core.ravenwood-base{hoststubgen_services.core_stats.csv}", |
| 315 | ":services.core.ravenwood-base{hoststubgen_services.core_apis.csv}", |
| 316 | ":services.core.ravenwood-base{hoststubgen_services.core_keep_all.txt}", |
| 317 | ":services.core.ravenwood-base{hoststubgen_services.core_dump.txt}", |
Makoto Onuki | 3fb1f2b | 2024-03-27 13:08:32 -0700 | [diff] [blame] | 318 | ], |
| 319 | } |
Makoto Onuki | e5e9727 | 2024-05-23 10:49:31 -0700 | [diff] [blame] | 320 | |
| 321 | java_library { |
| 322 | name: "services.fakes.ravenwood-jarjar", |
| 323 | installable: false, |
| 324 | srcs: [":services.fakes-sources"], |
| 325 | libs: [ |
| 326 | "ravenwood-framework", |
| 327 | "services.core.ravenwood", |
| 328 | ], |
| 329 | jarjar_rules: ":ravenwood-services-jarjar-rules", |
| 330 | visibility: ["//visibility:private"], |
| 331 | } |
| 332 | |
| 333 | java_library { |
| 334 | name: "mockito-ravenwood-prebuilt", |
| 335 | installable: false, |
| 336 | static_libs: [ |
| 337 | "mockito-robolectric-prebuilt", |
| 338 | ], |
| 339 | } |
| 340 | |
| 341 | java_library { |
| 342 | name: "inline-mockito-ravenwood-prebuilt", |
| 343 | installable: false, |
| 344 | static_libs: [ |
| 345 | "inline-mockito-robolectric-prebuilt", |
| 346 | ], |
| 347 | } |
| 348 | |
John Wu | 2abff41 | 2024-10-10 21:58:26 +0000 | [diff] [blame] | 349 | // JARs in "ravenwood-runtime" are set to the classpath, sorted alphabetically. |
| 350 | // Rename some of the dependencies to make sure they're included in the intended order. |
| 351 | |
| 352 | java_library { |
| 353 | name: "100-framework-minus-apex.ravenwood", |
| 354 | installable: false, |
| 355 | static_libs: ["framework-minus-apex.ravenwood"], |
| 356 | visibility: ["//visibility:private"], |
| 357 | } |
| 358 | |
| 359 | java_library { |
| 360 | name: "200-kxml2-android", |
| 361 | installable: false, |
| 362 | static_libs: ["kxml2-android"], |
| 363 | visibility: ["//visibility:private"], |
| 364 | } |
| 365 | |
| 366 | java_library { |
| 367 | name: "z00-all-updatable-modules-system-stubs", |
| 368 | installable: false, |
| 369 | static_libs: ["all-updatable-modules-system-stubs-for-host"], |
| 370 | visibility: ["//visibility:private"], |
| 371 | } |
| 372 | |
Makoto Onuki | e5e9727 | 2024-05-23 10:49:31 -0700 | [diff] [blame] | 373 | android_ravenwood_libgroup { |
| 374 | name: "ravenwood-runtime", |
Makoto Onuki | d619e43 | 2024-07-19 16:45:02 -0700 | [diff] [blame] | 375 | data: [ |
John Wu | d69d3ee | 2024-10-15 23:58:01 +0000 | [diff] [blame] | 376 | ":system-build.prop", |
John Wu | d0371fa | 2024-09-13 20:58:49 +0000 | [diff] [blame] | 377 | ":framework-res", |
| 378 | ":ravenwood-empty-res", |
Makoto Onuki | 8ca3b7f | 2024-09-17 09:45:39 -0700 | [diff] [blame] | 379 | ":framework-platform-compat-config", |
| 380 | ":services-platform-compat-config", |
Makoto Onuki | d619e43 | 2024-07-19 16:45:02 -0700 | [diff] [blame] | 381 | ], |
Makoto Onuki | e5e9727 | 2024-05-23 10:49:31 -0700 | [diff] [blame] | 382 | libs: [ |
| 383 | "100-framework-minus-apex.ravenwood", |
| 384 | "200-kxml2-android", |
| 385 | |
| 386 | "ravenwood-runtime-common-ravenwood", |
| 387 | |
| 388 | "android.test.mock.ravenwood", |
| 389 | "ravenwood-helper-runtime", |
| 390 | "hoststubgen-helper-runtime.ravenwood", |
| 391 | "services.core.ravenwood-jarjar", |
| 392 | "services.fakes.ravenwood-jarjar", |
| 393 | |
Makoto Onuki | 953445b | 2024-07-19 11:21:29 -0700 | [diff] [blame] | 394 | // ICU |
| 395 | "core-icu4j-for-host.ravenwood", |
| 396 | "icu4j-icudata-jarjar", |
| 397 | "icu4j-icutzdata-jarjar", |
| 398 | |
John Wu | 0bbc544 | 2024-10-17 08:46:06 +0000 | [diff] [blame] | 399 | // DeviceConfig |
| 400 | "framework-configinfrastructure.ravenwood", |
| 401 | |
Makoto Onuki | e5e9727 | 2024-05-23 10:49:31 -0700 | [diff] [blame] | 402 | // Provide runtime versions of utils linked in below |
| 403 | "junit", |
| 404 | "truth", |
| 405 | "flag-junit", |
| 406 | "ravenwood-framework", |
| 407 | "ravenwood-junit-impl", |
| 408 | "ravenwood-junit-impl-flag", |
| 409 | "mockito-ravenwood-prebuilt", |
| 410 | "inline-mockito-ravenwood-prebuilt", |
| 411 | |
| 412 | // It's a stub, so it should be towards the end. |
| 413 | "z00-all-updatable-modules-system-stubs", |
| 414 | ], |
| 415 | jni_libs: [ |
John Wu | 5e13e25 | 2024-09-25 00:43:28 +0000 | [diff] [blame] | 416 | // Libraries has to be loaded in the following order |
| 417 | "libravenwood_sysprop", |
Makoto Onuki | e5e9727 | 2024-05-23 10:49:31 -0700 | [diff] [blame] | 418 | "libravenwood_runtime", |
John Wu | 5e13e25 | 2024-09-25 00:43:28 +0000 | [diff] [blame] | 419 | "libandroid_runtime", |
Makoto Onuki | e5e9727 | 2024-05-23 10:49:31 -0700 | [diff] [blame] | 420 | ], |
| 421 | } |
| 422 | |
| 423 | android_ravenwood_libgroup { |
| 424 | name: "ravenwood-utils", |
| 425 | libs: [ |
| 426 | "junit", |
| 427 | "truth", |
| 428 | "flag-junit", |
| 429 | "ravenwood-framework", |
| 430 | "ravenwood-junit", |
| 431 | "mockito-ravenwood-prebuilt", |
| 432 | "inline-mockito-ravenwood-prebuilt", |
| 433 | ], |
| 434 | } |
John Wu | 2abff41 | 2024-10-10 21:58:26 +0000 | [diff] [blame] | 435 | |
| 436 | build = [ |
| 437 | "Framework.bp", |
| 438 | ] |