blob: 53897e14ecd6c8d522284479f447f6535382d29f [file] [log] [blame]
Makoto Onuki3aefe332023-10-06 10:02:07 -07001package {
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
10filegroup {
11 name: "ravenwood-annotations",
12 srcs: [
13 "annotations-src/**/*.java",
14 ],
Anton Hanssond82cbc72023-10-30 20:00:39 +000015 path: "annotations-src",
Makoto Onuki3aefe332023-10-06 10:02:07 -070016 visibility: ["//visibility:public"],
17}
18
Makoto Onuki3aefe332023-10-06 10:02:07 -070019java_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 Sharkey91f414e2023-11-07 15:43:59 -070026
Makoto Onuki053eac82024-02-13 10:31:18 -080027java_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
35java_host_for_device {
36 name: "ravenwood-helper-libcore-runtime",
37 libs: [
38 "ravenwood-helper-libcore-runtime.host",
39 ],
40 visibility: ["//visibility:private"],
41}
42
43java_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.
58java_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 Sharkey91f414e2023-11-07 15:43:59 -070067java_library {
Jeff Sharkey41cfbb32023-11-16 09:26:28 -070068 name: "ravenwood-junit-impl",
69 srcs: [
70 "junit-src/**/*.java",
71 "junit-impl-src/**/*.java",
72 ],
Jeff Sharkeyc91451a2024-01-29 10:55:45 -070073 static_libs: [
74 "androidx.test.monitor-for-device",
75 ],
Jeff Sharkey91f414e2023-11-07 15:43:59 -070076 libs: [
Jeff Sharkey3e91c2b2024-02-15 14:12:07 -070077 "android.test.mock",
Jeff Sharkey5e210d72023-11-10 11:22:05 -070078 "framework-minus-apex.ravenwood",
Jeff Sharkey3e91c2b2024-02-15 14:12:07 -070079 "services.core.ravenwood",
Jeff Sharkey91f414e2023-11-07 15:43:59 -070080 "junit",
81 ],
Makoto Onukia8bcba12023-11-22 14:00:24 -080082 sdk_version: "core_current",
Jeff Sharkey41cfbb32023-11-16 09:26:28 -070083 visibility: ["//frameworks/base"],
Jeff Sharkey3e91c2b2024-02-15 14:12:07 -070084 jarjar_rules: ":ravenwood-services-jarjar-rules",
Jeff Sharkey41cfbb32023-11-16 09:26:28 -070085}
86
87// Carefully compiles against only test_current to support tests that
88// want to verify they're unbundled. The "impl" library above is what
89// ships inside the Ravenwood environment to actually drive any API
90// access to implementation details.
91java_library {
92 name: "ravenwood-junit",
93 srcs: [
94 "junit-src/**/*.java",
95 "junit-stub-src/**/*.java",
96 ],
97 sdk_version: "test_current",
98 libs: [
99 "junit",
100 ],
Jeff Sharkey91f414e2023-11-07 15:43:59 -0700101 visibility: ["//visibility:public"],
102}
Jeff Sharkey4ee8a652023-11-14 08:45:56 -0700103
Jeff Sharkeyc91451a2024-01-29 10:55:45 -0700104java_host_for_device {
105 name: "androidx.test.monitor-for-device",
106 libs: [
107 "androidx.test.monitor-for-host",
108 ],
109}
110
111java_device_for_host {
112 name: "androidx.test.monitor-for-host",
113 libs: [
114 "androidx.test.monitor",
115 ],
116}
Jeff Sharkey3e91c2b2024-02-15 14:12:07 -0700117
118filegroup {
119 name: "ravenwood-services-jarjar-rules",
120 srcs: ["ravenwood-services-jarjar-rules.txt"],
121 visibility: ["//frameworks/base"],
122}