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