blob: a205f34b2b24bb1ad3d011937afce4c5dac4f040 [file] [log] [blame]
Colin Cross9a51b152017-08-29 16:04:52 -07001//
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 Duffind772e592019-06-03 16:09:02 +010017package {
18 default_visibility: ["//visibility:private"],
19}
20
Colin Cross9a51b152017-08-29 16:04:52 -070021//==========================================================
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//==========================================================
27filegroup {
28 name: "android_icu4j_src_files",
Paul Duffind772e592019-06-03 16:09:02 +010029 visibility: [
30 "//libcore",
31 ],
Colin Cross9a51b152017-08-29 16:04:52 -070032 srcs: ["src/main/java/**/*.java"],
33}
34
Paul Duffin3b1c6402019-06-07 14:20:07 +010035// Rule generating resource lib for android_icu4j.
36// In the downstream branch master-icu-dev, the resource files are generated.
37java_library {
38 name: "android_icu4j_resources_lib",
Paul Duffind772e592019-06-03 16:09:02 +010039 visibility: [
40 "//libcore",
41 ],
Paul Duffin3b1c6402019-06-07 14:20:07 +010042 java_resource_dirs: ["resources"],
Paul Duffin7f35fb92019-06-07 14:10:01 +010043 sdk_version: "none",
Paul Duffin3b1c6402019-06-07 14:20:07 +010044 system_modules: "none",
Colin Cross9a51b152017-08-29 16:04:52 -070045}
Nan Zhangf5be26b2018-01-09 17:34:07 -080046
Colin Cross6e18e292018-09-11 16:41:13 -070047//==========================================================
48// build repackaged ICU tests
49//
50// Target builds against core-libart and core-oj so that it can access all the
51// repackaged android.icu classes and methods and not just the ones available
52// through the Android API.
Colin Cross6e18e292018-09-11 16:41:13 -070053//==========================================================
54java_test {
55 name: "android-icu4j-tests",
Paul Duffind772e592019-06-03 16:09:02 +010056 visibility: [
57 "//cts/tests/tests/icu",
58 ],
Colin Cross6e18e292018-09-11 16:41:13 -070059
60 srcs: [
61 "src/main/tests/**/*.java",
62 "testing/src/**/*.java",
63 ],
Victor Changd956e992018-11-20 11:07:18 +000064 java_resource_dirs: [
65 "src/main/tests",
Paul Duffin22d367a2019-06-25 12:06:26 +010066 "testing/src",
Victor Changd956e992018-11-20 11:07:18 +000067 ],
Colin Cross6e18e292018-09-11 16:41:13 -070068 static_libs: [
69 "junit",
70 "junit-params",
71 ],
Colin Cross6e18e292018-09-11 16:41:13 -070072
Neil Fuller45359cf2018-10-02 16:42:42 +010073 patch_module: "java.base",
Paul Duffin7f35fb92019-06-07 14:10:01 +010074 sdk_version: "none",
Neil Fuller45359cf2018-10-02 16:42:42 +010075 libs: [
76 "core-all",
77 ],
78 system_modules: "core-all-system-modules",
Colin Cross6e18e292018-09-11 16:41:13 -070079}