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("//build/gypi_to_gn.py", | 9 gypi_values = exec_script("//build/gypi_to_gn.py", |
10 [ rebase_path("../../chrome_browser_ui.gypi") ], | 10 [ rebase_path("../../chrome_browser_ui.gypi") ], |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 "//ui/web_dialogs", | 117 "//ui/web_dialogs", |
118 "//v8", | 118 "//v8", |
119 ] | 119 ] |
120 } else { | 120 } else { |
121 # iOS. | 121 # iOS. |
122 sources += | 122 sources += |
123 rebase_path(gypi_values.chrome_browser_ui_ios_sources, ".", "//chrome") | 123 rebase_path(gypi_values.chrome_browser_ui_ios_sources, ".", "//chrome") |
124 deps += [ "//net" ] | 124 deps += [ "//net" ] |
125 } | 125 } |
126 | 126 |
127 if (!is_android && !is_ios) { | 127 if ((!is_android || use_aura) && !is_ios) { |
128 sources += rebase_path(gypi_values.chrome_browser_ui_non_mobile_sources, | 128 sources += rebase_path(gypi_values.chrome_browser_ui_non_mobile_sources, |
129 ".", | 129 ".", |
130 "//chrome") | 130 "//chrome") |
131 sources += | 131 sources += |
132 rebase_path(gypi_values.chrome_browser_ui_omnibox_non_mobile_sources, | 132 rebase_path(gypi_values.chrome_browser_ui_omnibox_non_mobile_sources, |
133 ".", | 133 ".", |
134 "//chrome") | 134 "//chrome") |
135 deps += [ | 135 deps += [ |
136 "//components/copresence", | 136 "//components/copresence", |
137 "//components/feedback/proto", | 137 "//components/feedback/proto", |
138 "//components/proximity_auth/webui", | 138 "//components/proximity_auth/webui", |
139 "//device/bluetooth", | 139 "//device/bluetooth", |
140 "//third_party/libusb", | 140 "//third_party/libusb", |
141 ] | 141 ] |
| 142 |
| 143 if (is_android) { |
| 144 deps -= [ "//third_party/libusb" ] |
| 145 } |
142 } | 146 } |
143 | 147 |
144 if (enable_basic_printing || enable_print_preview) { | 148 if (enable_basic_printing || enable_print_preview) { |
145 deps += [ "//printing" ] | 149 deps += [ "//printing" ] |
146 } | 150 } |
147 | 151 |
148 if (enable_nacl) { | 152 if (enable_nacl) { |
149 sources += | 153 sources += |
150 rebase_path(gypi_values.chrome_browser_ui_nacl_sources, ".", "//chrome") | 154 rebase_path(gypi_values.chrome_browser_ui_nacl_sources, ".", "//chrome") |
151 deps += [ "//native_client/src/trusted/service_runtime:sel" ] | 155 deps += [ "//native_client/src/trusted/service_runtime:sel" ] |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 if (enable_print_preview) { | 289 if (enable_print_preview) { |
286 sources += rebase_path(gypi_values.chrome_browser_ui_print_preview_sources, | 290 sources += rebase_path(gypi_values.chrome_browser_ui_print_preview_sources, |
287 ".", | 291 ".", |
288 "//chrome") | 292 "//chrome") |
289 } | 293 } |
290 | 294 |
291 if (is_android) { | 295 if (is_android) { |
292 deps += [ | 296 deps += [ |
293 "//chrome/browser:jni_headers", | 297 "//chrome/browser:jni_headers", |
294 "//crypto:platform", | 298 "//crypto:platform", |
295 "//components/web_contents_delegate_android", | |
296 ] | 299 ] |
297 deps -= [ | |
298 "//chrome/browser/ui/views", | |
299 "//ui/events", | |
300 ] | |
301 sources += rebase_path(gypi_values.chrome_browser_ui_android_sources, | |
302 ".", | |
303 "//chrome") | |
304 | 300 |
305 defines += [ "CHROME_BUILD_ID=" + android_chrome_build_id ] | 301 defines += [ "CHROME_BUILD_ID=" + android_chrome_build_id ] |
| 302 |
| 303 if (!use_aura) { |
| 304 sources += |
| 305 rebase_path(gypi_values.chrome_browser_ui_android_non_aura_sources, |
| 306 ".", |
| 307 "//chrome") |
| 308 deps += [ "//components/web_contents_delegate_android" ] |
| 309 deps -= [ |
| 310 "//chrome/browser/ui/views", |
| 311 "//ui/events", |
| 312 ] |
| 313 } |
306 } | 314 } |
307 | 315 |
308 if (is_mac) { | 316 if (is_mac) { |
309 sources += | 317 sources += |
310 rebase_path(gypi_values.chrome_browser_ui_mac_sources, ".", "//chrome") | 318 rebase_path(gypi_values.chrome_browser_ui_mac_sources, ".", "//chrome") |
311 deps += [ | 319 deps += [ |
312 ":generate_localizer", | 320 ":generate_localizer", |
313 "//third_party/apple_sample_code", | 321 "//third_party/apple_sample_code", |
314 "//third_party/google_toolbox_for_mac", | 322 "//third_party/google_toolbox_for_mac", |
315 "//third_party/molokocacao", | 323 "//third_party/molokocacao", |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 } else { | 424 } else { |
417 sources += rebase_path(gypi_values.chrome_browser_ui_non_app_list_sources, | 425 sources += rebase_path(gypi_values.chrome_browser_ui_non_app_list_sources, |
418 ".", | 426 ".", |
419 "//chrome") | 427 "//chrome") |
420 } | 428 } |
421 if (enable_autofill_dialog) { | 429 if (enable_autofill_dialog) { |
422 sources += | 430 sources += |
423 rebase_path(gypi_values.chrome_browser_ui_autofill_dialog_sources, | 431 rebase_path(gypi_values.chrome_browser_ui_autofill_dialog_sources, |
424 ".", | 432 ".", |
425 "//chrome") | 433 "//chrome") |
426 if (!is_android && !is_ios) { | 434 if ((!is_android || use_aura) && !is_ios) { |
427 sources += rebase_path( | 435 sources += rebase_path( |
428 gypi_values.chrome_browser_ui_autofill_dialog_non_mobile_sources, | 436 gypi_values.chrome_browser_ui_autofill_dialog_non_mobile_sources, |
429 ".", | 437 ".", |
430 "//chrome") | 438 "//chrome") |
431 deps += [ | 439 deps += [ |
432 "//third_party/libaddressinput", | 440 "//third_party/libaddressinput", |
433 "//third_party/libaddressinput:strings", | 441 "//third_party/libaddressinput:strings", |
434 ] | 442 ] |
435 } | 443 } |
436 } | 444 } |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 "//chrome/browser", | 557 "//chrome/browser", |
550 "//content/public/browser", | 558 "//content/public/browser", |
551 "//content/public/common", | 559 "//content/public/common", |
552 "//content/test:test_support", | 560 "//content/test:test_support", |
553 "//net:test_support", | 561 "//net:test_support", |
554 "//skia", | 562 "//skia", |
555 "//testing/gtest", | 563 "//testing/gtest", |
556 "//ui/base", | 564 "//ui/base", |
557 ] | 565 ] |
558 } | 566 } |
OLD | NEW |