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("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 | 6 |
7 declare_args() { | 7 declare_args() { |
8 if (is_android || is_ios) { | 8 if (is_android || is_ios) { |
9 cld2_table_size = 0 # Small, accurate tables | 9 cld2_table_size = 0 # Small, accurate tables |
10 } else { | 10 } else { |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 public_deps += [ ":cld2_dynamic" ] | 91 public_deps += [ ":cld2_dynamic" ] |
92 } | 92 } |
93 } | 93 } |
94 | 94 |
95 config("cld2_warnings") { | 95 config("cld2_warnings") { |
96 if (is_clang) { | 96 if (is_clang) { |
97 cflags = [ | 97 cflags = [ |
98 # cld_2 contains unused private fields. | 98 # cld_2 contains unused private fields. |
99 # https://code.google.com/p/cld2/issues/detail?id=37 | 99 # https://code.google.com/p/cld2/issues/detail?id=37 |
100 "-Wno-unused-private-field", | 100 "-Wno-unused-private-field", |
| 101 |
101 # offsetmap.cc uses a char as a subscript. | 102 # offsetmap.cc uses a char as a subscript. |
102 "-Wno-char-subscripts", | 103 "-Wno-char-subscripts", |
103 ] | 104 ] |
104 } | 105 } |
105 } | 106 } |
106 | 107 |
107 static_library("cld2_static") { | 108 static_library("cld2_static") { |
108 sources = gypi_values.cld2_core_impl_sources | 109 sources = gypi_values.cld2_core_impl_sources |
109 include_dirs = [ | 110 include_dirs = [ |
110 "src/internal", | 111 "src/internal", |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 "//build/config/sanitizers:deps", | 163 "//build/config/sanitizers:deps", |
163 ] | 164 ] |
164 | 165 |
165 configs -= [ "//build/config/compiler:chromium_code" ] | 166 configs -= [ "//build/config/compiler:chromium_code" ] |
166 configs += [ | 167 configs += [ |
167 ":cld2_dynamic_mode_config", | 168 ":cld2_dynamic_mode_config", |
168 "//build/config/compiler:no_chromium_code", | 169 "//build/config/compiler:no_chromium_code", |
169 ] | 170 ] |
170 } | 171 } |
171 } | 172 } |
OLD | NEW |