OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//third_party/icu/config.gni") | 5 import("//third_party/icu/config.gni") |
6 | 6 |
7 if (is_android) { | 7 if (is_android) { |
8 import("//build/config/android/rules.gni") | 8 import("//build/config/android/rules.gni") |
9 } | 9 } |
10 | 10 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 "/wd4267", # Conversion from size_t on 64-bits. | 75 "/wd4267", # Conversion from size_t on 64-bits. |
76 "/wd4333", # Right shift by too large amount. | 76 "/wd4333", # Right shift by too large amount. |
77 ] | 77 ] |
78 } else if (is_linux || is_android) { | 78 } else if (is_linux || is_android) { |
79 cflags += [ | 79 cflags += [ |
80 "-Wno-unused-function", | 80 "-Wno-unused-function", |
81 ] | 81 ] |
82 } | 82 } |
83 if (is_clang) { | 83 if (is_clang) { |
84 cflags += [ | 84 cflags += [ |
| 85 # ICU uses its own deprecated functions. |
| 86 "-Wno-deprecated-declarations", |
85 # ICU has some code with the pattern: | 87 # ICU has some code with the pattern: |
86 # if (found = uprv_getWindowsTimeZoneInfo(...)) | 88 # if (found = uprv_getWindowsTimeZoneInfo(...)) |
87 "-Wno-parentheses", | 89 "-Wno-parentheses", |
88 # ucnv2022.cpp contains three functions that are only used when | 90 # ucnv2022.cpp contains three functions that are only used when |
89 # certain preprocessor defines are set. | 91 # certain preprocessor defines are set. |
90 # unistr.cpp also has an unused function for non-component builds. | 92 # unistr.cpp also has an unused function for non-component builds. |
91 "-Wno-unused-function", | 93 "-Wno-unused-function", |
92 ] | 94 ] |
93 } | 95 } |
94 } | 96 } |
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1022 } | 1024 } |
1023 } | 1025 } |
1024 | 1026 |
1025 source_set("icudata") { | 1027 source_set("icudata") { |
1026 sources = [ "$data_assembly" ] | 1028 sources = [ "$data_assembly" ] |
1027 defines = [ "U_HIDE_DATA_SYMBOL" ] | 1029 defines = [ "U_HIDE_DATA_SYMBOL" ] |
1028 deps = [ ":make_data_assembly", ] | 1030 deps = [ ":make_data_assembly", ] |
1029 } | 1031 } |
1030 } | 1032 } |
1031 } | 1033 } |
OLD | NEW |