xref: /aosp_15_r20/external/icu/icu4c/source/stubdata/Android.bp (revision 0e209d3975ff4a8c132096b14b0e9364a753506e)
1// Copyright (C) 2018 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-Unicode-DFS
22    default_applicable_licenses: ["external_icu_icu4c_license"],
23}
24
25// Derive a string like 'icudt 48l.dat' from a path like
26// 'external/icu/icu4c/source/stubdata/icudt 48l.dat'
27dat_file = "icu*.dat"
28
29prebuilt_etc {
30    name: "apex_icu.dat",
31    src: dat_file,
32    filename_from_src: true,
33    sub_dir: "icu",
34    installable: false,
35}
36
37prebuilt_root_host {
38    name: "icu-data_host_i18n_apex",
39    src: dat_file,
40    filename_from_src: true,
41    relative_install_path: "com.android.i18n/etc/icu",
42    visibility: [
43        "//external/icu/icu4c/source/common",
44        "//frameworks/layoutlib",
45    ],
46    dist: {
47        targets: ["layoutlib"],
48        dir: "layoutlib_native/icu",
49    },
50}
51