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 // 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-MIT 21 // SPDX-license-identifier-Unicode-DFS 22 // legacy_unencumbered 23 default_applicable_licenses: ["external_icu_icu4c_license"], 24} 25 26subdirs = [ 27 "cintltst", 28 "intltest", 29] 30 31cc_defaults { 32 name: "icu_test_defaults", 33 gtest: false, 34 rtti: true, 35 cflags: [ 36 "-Wno-deprecated-declarations", 37 "-Wno-missing-field-initializers", 38 "-Wno-unused-function", 39 "-Wno-unused-parameter", 40 "-Wno-unused-variable", 41 ], 42 c_std: "c11", 43 cpp_std: "c++11", 44 shared_libs: [ 45 "libicu_cts_stub", 46 "libicuuc_cts_stub", 47 "libicui18n_cts_stub", 48 "libbase", 49 "liblog", 50 ], 51 52 static_libs: [ 53 "libicuctest", 54 "libicutoolutil", 55 ], 56 target: { 57 android: { 58 cflags: [ 59 // Required to link libicuuc_cts_stub 60 "-DANDROID_LINK_SHARED_ICU4C", 61 // Do not set the data directory explicitly on Android because libicuuc has set it. 62 "-DANDROID_USE_ICU_REG", 63 ], 64 }, 65 }, 66} 67