1// Copyright (C) 2019 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 15// A library of shared initialization code for use by libicuuc.so only. 16package { 17 default_team: "trendy_team_java_core_libraries", 18 // See: http://go/android-license-faq 19 // A large-scale-change added 'default_applicable_licenses' to import 20 // all of the 'license_kinds' from "external_icu_license" 21 // to get the below license kinds: 22 // SPDX-license-identifier-Apache-2.0 23 default_applicable_licenses: ["external_icu_license"], 24} 25 26cc_library_static { 27 name: "libandroidicuinit", 28 host_supported: true, // for ART host testing. 29 native_bridge_supported: true, 30 srcs: ["*.cpp"], 31 // Caution: Don't invoke the caller, e.g. openCommonData, from this library because it could 32 // cause an indefinite loop. This library interacts with libicuuc closely, but this library is 33 // stored in a separate directory to avoid a larger patch which could incur more works when 34 // updating from the upstream. 35 header_libs: ["libicuuc_headers"], 36 cflags: [ 37 "-Wall", 38 "-Werror", 39 ], 40 export_include_dirs: ["include"], 41 target: { 42 android: { 43 cflags: [ 44 // -DANDROID_LINK_SHARED_ICU4C to enable access to the full ICU4C. 45 // See external/icu/android_icu4c/include/uconfig_local.h 46 // for more information. 47 "-DANDROID_LINK_SHARED_ICU4C", 48 ], 49 shared_libs: [ 50 "libbase", 51 "liblog", 52 ], 53 }, 54 }, 55 apex_available: [ 56 "com.android.i18n", 57 ], 58 visibility: [ 59 "//external/icu/icu4c/source/common", 60 ], 61} 62