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/crypto.gni") | 5 import("//build/config/crypto.gni") |
6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
8 | 8 |
9 gypi_values = exec_script( | 9 gypi_values = exec_script( |
10 "//build/gypi_to_gn.py", | 10 "//build/gypi_to_gn.py", |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 } | 217 } |
218 if (toolkit_views) { | 218 if (toolkit_views) { |
219 sources += rebase_path(gypi_values.chrome_browser_ui_views_sources, | 219 sources += rebase_path(gypi_values.chrome_browser_ui_views_sources, |
220 ".", "//chrome") | 220 ".", "//chrome") |
221 deps += [ "//components/constrained_window" ] | 221 deps += [ "//components/constrained_window" ] |
222 if (!is_chromeos) { | 222 if (!is_chromeos) { |
223 sources += rebase_path( | 223 sources += rebase_path( |
224 gypi_values.chrome_browser_ui_views_non_chromeos_sources, | 224 gypi_values.chrome_browser_ui_views_non_chromeos_sources, |
225 ".", "//chrome") | 225 ".", "//chrome") |
226 } | 226 } |
227 if (!is_mac) { | 227 if (is_mac) { |
| 228 if (mac_views_browser) { |
| 229 sources -= [ "cocoa/browser_window_factory_cocoa.mm" ] |
| 230 } else { |
| 231 sources -= [ "views/frame/browser_window_factory.cc" ] |
| 232 } |
| 233 } else { |
228 sources += rebase_path( | 234 sources += rebase_path( |
229 gypi_values.chrome_browser_ui_views_non_mac_sources, | 235 gypi_values.chrome_browser_ui_views_non_mac_sources, |
230 ".", "//chrome") | 236 ".", "//chrome") |
231 deps += [ | 237 deps += [ |
232 "//extensions/components/native_app_window", | 238 "//extensions/components/native_app_window", |
233 ] | 239 ] |
234 } | 240 } |
235 if (use_ash) { | 241 if (use_ash) { |
236 sources += rebase_path(gypi_values.chrome_browser_ui_ash_views_sources, | 242 sources += rebase_path(gypi_values.chrome_browser_ui_ash_views_sources, |
237 ".", "//chrome") | 243 ".", "//chrome") |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 "//chrome/browser", | 493 "//chrome/browser", |
488 "//content/public/browser", | 494 "//content/public/browser", |
489 "//content/public/common", | 495 "//content/public/common", |
490 "//content/test:test_support", | 496 "//content/test:test_support", |
491 "//net:test_support", | 497 "//net:test_support", |
492 "//skia", | 498 "//skia", |
493 "//testing/gtest", | 499 "//testing/gtest", |
494 "//ui/base", | 500 "//ui/base", |
495 ] | 501 ] |
496 } | 502 } |
OLD | NEW |