Colin Cross | 9a51b15 | 2017-08-29 16:04:52 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2017 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
| 16 | |
Paul Duffin | d772e59 | 2019-06-03 16:09:02 +0100 | [diff] [blame] | 17 | package { |
| 18 | default_visibility: ["//visibility:private"], |
| 19 | } |
| 20 | |
Colin Cross | 9a51b15 | 2017-08-29 16:04:52 -0700 | [diff] [blame] | 21 | //========================================================== |
| 22 | // build repackaged ICU for target |
| 23 | // |
| 24 | // This is done in the libcore/JavaLibraries.mk file as there are circular |
| 25 | // dependencies between ICU and libcore |
| 26 | //========================================================== |
| 27 | filegroup { |
Victor Chang | c9ae0db | 2019-10-28 18:56:09 +0000 | [diff] [blame] | 28 | name: "android_icu4j_public_api_files", |
Victor Chang | 92c3bcf | 2019-10-07 11:36:39 +0100 | [diff] [blame] | 29 | srcs: [ |
| 30 | ":android_icu4j_repackaged_src_files", |
Victor Chang | 92c3bcf | 2019-10-07 11:36:39 +0100 | [diff] [blame] | 31 | ], |
Jiyong Park | 684fe8a | 2019-08-19 13:23:42 +0900 | [diff] [blame] | 32 | path: "src/main/java", |
Colin Cross | 9a51b15 | 2017-08-29 16:04:52 -0700 | [diff] [blame] | 33 | } |
| 34 | |
Victor Chang | 92c3bcf | 2019-10-07 11:36:39 +0100 | [diff] [blame] | 35 | filegroup { |
| 36 | name: "android_icu4j_repackaged_src_files", |
| 37 | srcs: ["src/main/java/android/icu/**/*.java"], |
| 38 | path: "src/main/java", |
| 39 | } |
| 40 | |
| 41 | // The files contains Android-specific codes to expose intra-core APIs |
Victor Chang | 71d684d | 2020-05-15 18:17:49 +0100 | [diff] [blame] | 42 | // from ICU4J/ICU4C to libcore or core platform APIs to the framework. |
| 43 | // The package is com.android.icu.* and should not expose any public APIs. |
Victor Chang | 92c3bcf | 2019-10-07 11:36:39 +0100 | [diff] [blame] | 44 | filegroup { |
| 45 | name: "libcore_icu_bridge_src_files", |
Victor Chang | c9ae0db | 2019-10-28 18:56:09 +0000 | [diff] [blame] | 46 | srcs: ["libcore_bridge/src/java/**/*.java"], |
| 47 | path: "libcore_bridge/src/java", |
Victor Chang | 92c3bcf | 2019-10-07 11:36:39 +0100 | [diff] [blame] | 48 | } |
| 49 | |
Victor Chang | e5b242d | 2020-10-30 11:39:52 +0000 | [diff] [blame] | 50 | java_defaults { |
| 51 | name: "libcore_icu_bridge_defaults", |
| 52 | srcs: [ |
| 53 | "libcore_bridge/src/java/**/*.java", |
| 54 | ":app-compat-annotations-source", |
| 55 | ], |
| 56 | plugins: [ |
| 57 | "compat-changeid-annotation-processor", |
| 58 | ], |
| 59 | } |
| 60 | |
Martin Stjernholm | 3a15e59 | 2020-11-11 02:37:00 +0000 | [diff] [blame] | 61 | // A host library containing time zone related classes. Used for |
| 62 | // host-side tools and tests that have to deal with Android |
| 63 | // time zone data. |
| 64 | java_library_host { |
| 65 | name: "timezone-host", |
| 66 | visibility: [ |
| 67 | "//packages/modules/RuntimeI18n/apex", |
| 68 | "//system/timezone/distro/core", |
| 69 | ], |
Victor Chang | 21639cd | 2020-06-17 15:25:10 +0100 | [diff] [blame] | 70 | srcs: [ |
Victor Chang | 21639cd | 2020-06-17 15:25:10 +0100 | [diff] [blame] | 71 | "libcore_bridge/src/java/com/android/i18n/timezone/TzDataSetVersion.java", |
| 72 | ], |
Martin Stjernholm | 3a15e59 | 2020-11-11 02:37:00 +0000 | [diff] [blame] | 73 | libs: [ |
| 74 | "art.module.api.annotations", |
| 75 | ], |
Victor Chang | 21639cd | 2020-06-17 15:25:10 +0100 | [diff] [blame] | 76 | } |
| 77 | |
Victor Chang | 92c3bcf | 2019-10-07 11:36:39 +0100 | [diff] [blame] | 78 | // core-repackaged-icu4j contains only the repackaged ICU4J that does not |
| 79 | // use any internal or android specific code. If it ever did then it could depend on |
| 80 | // art-module-intra-core-api-stubs-system-modules (a superset) instead. |
| 81 | // It is important that core-icu4j is restricted to only use stable APIs from the ART module |
| 82 | // since it is in a different APEX module that can be updated independently. |
| 83 | java_library_static { |
| 84 | name: "core-repackaged-icu4j", |
| 85 | installable: false, |
| 86 | srcs: [":android_icu4j_repackaged_src_files"], |
Artur Satayev | 2fc4dc3 | 2019-12-10 12:12:35 +0000 | [diff] [blame] | 87 | libs: ["unsupportedappusage"], |
Victor Chang | 92c3bcf | 2019-10-07 11:36:39 +0100 | [diff] [blame] | 88 | // The resource files are generated in the downstream branch master-icu-dev. |
| 89 | java_resource_dirs: ["resources"], |
| 90 | |
| 91 | sdk_version: "none", |
| 92 | system_modules: "art-module-public-api-stubs-system-modules", |
| 93 | |
| 94 | dxflags: ["--core-library"], |
Victor Chang | aaf6845 | 2020-05-05 16:02:45 +0100 | [diff] [blame] | 95 | apex_available: [ |
| 96 | "com.android.i18n", |
| 97 | ], |
Victor Chang | 92c3bcf | 2019-10-07 11:36:39 +0100 | [diff] [blame] | 98 | errorprone: { |
| 99 | javacflags: [ |
| 100 | "-Xep:MissingOverride:OFF", // Ignore missing @Override. |
| 101 | "-Xep:ConstantOverflow:WARN", // Known constant overflow in SplittableRandom |
| 102 | ], |
| 103 | }, |
| 104 | } |
| 105 | |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 106 | // A separated core library that contains ICU4J because ICU4J will be in a different APEX module, |
| 107 | // not in ART module. |
| 108 | java_library { |
| 109 | name: "core-icu4j", |
Victor Chang | e5b242d | 2020-10-30 11:39:52 +0000 | [diff] [blame] | 110 | defaults: ["libcore_icu_bridge_defaults"], |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 111 | visibility: [ |
Victor Chang | a12ff87 | 2020-05-15 18:20:51 +0100 | [diff] [blame] | 112 | "//packages/modules/RuntimeI18n/apex", |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 113 | "//external/robolectric-shadows", |
| 114 | "//frameworks/layoutlib", |
Victor Chang | aaf6845 | 2020-05-05 16:02:45 +0100 | [diff] [blame] | 115 | "//art/build", |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 116 | ], |
Jiyong Park | 0ddd1ef | 2019-12-19 02:11:30 +0000 | [diff] [blame] | 117 | apex_available: [ |
Victor Chang | aaf6845 | 2020-05-05 16:02:45 +0100 | [diff] [blame] | 118 | "com.android.i18n", |
| 119 | ], |
| 120 | permitted_packages: [ |
| 121 | "android.icu", |
| 122 | "com.android.icu", |
Victor Chang | 21639cd | 2020-06-17 15:25:10 +0100 | [diff] [blame] | 123 | "com.android.i18n.timezone", |
Jiyong Park | 0ddd1ef | 2019-12-19 02:11:30 +0000 | [diff] [blame] | 124 | ], |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 125 | installable: true, |
Victor Chang | aaf6845 | 2020-05-05 16:02:45 +0100 | [diff] [blame] | 126 | hostdex: false, |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 127 | |
Victor Chang | 92c3bcf | 2019-10-07 11:36:39 +0100 | [diff] [blame] | 128 | static_libs: ["core-repackaged-icu4j"], |
Paul Duffin | 2626a2a | 2019-10-08 15:17:42 +0100 | [diff] [blame] | 129 | |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 130 | // It is important that core-icu4j is restricted to only use stable APIs from the ART module |
| 131 | // since it is in a different APEX module that can be updated independently. |
| 132 | sdk_version: "none", |
Victor Chang | 92c3bcf | 2019-10-07 11:36:39 +0100 | [diff] [blame] | 133 | system_modules: "art-module-intra-core-api-stubs-system-modules", |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 134 | |
| 135 | dxflags: ["--core-library"], |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 136 | } |
| 137 | |
Victor Chang | e5b242d | 2020-10-30 11:39:52 +0000 | [diff] [blame] | 138 | platform_compat_config { |
| 139 | name: "icu4j-platform-compat-config", |
| 140 | src: ":core-icu4j", |
| 141 | } |
| 142 | |
Nicolas Geoffray | 329d035 | 2020-06-01 16:04:02 +0100 | [diff] [blame] | 143 | java_sdk_library { |
| 144 | name: "i18n.module.public.api", |
| 145 | visibility: [ |
Paul Duffin | c546649 | 2020-11-25 15:44:23 +0000 | [diff] [blame^] | 146 | "//frameworks/base", |
| 147 | "//frameworks/base/api", |
Nicolas Geoffray | 329d035 | 2020-06-01 16:04:02 +0100 | [diff] [blame] | 148 | "//libcore", |
| 149 | "//packages/modules/RuntimeI18n/apex", |
| 150 | // Visibility for prebuilt i18n-module-sdk from the prebuilt of |
| 151 | // this module. |
| 152 | // TODO(b/155921753): Restrict this when prebuilts are in their proper |
| 153 | // locations. |
| 154 | "//prebuilts:__subpackages__", |
| 155 | ], |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 156 | srcs: [ |
Victor Chang | c9ae0db | 2019-10-28 18:56:09 +0000 | [diff] [blame] | 157 | ":android_icu4j_public_api_files", |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 158 | ], |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 159 | errorprone: { |
| 160 | javacflags: [ |
| 161 | "-Xep:MissingOverride:OFF", |
| 162 | ], |
| 163 | }, |
Nicolas Geoffray | 329d035 | 2020-06-01 16:04:02 +0100 | [diff] [blame] | 164 | api_dir: "api/public", |
| 165 | api_only: true, |
Paul Duffin | d31a060 | 2019-09-26 16:23:55 +0100 | [diff] [blame] | 166 | sdk_version: "none", |
| 167 | system_modules: "art-module-public-api-stubs-system-modules", |
Paul Duffin | b70de99 | 2020-11-19 19:26:46 +0000 | [diff] [blame] | 168 | |
Paul Duffin | c546649 | 2020-11-25 15:44:23 +0000 | [diff] [blame^] | 169 | // The base name for the artifacts that are automatically published to the |
| 170 | // dist and which end up in one of the sub-directories of prebuilts/sdk. |
| 171 | // As long as this matches the name of the artifacts in prebuilts/sdk then |
| 172 | // the API will be checked for compatibility against the latest released |
| 173 | // version of the API. |
| 174 | dist_stem: "runtime-i18n", |
Nicolas Geoffray | 7f8aaf6 | 2020-06-03 14:39:04 +0100 | [diff] [blame] | 175 | } |
| 176 | |
Paul Duffin | cff90fa | 2019-10-02 10:18:28 +0100 | [diff] [blame] | 177 | // Generates stub source files for the intra-core API of the I18N module. |
| 178 | // i.e. every class/member that is either in the public API or annotated with |
| 179 | // @IntraCoreApi. |
| 180 | // |
| 181 | // The API specification .txt files managed by this only contain the additional |
| 182 | // classes/members that are in the intra-core API but which are not the public |
| 183 | // API. |
Nicolas Geoffray | 7f8aaf6 | 2020-06-03 14:39:04 +0100 | [diff] [blame] | 184 | java_sdk_library { |
| 185 | name: "i18n.module.intra.core.api", |
Victor Chang | e5b242d | 2020-10-30 11:39:52 +0000 | [diff] [blame] | 186 | defaults: ["libcore_icu_bridge_defaults"], |
Paul Duffin | cff90fa | 2019-10-02 10:18:28 +0100 | [diff] [blame] | 187 | srcs: [ |
Victor Chang | c9ae0db | 2019-10-28 18:56:09 +0000 | [diff] [blame] | 188 | ":android_icu4j_repackaged_src_files", |
Paul Duffin | cff90fa | 2019-10-02 10:18:28 +0100 | [diff] [blame] | 189 | ], |
Paul Duffin | cff90fa | 2019-10-02 10:18:28 +0100 | [diff] [blame] | 190 | visibility: [ |
| 191 | "//libcore:__subpackages__", |
Nicolas Geoffray | 7f8aaf6 | 2020-06-03 14:39:04 +0100 | [diff] [blame] | 192 | "//packages/modules/RuntimeI18n/apex", |
| 193 | // Visibility for prebuilt i18n-module-sdk from the prebuilt of |
| 194 | // this module. |
| 195 | // TODO(b/155921753): Restrict this when prebuilts are in their proper |
| 196 | // locations. |
| 197 | "//prebuilts:__subpackages__", |
Paul Duffin | cff90fa | 2019-10-02 10:18:28 +0100 | [diff] [blame] | 198 | ], |
Nicolas Geoffray | 7f8aaf6 | 2020-06-03 14:39:04 +0100 | [diff] [blame] | 199 | api_dir: "api/intra", |
| 200 | api_only: true, |
Paul Duffin | cff90fa | 2019-10-02 10:18:28 +0100 | [diff] [blame] | 201 | sdk_version: "none", |
| 202 | system_modules: "art-module-intra-core-api-stubs-system-modules", |
Nicolas Geoffray | 7f8aaf6 | 2020-06-03 14:39:04 +0100 | [diff] [blame] | 203 | |
| 204 | droiddoc_options: [ |
| 205 | "--hide-annotation libcore.api.Hide ", |
| 206 | "--show-single-annotation libcore.api.IntraCoreApi ", |
| 207 | "--skip-annotation-instance-methods=false ", |
| 208 | ], |
Paul Duffin | b70de99 | 2020-11-19 19:26:46 +0000 | [diff] [blame] | 209 | |
| 210 | // Don't copy any output files to the dist. |
| 211 | no_dist: true, |
Paul Duffin | cff90fa | 2019-10-02 10:18:28 +0100 | [diff] [blame] | 212 | } |
| 213 | |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 214 | // Referenced implicitly from legacy.i18n.module.platform.api. |
Nicolas Geoffray | 4f8142a | 2020-05-29 17:00:48 +0100 | [diff] [blame] | 215 | filegroup { |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 216 | name: "legacy.i18n.module.platform.api.api.public.latest", |
Nicolas Geoffray | 4f8142a | 2020-05-29 17:00:48 +0100 | [diff] [blame] | 217 | srcs: [ |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 218 | "api/legacy_platform/last-api.txt", |
Nicolas Geoffray | 4f8142a | 2020-05-29 17:00:48 +0100 | [diff] [blame] | 219 | ], |
| 220 | } |
| 221 | |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 222 | // Referenced implicitly from legacy.i18n.module.platform.api. |
Nicolas Geoffray | 4f8142a | 2020-05-29 17:00:48 +0100 | [diff] [blame] | 223 | filegroup { |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 224 | name: "legacy.i18n.module.platform.api-removed.api.public.latest", |
Nicolas Geoffray | 4f8142a | 2020-05-29 17:00:48 +0100 | [diff] [blame] | 225 | srcs: [ |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 226 | "api/legacy_platform/last-removed.txt", |
| 227 | ], |
| 228 | } |
| 229 | |
| 230 | // Referenced implicitly from stable.i18n.module.platform.api. |
| 231 | filegroup { |
| 232 | name: "stable.i18n.module.platform.api.api.public.latest", |
| 233 | srcs: [ |
| 234 | "api/stable_platform/last-api.txt", |
| 235 | ], |
| 236 | } |
| 237 | |
| 238 | // Referenced implicitly from stable.i18n.module.platform.api. |
| 239 | filegroup { |
| 240 | name: "stable.i18n.module.platform.api-removed.api.public.latest", |
| 241 | srcs: [ |
| 242 | "api/stable_platform/last-removed.txt", |
Nicolas Geoffray | 4f8142a | 2020-05-29 17:00:48 +0100 | [diff] [blame] | 243 | ], |
| 244 | } |
| 245 | |
Paul Duffin | 4321d6b | 2019-10-03 13:32:26 +0100 | [diff] [blame] | 246 | // Generates stub source files for the core platform API of the I18N module. |
| 247 | // i.e. every class/member that is either in the public API or annotated with |
| 248 | // @CorePlatformApi. |
| 249 | // |
| 250 | // The API specification .txt files managed by this only contain the additional |
| 251 | // classes/members that are in the intra-core API but which are not in the public |
| 252 | // API. |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 253 | // |
| 254 | // For notes on the legacy and stable versions see mmodules/core_platform_api/Android.bp. |
| 255 | |
Nicolas Geoffray | 4f8142a | 2020-05-29 17:00:48 +0100 | [diff] [blame] | 256 | java_sdk_library { |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 257 | name: "legacy.i18n.module.platform.api", |
Victor Chang | e5b242d | 2020-10-30 11:39:52 +0000 | [diff] [blame] | 258 | defaults: ["libcore_icu_bridge_defaults"], |
Paul Duffin | 4321d6b | 2019-10-03 13:32:26 +0100 | [diff] [blame] | 259 | srcs: [ |
Victor Chang | c9ae0db | 2019-10-28 18:56:09 +0000 | [diff] [blame] | 260 | ":android_icu4j_repackaged_src_files", |
Paul Duffin | 4321d6b | 2019-10-03 13:32:26 +0100 | [diff] [blame] | 261 | ], |
Paul Duffin | 4321d6b | 2019-10-03 13:32:26 +0100 | [diff] [blame] | 262 | visibility: [ |
| 263 | "//libcore:__subpackages__", |
Nicolas Geoffray | 4f8142a | 2020-05-29 17:00:48 +0100 | [diff] [blame] | 264 | "//packages/modules/RuntimeI18n/apex", |
| 265 | // Visibility for prebuilt i18n-module-sdk from the prebuilt of |
| 266 | // this module. |
| 267 | // TODO(b/155921753): Restrict this when prebuilts are in their proper |
| 268 | // locations. |
| 269 | "//prebuilts:__subpackages__", |
Paul Duffin | 4321d6b | 2019-10-03 13:32:26 +0100 | [diff] [blame] | 270 | ], |
| 271 | hostdex: true, |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 272 | api_dir: "api/legacy_platform", |
Nicolas Geoffray | 4f8142a | 2020-05-29 17:00:48 +0100 | [diff] [blame] | 273 | api_only: true, |
Paul Duffin | 4321d6b | 2019-10-03 13:32:26 +0100 | [diff] [blame] | 274 | sdk_version: "none", |
Pete Gillin | 5e28f35 | 2020-06-02 16:22:22 +0100 | [diff] [blame] | 275 | system_modules: "legacy-art-module-platform-api-stubs-system-modules", |
Nicolas Geoffray | 4f8142a | 2020-05-29 17:00:48 +0100 | [diff] [blame] | 276 | |
| 277 | droiddoc_options: [ |
| 278 | "--hide-annotation libcore.api.Hide ", |
| 279 | "--show-single-annotation libcore.api.CorePlatformApi ", |
| 280 | "--skip-annotation-instance-methods=false ", |
| 281 | ], |
Paul Duffin | b70de99 | 2020-11-19 19:26:46 +0000 | [diff] [blame] | 282 | |
| 283 | // Don't copy any output files to the dist. |
| 284 | no_dist: true, |
Paul Duffin | 4321d6b | 2019-10-03 13:32:26 +0100 | [diff] [blame] | 285 | } |
| 286 | |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 287 | java_sdk_library { |
| 288 | name: "stable.i18n.module.platform.api", |
Victor Chang | e5b242d | 2020-10-30 11:39:52 +0000 | [diff] [blame] | 289 | defaults: ["libcore_icu_bridge_defaults"], |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 290 | srcs: [ |
| 291 | ":android_icu4j_repackaged_src_files", |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 292 | ], |
| 293 | visibility: [ |
| 294 | "//libcore:__subpackages__", |
| 295 | "//packages/modules/RuntimeI18n/apex", |
| 296 | // Visibility for prebuilt i18n-module-sdk from the prebuilt of |
| 297 | // this module. |
| 298 | // TODO(b/155921753): Restrict this when prebuilts are in their proper |
| 299 | // locations. |
| 300 | "//prebuilts:__subpackages__", |
| 301 | ], |
| 302 | hostdex: true, |
| 303 | api_dir: "api/stable_platform", |
| 304 | api_only: true, |
| 305 | sdk_version: "none", |
| 306 | system_modules: "stable-art-module-platform-api-stubs-system-modules", |
| 307 | |
| 308 | droiddoc_options: [ |
| 309 | "--hide-annotation libcore.api.Hide ", |
| 310 | "--show-single-annotation libcore.api.CorePlatformApi\\(status=libcore.api.CorePlatformApi.Status.STABLE\\)", |
| 311 | "--skip-annotation-instance-methods=false ", |
| 312 | ], |
Paul Duffin | b70de99 | 2020-11-19 19:26:46 +0000 | [diff] [blame] | 313 | |
| 314 | // Don't copy any output files to the dist. |
| 315 | no_dist: true, |
Pete Gillin | ecffbde | 2020-06-05 19:46:45 +0100 | [diff] [blame] | 316 | } |
| 317 | |
Colin Cross | 6e18e29 | 2018-09-11 16:41:13 -0700 | [diff] [blame] | 318 | //========================================================== |
| 319 | // build repackaged ICU tests |
| 320 | // |
| 321 | // Target builds against core-libart and core-oj so that it can access all the |
| 322 | // repackaged android.icu classes and methods and not just the ones available |
| 323 | // through the Android API. |
Colin Cross | 6e18e29 | 2018-09-11 16:41:13 -0700 | [diff] [blame] | 324 | //========================================================== |
| 325 | java_test { |
| 326 | name: "android-icu4j-tests", |
Paul Duffin | d772e59 | 2019-06-03 16:09:02 +0100 | [diff] [blame] | 327 | visibility: [ |
| 328 | "//cts/tests/tests/icu", |
| 329 | ], |
Colin Cross | 6e18e29 | 2018-09-11 16:41:13 -0700 | [diff] [blame] | 330 | |
| 331 | srcs: [ |
| 332 | "src/main/tests/**/*.java", |
| 333 | "testing/src/**/*.java", |
| 334 | ], |
Victor Chang | d956e99 | 2018-11-20 11:07:18 +0000 | [diff] [blame] | 335 | java_resource_dirs: [ |
| 336 | "src/main/tests", |
Paul Duffin | 22d367a | 2019-06-25 12:06:26 +0100 | [diff] [blame] | 337 | "testing/src", |
Victor Chang | d956e99 | 2018-11-20 11:07:18 +0000 | [diff] [blame] | 338 | ], |
Paul Duffin | cddef92 | 2019-10-02 11:46:02 +0100 | [diff] [blame] | 339 | libs: [ |
| 340 | "core-icu4j", |
| 341 | ], |
Colin Cross | 6e18e29 | 2018-09-11 16:41:13 -0700 | [diff] [blame] | 342 | static_libs: [ |
| 343 | "junit", |
| 344 | "junit-params", |
Victor Chang | 21639cd | 2020-06-17 15:25:10 +0100 | [diff] [blame] | 345 | "tzdata-testing", |
Colin Cross | 6e18e29 | 2018-09-11 16:41:13 -0700 | [diff] [blame] | 346 | ], |
Colin Cross | 6e18e29 | 2018-09-11 16:41:13 -0700 | [diff] [blame] | 347 | |
Neil Fuller | 45359cf | 2018-10-02 16:42:42 +0100 | [diff] [blame] | 348 | patch_module: "java.base", |
Paul Duffin | 7f35fb9 | 2019-06-07 14:10:01 +0100 | [diff] [blame] | 349 | sdk_version: "none", |
Paul Duffin | cddef92 | 2019-10-02 11:46:02 +0100 | [diff] [blame] | 350 | system_modules: "art-module-intra-core-api-stubs-system-modules", |
Colin Cross | 6e18e29 | 2018-09-11 16:41:13 -0700 | [diff] [blame] | 351 | } |