summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Chang <vichang@google.com>2024-04-19 15:53:31 +0100
committerVictor Chang <vichang@google.com>2024-04-19 22:43:52 +0100
commitc6b25a05cd75f53ade908da0bc0761b7a8fa4410 (patch)
treeaf695dbfad8515ea62afe7e13b43932565a87e47
parentc3d88a939e51c0dc269275373f86355029a68ecf (diff)
downloadicu-c6b25a05cd75f53ade908da0bc0761b7a8fa4410.tar.gz
Update test .bp files
Test: m CtsIcuTestCases CtsIcu4cTestCases Change-Id: I5784c1bd35d10f1411b2bace42534b7579507cc4
-rw-r--r--android_icu4j/Android.bp1
-rw-r--r--icu4c/source/io/Android.bp41
-rw-r--r--icu4c/source/test/Android.bp1
-rw-r--r--icu4j/Android.bp3
4 files changed, 45 insertions, 1 deletions
diff --git a/android_icu4j/Android.bp b/android_icu4j/Android.bp
index c206515b3..33745be72 100644
--- a/android_icu4j/Android.bp
+++ b/android_icu4j/Android.bp
@@ -468,6 +468,7 @@ java_test {
"core-icu4j",
],
static_libs: [
+ "gson",
"junit",
"junit-params",
"tzdata-testing",
diff --git a/icu4c/source/io/Android.bp b/icu4c/source/io/Android.bp
new file mode 100644
index 000000000..253ba48ff
--- /dev/null
+++ b/icu4c/source/io/Android.bp
@@ -0,0 +1,41 @@
+// Copyright (C) 2024 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_team: "trendy_team_java_core_libraries",
+ // See: http://go/android-license-faq
+ // A large-scale-change added 'default_applicable_licenses' to import
+ // all of the 'license_kinds' from "external_icu_icu4c_license"
+ // to get the below license kinds:
+ // SPDX-license-identifier-Unicode-DFS
+ default_applicable_licenses: ["external_icu_icu4c_license"],
+}
+
+cc_library_static {
+ name: "libicuio",
+ cppflags: [
+ "-DU_IO_IMPLEMENTATION",
+ "-DANDROID_LINK_SHARED_ICU4C",
+ ],
+ srcs: [
+ "*.c",
+ "*.cpp",
+ ],
+ shared_libs: [
+ "libicuuc",
+ "libicui18n",
+ ],
+ rtti: true,
+ export_include_dirs: ["."],
+}
diff --git a/icu4c/source/test/Android.bp b/icu4c/source/test/Android.bp
index 7216c7d5c..ba3784adf 100644
--- a/icu4c/source/test/Android.bp
+++ b/icu4c/source/test/Android.bp
@@ -53,6 +53,7 @@ cc_defaults {
static_libs: [
"libicuctest",
+ "libicuio",
"libicutoolutil",
],
target: {
diff --git a/icu4j/Android.bp b/icu4j/Android.bp
index beaca6a33..1d72474c9 100644
--- a/icu4j/Android.bp
+++ b/icu4j/Android.bp
@@ -56,7 +56,7 @@ java_defaults {
"-Xep:IdentityBinaryExpression:WARN",
],
},
- sdk_version: "core_current",
+ sdk_version: "current",
}
java_library {
@@ -116,6 +116,7 @@ java_test {
exclude_java_resource_dirs: ["main/localespi/src/test"],
static_libs: [
+ "gson",
"icu4j",
"icu4j-testdata",
"junit-params",