Victor Chang | 8acf63e | 2020-09-03 16:31:23 +0100 | [diff] [blame] | 1 | // Copyright (C) 2020 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 | filegroup { |
| 16 | name: "icu_license", |
| 17 | visibility: [ |
| 18 | "//external/icu:__subpackages__", |
| 19 | ], |
| 20 | path: "NOTICE", |
| 21 | srcs: ["NOTICE"], |
| 22 | } |
| 23 | |
| 24 | cc_defaults { |
| 25 | name: "icu4c_defaults", |
| 26 | cflags: [ |
| 27 | "-Wall", |
| 28 | "-Werror", |
| 29 | // Make all warnings into errors, but ignore a set of warnings used in headers by default. |
| 30 | "-Wno-unused-parameter", |
| 31 | "-Wno-unused-const-variable", |
| 32 | "-Wno-unneeded-internal-declaration", |
| 33 | "-Wno-deprecated-declarations", |
| 34 | "-Wno-ignored-attributes", |
| 35 | ], |
| 36 | // Upstream requires C++11 as the minimum version. |
| 37 | cppflags: [ |
| 38 | "-std=c++11", |
| 39 | ], |
| 40 | target: { |
| 41 | android: { |
| 42 | cflags: [ |
| 43 | // Require this flag to compile against libicuuc and libicui18n |
| 44 | "-DANDROID_LINK_SHARED_ICU4C", |
| 45 | ], |
| 46 | }, |
| 47 | // Windows build required by layoutlib |
| 48 | windows: { |
| 49 | enabled: true, |
| 50 | }, |
| 51 | }, |
| 52 | } |