xref: /aosp_15_r20/external/icu/android_icu4c/Android.bp (revision 0e209d3975ff4a8c132096b14b0e9364a753506e)
1*0e209d39SAndroid Build Coastguard Worker// Copyright (C) 2018 The Android Open Source Project
2*0e209d39SAndroid Build Coastguard Worker//
3*0e209d39SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*0e209d39SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*0e209d39SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*0e209d39SAndroid Build Coastguard Worker//
7*0e209d39SAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
8*0e209d39SAndroid Build Coastguard Worker//
9*0e209d39SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*0e209d39SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*0e209d39SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*0e209d39SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*0e209d39SAndroid Build Coastguard Worker// limitations under the License.
14*0e209d39SAndroid Build Coastguard Workerpackage {
15*0e209d39SAndroid Build Coastguard Worker    default_team: "trendy_team_java_core_libraries",
16*0e209d39SAndroid Build Coastguard Worker    default_visibility: ["//external/icu:__subpackages__"],
17*0e209d39SAndroid Build Coastguard Worker    // See: http://go/android-license-faq
18*0e209d39SAndroid Build Coastguard Worker    // A large-scale-change added 'default_applicable_licenses' to import
19*0e209d39SAndroid Build Coastguard Worker    // all of the 'license_kinds' from "external_icu_license"
20*0e209d39SAndroid Build Coastguard Worker    // to get the below license kinds:
21*0e209d39SAndroid Build Coastguard Worker    //   SPDX-license-identifier-BSD
22*0e209d39SAndroid Build Coastguard Worker    //   SPDX-license-identifier-ICU
23*0e209d39SAndroid Build Coastguard Worker    //   SPDX-license-identifier-MIT
24*0e209d39SAndroid Build Coastguard Worker    //   SPDX-license-identifier-Unicode-DFS
25*0e209d39SAndroid Build Coastguard Worker    default_applicable_licenses: ["external_icu_license"],
26*0e209d39SAndroid Build Coastguard Worker}
27*0e209d39SAndroid Build Coastguard Worker
28*0e209d39SAndroid Build Coastguard Worker// Android repo only headers for icu4c
29*0e209d39SAndroid Build Coastguard Worker// The header should mainly contain config for C preprocessor,
30*0e209d39SAndroid Build Coastguard Worker// but not actual C / C++ source code
31*0e209d39SAndroid Build Coastguard Workercc_library_headers {
32*0e209d39SAndroid Build Coastguard Worker    name: "icu4c_extra_headers",
33*0e209d39SAndroid Build Coastguard Worker    host_supported: true,
34*0e209d39SAndroid Build Coastguard Worker    native_bridge_supported: true,
35*0e209d39SAndroid Build Coastguard Worker    export_include_dirs: ["include"],
36*0e209d39SAndroid Build Coastguard Worker    apex_available: [
37*0e209d39SAndroid Build Coastguard Worker        "com.android.i18n",
38*0e209d39SAndroid Build Coastguard Worker    ],
39*0e209d39SAndroid Build Coastguard Worker    target: {
40*0e209d39SAndroid Build Coastguard Worker        windows: {
41*0e209d39SAndroid Build Coastguard Worker            enabled: true,
42*0e209d39SAndroid Build Coastguard Worker        },
43*0e209d39SAndroid Build Coastguard Worker    },
44*0e209d39SAndroid Build Coastguard Worker}
45