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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
6 import("//build/config/compiler/compiler.gni") | 6 import("//build/config/compiler/compiler.gni") |
7 import("//build/config/sanitizers/sanitizers.gni") | 7 import("//build/config/sanitizers/sanitizers.gni") |
8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
9 import("//testing/test.gni") | 9 import("//testing/test.gni") |
10 import("//ui/base/ui_features.gni") | 10 import("//ui/base/ui_features.gni") |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 "cursor/cursor_loader.h", | 144 "cursor/cursor_loader.h", |
145 "cursor/cursor_win.cc", | 145 "cursor/cursor_win.cc", |
146 "default_style.h", | 146 "default_style.h", |
147 "default_theme_provider_mac.mm", | 147 "default_theme_provider_mac.mm", |
148 "device_form_factor.h", | 148 "device_form_factor.h", |
149 "device_form_factor_android.cc", | 149 "device_form_factor_android.cc", |
150 "device_form_factor_android.h", | 150 "device_form_factor_android.h", |
151 "device_form_factor_desktop.cc", | 151 "device_form_factor_desktop.cc", |
152 "device_form_factor_ios.mm", | 152 "device_form_factor_ios.mm", |
153 "dragdrop/drag_drop_types.h", | 153 "dragdrop/drag_drop_types.h", |
| 154 "dragdrop/drag_drop_types_mac.mm", |
154 "dragdrop/drag_drop_types_win.cc", | 155 "dragdrop/drag_drop_types_win.cc", |
155 "dragdrop/drag_source_win.cc", | 156 "dragdrop/drag_source_win.cc", |
156 "dragdrop/drag_source_win.h", | 157 "dragdrop/drag_source_win.h", |
157 "dragdrop/drag_utils_aura.cc", | |
158 "dragdrop/drag_utils_mac.mm", | |
159 "dragdrop/drag_utils_win.cc", | 158 "dragdrop/drag_utils_win.cc", |
160 "dragdrop/drop_target_event.cc", | 159 "dragdrop/drop_target_event.cc", |
161 "dragdrop/drop_target_event.h", | 160 "dragdrop/drop_target_event.h", |
162 "dragdrop/drop_target_win.cc", | 161 "dragdrop/drop_target_win.cc", |
163 "dragdrop/drop_target_win.h", | 162 "dragdrop/drop_target_win.h", |
164 "dragdrop/os_exchange_data.cc", | 163 "dragdrop/os_exchange_data.cc", |
165 "dragdrop/os_exchange_data.h", | 164 "dragdrop/os_exchange_data.h", |
166 "dragdrop/os_exchange_data_provider_mac.h", | 165 "dragdrop/os_exchange_data_provider_mac.h", |
167 "dragdrop/os_exchange_data_provider_mac.mm", | 166 "dragdrop/os_exchange_data_provider_mac.mm", |
168 "dragdrop/os_exchange_data_provider_win.cc", | 167 "dragdrop/os_exchange_data_provider_win.cc", |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 } | 434 } |
436 } | 435 } |
437 | 436 |
438 if (use_aura) { | 437 if (use_aura) { |
439 deps += [ "//ui/events" ] | 438 deps += [ "//ui/events" ] |
440 sources += [ "window_tracker_template.h" ] | 439 sources += [ "window_tracker_template.h" ] |
441 } else { | 440 } else { |
442 sources -= [ | 441 sources -= [ |
443 "cursor/cursor.cc", | 442 "cursor/cursor.cc", |
444 "cursor/cursor.h", | 443 "cursor/cursor.h", |
445 "dragdrop/drag_utils_aura.cc", | |
446 ] | 444 ] |
447 } | 445 } |
448 | 446 |
449 if (!use_aura || !is_linux) { | 447 if (!use_aura || !is_linux) { |
450 sources -= [ "resource/resource_bundle_auralinux.cc" ] | 448 sources -= [ "resource/resource_bundle_auralinux.cc" ] |
451 } | 449 } |
452 | 450 |
453 if (use_aura && is_win) { | |
454 sources -= [ "dragdrop/drag_utils_aura.cc" ] | |
455 } | |
456 | |
457 if (is_linux) { | 451 if (is_linux) { |
458 deps += [ "//build/linux:fontconfig" ] | 452 deps += [ "//build/linux:fontconfig" ] |
459 } | 453 } |
460 | 454 |
461 if (use_glib) { | 455 if (use_glib) { |
462 configs += [ "//build/config/linux:glib" ] | 456 configs += [ "//build/config/linux:glib" ] |
463 } | 457 } |
464 | 458 |
465 if (is_linux) { | 459 if (is_linux) { |
466 if (!toolkit_views && !use_aura) { | 460 if (!toolkit_views && !use_aura) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 ] | 508 ] |
515 } | 509 } |
516 } | 510 } |
517 | 511 |
518 if (is_mac) { | 512 if (is_mac) { |
519 deps += [ "//third_party/mozilla" ] | 513 deps += [ "//third_party/mozilla" ] |
520 | 514 |
521 sources -= [ | 515 sources -= [ |
522 "cursor/image_cursors.cc", | 516 "cursor/image_cursors.cc", |
523 "cursor/image_cursors.h", | 517 "cursor/image_cursors.h", |
524 "dragdrop/drag_utils.cc", | |
525 "dragdrop/drag_utils.h", | |
526 ] | 518 ] |
527 | 519 |
528 libs += [ | 520 libs += [ |
529 "Accelerate.framework", | 521 "Accelerate.framework", |
530 "AppKit.framework", | 522 "AppKit.framework", |
531 "AudioUnit.framework", | 523 "AudioUnit.framework", |
532 "Carbon.framework", | 524 "Carbon.framework", |
533 "CoreVideo.framework", | 525 "CoreVideo.framework", |
534 "Foundation.framework", | 526 "Foundation.framework", |
535 ] | 527 ] |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
956 if (is_mac) { | 948 if (is_mac) { |
957 mac_framework_bundle("ui_unittests_framework") { | 949 mac_framework_bundle("ui_unittests_framework") { |
958 testonly = true | 950 testonly = true |
959 deps = [ | 951 deps = [ |
960 "//ui/resources:ui_test_pak_bundle_data", | 952 "//ui/resources:ui_test_pak_bundle_data", |
961 ] | 953 ] |
962 info_plist = "test/framework-Info.plist" | 954 info_plist = "test/framework-Info.plist" |
963 output_name = "ui_unittests Framework" | 955 output_name = "ui_unittests Framework" |
964 } | 956 } |
965 } | 957 } |
OLD | NEW |