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 // See: http://go/android-license-faq 17 // A large-scale-change added 'default_applicable_licenses' to import 18 // all of the 'license_kinds' from "external_icu_icu4c_license" 19 // to get the below license kinds: 20 // SPDX-license-identifier-BSD 21 // SPDX-license-identifier-ICU 22 // SPDX-license-identifier-ISC 23 // SPDX-license-identifier-MIT 24 // SPDX-license-identifier-Unicode-DFS 25 // legacy_unencumbered 26 default_applicable_licenses: ["external_icu_icu4c_license"], 27} 28 29subdirs = [ 30 "common", 31 "i18n", 32 "test", 33 "tools/ctestfw", 34 "tools/toolutil", 35] 36 37cc_library { 38 name: "libicuuc_stubdata", 39 host_supported: true, 40 srcs: ["stubdata/stubdata.cpp"], 41 apex_available: [ 42 "com.android.i18n", 43 ], 44 header_libs: [ 45 "libicuuc_headers", 46 ], 47 cflags: [ 48 "-Wall", 49 "-Werror", 50 ], 51 cppflags: ["-std=c++11"], 52 target: { 53 windows: { 54 enabled: true, 55 }, 56 windows_x86_64: { 57 dist: { 58 targets: ["layoutlib"], 59 dir: "layoutlib_native/windows", 60 }, 61 }, 62 android: { 63 cflags: [ 64 "-DANDROID_LINK_SHARED_ICU4C", 65 ], 66 }, 67 }, 68} 69 70genrule { 71 name: "icu4c_test_data", 72 srcs: [ 73 "test/testdata/**/*", 74 "data/**/*", 75 ], 76 out: ["icu4c_test_data.zip"], 77 tools: ["soong_zip"], 78 cmd: "$(location soong_zip) -o $(out) -C external/icu/icu4c/source/ -D external/icu/icu4c/source/test/testdata -D external/icu/icu4c/source/data", 79} 80