• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2016 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_team: "trendy_team_java_core_libraries",
17    // See: http://go/android-license-faq
18    // A large-scale-change added 'default_applicable_licenses' to import
19    // all of the 'license_kinds' from "external_icu_icu4c_license"
20    // to get the below license kinds:
21    //   SPDX-license-identifier-BSD
22    //   SPDX-license-identifier-ICU
23    //   SPDX-license-identifier-ISC
24    //   SPDX-license-identifier-MIT
25    //   SPDX-license-identifier-Unicode-DFS
26    //   legacy_unencumbered
27    default_applicable_licenses: ["external_icu_icu4c_license"],
28}
29
30subdirs = [
31    "common",
32    "i18n",
33    "test",
34    "tools/ctestfw",
35    "tools/toolutil",
36]
37
38cc_library {
39    name: "libicuuc_stubdata",
40    host_supported: true,
41    native_bridge_supported: true,
42    srcs: ["stubdata/stubdata.cpp"],
43    apex_available: [
44        "com.android.i18n",
45    ],
46    header_libs: [
47        "libicuuc_headers",
48    ],
49    cflags: [
50        "-Wall",
51        "-Werror",
52    ],
53    target: {
54        windows: {
55            enabled: true,
56        },
57        android: {
58            cflags: [
59                "-DANDROID_LINK_SHARED_ICU4C",
60            ],
61        },
62    },
63}
64
65genrule {
66    name: "icu4c_test_data",
67    srcs: [
68        "test/testdata/**/*",
69        "data/**/*",
70    ],
71    out: ["icu4c_test_data.zip"],
72    tools: ["soong_zip"],
73    cmd: "$(location soong_zip) -o $(out) -C external/icu/icu4c/source/ -D external/icu/icu4c/source/test/testdata -D external/icu/icu4c/source/data",
74}
75