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 { |
| 28 | name: "android_icu4j_src_files", |
Paul Duffin | d772e59 | 2019-06-03 16:09:02 +0100 | [diff] [blame^] | 29 | visibility: [ |
| 30 | "//libcore", |
| 31 | ], |
Colin Cross | 9a51b15 | 2017-08-29 16:04:52 -0700 | [diff] [blame] | 32 | srcs: ["src/main/java/**/*.java"], |
| 33 | } |
| 34 | |
Paul Duffin | 3b1c640 | 2019-06-07 14:20:07 +0100 | [diff] [blame] | 35 | // Rule generating resource lib for android_icu4j. |
| 36 | // In the downstream branch master-icu-dev, the resource files are generated. |
| 37 | java_library { |
| 38 | name: "android_icu4j_resources_lib", |
Paul Duffin | d772e59 | 2019-06-03 16:09:02 +0100 | [diff] [blame^] | 39 | visibility: [ |
| 40 | "//libcore", |
| 41 | ], |
Paul Duffin | 3b1c640 | 2019-06-07 14:20:07 +0100 | [diff] [blame] | 42 | java_resource_dirs: ["resources"], |
Paul Duffin | 7f35fb9 | 2019-06-07 14:10:01 +0100 | [diff] [blame] | 43 | sdk_version: "none", |
Paul Duffin | 3b1c640 | 2019-06-07 14:20:07 +0100 | [diff] [blame] | 44 | system_modules: "none", |
Colin Cross | 9a51b15 | 2017-08-29 16:04:52 -0700 | [diff] [blame] | 45 | } |
Nan Zhang | f5be26b | 2018-01-09 17:34:07 -0800 | [diff] [blame] | 46 | |
Colin Cross | 6e18e29 | 2018-09-11 16:41:13 -0700 | [diff] [blame] | 47 | //========================================================== |
| 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 Cross | 6e18e29 | 2018-09-11 16:41:13 -0700 | [diff] [blame] | 53 | //========================================================== |
| 54 | java_test { |
| 55 | name: "android-icu4j-tests", |
Paul Duffin | d772e59 | 2019-06-03 16:09:02 +0100 | [diff] [blame^] | 56 | visibility: [ |
| 57 | "//cts/tests/tests/icu", |
| 58 | ], |
Colin Cross | 6e18e29 | 2018-09-11 16:41:13 -0700 | [diff] [blame] | 59 | |
| 60 | srcs: [ |
| 61 | "src/main/tests/**/*.java", |
| 62 | "testing/src/**/*.java", |
| 63 | ], |
Victor Chang | d956e99 | 2018-11-20 11:07:18 +0000 | [diff] [blame] | 64 | java_resource_dirs: [ |
| 65 | "src/main/tests", |
Paul Duffin | 22d367a | 2019-06-25 12:06:26 +0100 | [diff] [blame] | 66 | "testing/src", |
Victor Chang | d956e99 | 2018-11-20 11:07:18 +0000 | [diff] [blame] | 67 | ], |
Colin Cross | 6e18e29 | 2018-09-11 16:41:13 -0700 | [diff] [blame] | 68 | static_libs: [ |
| 69 | "junit", |
| 70 | "junit-params", |
| 71 | ], |
Colin Cross | 6e18e29 | 2018-09-11 16:41:13 -0700 | [diff] [blame] | 72 | |
Neil Fuller | 45359cf | 2018-10-02 16:42:42 +0100 | [diff] [blame] | 73 | patch_module: "java.base", |
Paul Duffin | 7f35fb9 | 2019-06-07 14:10:01 +0100 | [diff] [blame] | 74 | sdk_version: "none", |
Neil Fuller | 45359cf | 2018-10-02 16:42:42 +0100 | [diff] [blame] | 75 | libs: [ |
| 76 | "core-all", |
| 77 | ], |
| 78 | system_modules: "core-all-system-modules", |
Colin Cross | 6e18e29 | 2018-09-11 16:41:13 -0700 | [diff] [blame] | 79 | } |