blob: 29ebd8b4b8c0a181e91f483d4223c01513c591bd [file] [log] [blame]
//
// Copyright (C) 2017 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
package {
default_visibility: ["//visibility:private"],
}
//==========================================================
// build repackaged ICU for target
//
// This is done in the libcore/JavaLibraries.mk file as there are circular
// dependencies between ICU and libcore
//==========================================================
filegroup {
name: "android_icu4j_src_files",
visibility: [
"//libcore",
"//libcore/mmodules/intracoreapi",
],
srcs: ["src/main/java/**/*.java"],
path: "src/main/java",
}
// Rule generating resource lib for android_icu4j.
// In the downstream branch master-icu-dev, the resource files are generated.
java_library {
name: "android_icu4j_resources_lib",
visibility: [
"//libcore",
],
java_resource_dirs: ["resources"],
sdk_version: "none",
system_modules: "none",
}
// Same as android_icu4j_resources_lib but compiling against core_current sdk
// in order to avoid using non-public API from core-libart and core-oj
// because core-icu4j will be in a different i18n APEX module.
java_library {
name: "android_icu4j_resources_lib_sdk_core_current",
visibility: [
"//libcore",
],
java_resource_dirs: ["resources"],
sdk_version: "core_current",
}
//==========================================================
// build repackaged ICU tests
//
// Target builds against core-libart and core-oj so that it can access all the
// repackaged android.icu classes and methods and not just the ones available
// through the Android API.
//==========================================================
java_test {
name: "android-icu4j-tests",
visibility: [
"//cts/tests/tests/icu",
],
srcs: [
"src/main/tests/**/*.java",
"testing/src/**/*.java",
],
java_resource_dirs: [
"src/main/tests",
"testing/src",
],
static_libs: [
"junit",
"junit-params",
],
patch_module: "java.base",
sdk_version: "none",
libs: [
"core-all",
],
system_modules: "core-all-system-modules",
}