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 import("//tools/grit/grit_rule.gni") | 6 import("//tools/grit/grit_rule.gni") |
7 | 7 |
8 gypi_values = exec_script("//build/gypi_to_gn.py", | 8 gypi_values = exec_script("//build/gypi_to_gn.py", |
9 [ rebase_path("../chrome_renderer.gypi") ], | 9 [ rebase_path("../chrome_renderer.gypi") ], |
10 "scope", | 10 "scope", |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 | 175 |
176 if (is_win) { | 176 if (is_win) { |
177 deps += [ "//third_party/wtl" ] | 177 deps += [ "//third_party/wtl" ] |
178 } | 178 } |
179 if (is_android) { | 179 if (is_android) { |
180 sources -= [ | 180 sources -= [ |
181 "spellchecker/hunspell_engine.cc", | 181 "spellchecker/hunspell_engine.cc", |
182 "spellchecker/hunspell_engine.h", | 182 "spellchecker/hunspell_engine.h", |
183 ] | 183 ] |
184 } | 184 } |
| 185 |
| 186 if (is_chromeos) { |
| 187 sources += rebase_path(gypi_values.chrome_renderer_leak_detector_sources, |
| 188 ".", |
| 189 "..") |
| 190 public_deps += [ |
| 191 "//components/metrics:interfaces", |
| 192 "//components/metrics:leak_detector", |
| 193 ] |
| 194 } |
185 } | 195 } |
186 | 196 |
187 # In GYP this is part of test_support_common. | 197 # In GYP this is part of test_support_common. |
188 source_set("test_support") { | 198 source_set("test_support") { |
189 testonly = true | 199 testonly = true |
190 visibility = [ "//chrome/test:test_support" ] | 200 visibility = [ "//chrome/test:test_support" ] |
191 | 201 |
192 sources = [ | 202 sources = [ |
193 "chrome_mock_render_thread.cc", | 203 "chrome_mock_render_thread.cc", |
194 "chrome_mock_render_thread.h", | 204 "chrome_mock_render_thread.h", |
(...skipping 21 matching lines...) Expand all Loading... |
216 ] | 226 ] |
217 } | 227 } |
218 | 228 |
219 if (is_android) { | 229 if (is_android) { |
220 sources -= [ | 230 sources -= [ |
221 "safe_browsing/mock_feature_extractor_clock.cc", | 231 "safe_browsing/mock_feature_extractor_clock.cc", |
222 "safe_browsing/mock_feature_extractor_clock.h", | 232 "safe_browsing/mock_feature_extractor_clock.h", |
223 ] | 233 ] |
224 } | 234 } |
225 } | 235 } |
OLD | NEW |