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
17//==========================================================
18// build repackaged ICU for target
19//
20// This is done in the libcore/JavaLibraries.mk file as there are circular
21// dependencies between ICU and libcore
22//==========================================================
23filegroup {
24    name: "android_icu4j_src_files",
25    srcs: ["src/main/java/**/*.java"],
26}
27
28filegroup {
29    name: "android_icu4j_resources",
30    srcs: ["resources/**/*"],
31    path: "resources",
32}
33
34filegroup {
35    name: "android_icu4j_src_files_for_docs",
36    srcs: [
37        "src/main/java/android/icu/lang/**/*.java",
38        "src/main/java/android/icu/math/**/*.java",
39        "src/main/java/android/icu/text/**/*.java",
40        "src/main/java/android/icu/util/**/*.java",
41    ],
42}
43
44//==========================================================
45// build repackaged ICU tests
46//
47// Target builds against core-libart and core-oj so that it can access all the
48// repackaged android.icu classes and methods and not just the ones available
49// through the Android API.
50//==========================================================
51java_test {
52    name: "android-icu4j-tests",
53
54    srcs: [
55        "src/main/tests/**/*.java",
56        "testing/src/**/*.java",
57    ],
58    java_resource_dirs: [
59        "src/main/tests",
60        "testing/src"
61    ],
62    static_libs: [
63        "junit",
64        "junit-params",
65    ],
66
67    patch_module: "java.base",
68    no_standard_libs: true,
69    libs: [
70        "core-all",
71    ],
72    system_modules: "core-all-system-modules",
73}
74