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. 14cc_library_static { 15 name: "libandroidicu_static", 16 host_supported: true, 17 native_bridge_supported: true, 18 srcs: [ 19 "*.cpp", 20 ], 21 shared_libs: [ 22 "libicuuc", 23 "libicui18n", 24 ], 25 cppflags: [ 26 "-std=c++11", // Use the same standard as libicuuc 27 ], 28 cflags: [ 29 "-Wall", 30 "-Werror", 31 "-DU_SHOW_CPLUSPLUS_API=0", 32 ], 33 target: { 34 android: { 35 cflags: [ 36 "-DANDROID_LINK_SHARED_ICU4C", 37 ], 38 }, 39 windows: { 40 enabled: true, 41 }, 42 }, 43 apex_available: [ 44 "com.android.art.release", 45 "com.android.art.debug", 46 // b/133140750 Clean this up. This is due to the dependency to from libmedia 47 "//apex_available:platform", 48 ], 49} 50