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/ui.gni") | 5 import("//build/config/ui.gni") |
6 | 6 |
7 if (is_android) { | 7 if (is_android) { |
8 import("//build/config/android/config.gni") | 8 import("//build/config/android/config.gni") |
9 import("//build/config/android/rules.gni") | 9 import("//build/config/android/rules.gni") |
10 } | 10 } |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 "//base:i18n", | 232 "//base:i18n", |
233 "//net", | 233 "//net", |
234 "//third_party/icu", | 234 "//third_party/icu", |
235 "//ui/resources", | 235 "//ui/resources", |
236 "//ui/strings", | 236 "//ui/strings", |
237 "//url", | 237 "//url", |
238 ] | 238 ] |
239 | 239 |
240 if (ui_base_build_ime) { | 240 if (ui_base_build_ime) { |
241 if (!is_android) { | 241 if (!is_android) { |
242 deps += [ | 242 deps += [ "//ui/events" ] |
243 "//ui/events", | |
244 ] | |
245 } | 243 } |
246 | 244 |
247 sources += [ | 245 sources += [ |
248 "ime/candidate_window.cc", | 246 "ime/candidate_window.cc", |
249 "ime/candidate_window.h", | 247 "ime/candidate_window.h", |
250 "ime/chromeos/character_composer.cc", | 248 "ime/chromeos/character_composer.cc", |
251 "ime/chromeos/character_composer.h", | 249 "ime/chromeos/character_composer.h", |
252 "ime/chromeos/ime_bridge.cc", | 250 "ime/chromeos/ime_bridge.cc", |
253 "ime/chromeos/ime_bridge.h", | 251 "ime/chromeos/ime_bridge.h", |
254 "ime/chromeos/ime_keymap.cc", | 252 "ime/chromeos/ime_keymap.cc", |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 if (!toolkit_views && !use_aura) { | 318 if (!toolkit_views && !use_aura) { |
321 sources -= [ | 319 sources -= [ |
322 "ime/input_method_factory.cc", | 320 "ime/input_method_factory.cc", |
323 "ime/input_method_factory.h", | 321 "ime/input_method_factory.h", |
324 "ime/input_method_minimal.cc", | 322 "ime/input_method_minimal.cc", |
325 "ime/input_method_minimal.h", | 323 "ime/input_method_minimal.h", |
326 ] | 324 ] |
327 } | 325 } |
328 | 326 |
329 if (is_chromeos) { | 327 if (is_chromeos) { |
330 deps += [ | 328 deps += [ "//chromeos" ] |
331 "//chromeos", | |
332 ] | |
333 } | 329 } |
334 | 330 |
335 if (use_pango) { | 331 if (use_pango) { |
336 configs += [ "//build/config/linux:pangocairo" ] | 332 configs += [ "//build/config/linux:pangocairo" ] |
337 } else { | 333 } else { |
338 sources -= [ | 334 sources -= [ |
339 "ime/composition_text_util_pango.cc", | 335 "ime/composition_text_util_pango.cc", |
340 "ime/composition_text_util_pango.h", | 336 "ime/composition_text_util_pango.h", |
341 ] | 337 ] |
342 } | 338 } |
343 } | 339 } |
344 | 340 |
345 if (toolkit_views) { | 341 if (toolkit_views) { |
346 deps += [ | 342 deps += [ "//ui/events" ] |
347 "//ui/events", | |
348 ] | |
349 } | 343 } |
350 | 344 |
351 if (use_x11 && use_aura) { | 345 if (use_x11 && use_aura) { |
352 sources += [ | 346 sources += [ |
353 "x/selection_owner.cc", | 347 "x/selection_owner.cc", |
354 "x/selection_owner.h", | 348 "x/selection_owner.h", |
355 "x/selection_requestor.cc", | 349 "x/selection_requestor.cc", |
356 "x/selection_requestor.h", | 350 "x/selection_requestor.h", |
357 "x/selection_utils.cc", | 351 "x/selection_utils.cc", |
358 "x/selection_utils.h", | 352 "x/selection_utils.h", |
359 ] | 353 ] |
360 } | 354 } |
361 | 355 |
362 if (use_aura) { | 356 if (use_aura) { |
363 deps += [ | 357 deps += [ "//ui/events" ] |
364 "//ui/events", | |
365 ] | |
366 } else { | 358 } else { |
367 sources -= [ | 359 sources -= [ |
368 "cursor/cursor.cc", | 360 "cursor/cursor.cc", |
369 "cursor/cursor.h", | 361 "cursor/cursor.h", |
370 "dragdrop/drag_utils_aura.cc", | 362 "dragdrop/drag_utils_aura.cc", |
371 ] | 363 ] |
372 } | 364 } |
373 if (use_x11) { | 365 if (use_x11) { |
374 sources += [ | 366 sources += [ |
375 "x/x11_foreign_window_manager.cc", | 367 "x/x11_foreign_window_manager.cc", |
376 "x/x11_foreign_window_manager.h", | 368 "x/x11_foreign_window_manager.h", |
377 "x/x11_menu_list.cc", | 369 "x/x11_menu_list.cc", |
378 "x/x11_menu_list.h", | 370 "x/x11_menu_list.h", |
379 "x/x11_util.cc", | 371 "x/x11_util.cc", |
380 "x/x11_util.h", | 372 "x/x11_util.h", |
381 "x/x11_util_internal.h", | 373 "x/x11_util_internal.h", |
382 ] | 374 ] |
383 deps += [ "//ui/gfx/x" ] | 375 deps += [ "//ui/gfx/x" ] |
384 } | 376 } |
385 | 377 |
386 if (!use_aura || !is_linux) { | 378 if (!use_aura || !is_linux) { |
387 sources -= [ | 379 sources -= [ "resource/resource_bundle_auralinux.cc" ] |
388 "resource/resource_bundle_auralinux.cc", | |
389 ] | |
390 } | 380 } |
391 | 381 |
392 if (use_aura && is_win) { | 382 if (use_aura && is_win) { |
393 sources -= [ | 383 sources -= [ "dragdrop/drag_utils_aura.cc" ] |
394 "dragdrop/drag_utils_aura.cc", | |
395 ] | |
396 } | 384 } |
397 | 385 |
398 if (is_linux) { | 386 if (is_linux) { |
399 configs += [ | 387 configs += [ |
400 "//build/config/linux:fontconfig", | 388 "//build/config/linux:fontconfig", |
401 "//build/config/linux:glib", | 389 "//build/config/linux:glib", |
402 ] | 390 ] |
403 } | 391 } |
404 | 392 |
405 if ((is_linux && !is_chromeos) || is_chromeos) { | 393 if ((is_linux && !is_chromeos) || is_chromeos) { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 } else { | 434 } else { |
447 if (!use_aura) { | 435 if (!use_aura) { |
448 sources -= [ | 436 sources -= [ |
449 "view_prop.cc", | 437 "view_prop.cc", |
450 "view_prop.h", | 438 "view_prop.h", |
451 ] | 439 ] |
452 } | 440 } |
453 } | 441 } |
454 | 442 |
455 if (is_mac) { | 443 if (is_mac) { |
456 deps += [ | 444 deps += [ "//third_party/mozilla" ] |
457 "//third_party/mozilla", | |
458 ] | |
459 | 445 |
460 sources -= [ | 446 sources -= [ |
461 "cursor/image_cursors.cc", | 447 "cursor/image_cursors.cc", |
462 "cursor/image_cursors.h", | 448 "cursor/image_cursors.h", |
463 "dragdrop/drag_utils.cc", | 449 "dragdrop/drag_utils.cc", |
464 "dragdrop/drag_utils.h", | 450 "dragdrop/drag_utils.h", |
465 ] | 451 ] |
466 | 452 |
467 libs += [ | 453 libs += [ |
468 "Accelerate.framework", | 454 "Accelerate.framework", |
469 "AudioUnit.framework", | 455 "AudioUnit.framework", |
470 "CoreVideo.framework", | 456 "CoreVideo.framework", |
471 ] | 457 ] |
472 } | 458 } |
473 | 459 |
474 if (use_x11) { | 460 if (use_x11) { |
475 #'all_dependent_settings': { | 461 #'all_dependent_settings': { |
476 #'ldflags': [ | 462 #'ldflags': [ |
477 #'-L<(PRODUCT_DIR)', | 463 #'-L<(PRODUCT_DIR)', |
478 #], | 464 #], |
479 #}, | 465 #}, |
480 configs += [ | 466 configs += [ "//build/config/linux:x11" ] |
481 "//build/config/linux:x11" | |
482 ] | |
483 } | 467 } |
484 | 468 |
485 if (use_aura) { | 469 if (use_aura) { |
486 if (use_x11) { | 470 if (use_x11) { |
487 sources += [ | 471 sources += [ |
488 "cursor/cursor_loader_x11.cc", | 472 "cursor/cursor_loader_x11.cc", |
489 "cursor/cursor_loader_x11.h", | 473 "cursor/cursor_loader_x11.h", |
490 "cursor/cursor_x11.cc", | 474 "cursor/cursor_x11.cc", |
491 ] | 475 ] |
492 if (!is_chromeos) { | 476 if (!is_chromeos) { |
493 # These Aura X11 files aren't used on ChromeOS. | 477 # These Aura X11 files aren't used on ChromeOS. |
494 sources += [ | 478 sources += [ |
495 "dragdrop/os_exchange_data_provider_aurax11.cc", | 479 "dragdrop/os_exchange_data_provider_aurax11.cc", |
496 "dragdrop/os_exchange_data_provider_aurax11.h", | 480 "dragdrop/os_exchange_data_provider_aurax11.h", |
497 ] | 481 ] |
498 } | 482 } |
499 } | 483 } |
500 } | 484 } |
501 if (use_ozone) { | 485 if (use_ozone) { |
502 sources += [ | 486 sources += [ |
503 "cursor/cursor_loader_ozone.cc", | 487 "cursor/cursor_loader_ozone.cc", |
504 "cursor/cursor_loader_ozone.h", | 488 "cursor/cursor_loader_ozone.h", |
505 "cursor/cursor_ozone.cc", | 489 "cursor/cursor_ozone.cc", |
506 "cursor/ozone/bitmap_cursor_factory_ozone.cc", | 490 "cursor/ozone/bitmap_cursor_factory_ozone.cc", |
507 "cursor/ozone/bitmap_cursor_factory_ozone.h", | 491 "cursor/ozone/bitmap_cursor_factory_ozone.h", |
508 ] | 492 ] |
509 | 493 |
510 deps += [ | 494 deps += [ "//ui/ozone:ozone_base" ] |
511 "//ui/ozone:ozone_base", | |
512 ] | |
513 } | 495 } |
514 | 496 |
515 if (!toolkit_views) { | 497 if (!toolkit_views) { |
516 sources -= [ | 498 sources -= [ |
517 "dragdrop/drag_drop_types.h", | 499 "dragdrop/drag_drop_types.h", |
518 "dragdrop/drop_target_event.cc", | 500 "dragdrop/drop_target_event.cc", |
519 "dragdrop/drop_target_event.h", | 501 "dragdrop/drop_target_event.h", |
520 "dragdrop/os_exchange_data.cc", | 502 "dragdrop/os_exchange_data.cc", |
521 "dragdrop/os_exchange_data.h", | 503 "dragdrop/os_exchange_data.h", |
522 "nine_image_painter_factory.cc", | 504 "nine_image_painter_factory.cc", |
523 "nine_image_painter_factory.h", | 505 "nine_image_painter_factory.h", |
524 ] | 506 ] |
525 } | 507 } |
526 | 508 |
527 if (is_android) { | 509 if (is_android) { |
528 sources -= [ | 510 sources -= [ |
529 "default_theme_provider.cc", | 511 "default_theme_provider.cc", |
530 "dragdrop/drag_utils.cc", | 512 "dragdrop/drag_utils.cc", |
531 "dragdrop/drag_utils.h", | 513 "dragdrop/drag_utils.h", |
532 "l10n/l10n_font_util.cc", | 514 "l10n/l10n_font_util.cc", |
533 "models/button_menu_item_model.cc", | 515 "models/button_menu_item_model.cc", |
534 "models/dialog_model.cc", | 516 "models/dialog_model.cc", |
535 "theme_provider.cc", | 517 "theme_provider.cc", |
536 "touch/touch_editing_controller.cc", | 518 "touch/touch_editing_controller.cc", |
537 "ui_base_types.cc", | 519 "ui_base_types.cc", |
538 ] | 520 ] |
539 | 521 |
540 deps += [ | 522 deps += [ ":ui_base_jni_headers" ] |
541 ":ui_base_jni_headers", | |
542 ] | |
543 | 523 |
544 libs += [ | 524 libs += [ "jnigraphics" ] |
545 "jnigraphics", | |
546 ] | |
547 } | 525 } |
548 | 526 |
549 if (is_android && is_android_webview_build) { | 527 if (is_android && is_android_webview_build) { |
550 deps += [ | 528 deps += [ |
551 #TODO(GYP): port this component to GN. | 529 #TODO(GYP): port this component to GN. |
552 #"//ui/android:ui_java", | 530 #"//ui/android:ui_java", |
553 ] | 531 ] |
554 } | 532 } |
555 | 533 |
556 if (is_android && !use_aura) { | 534 if (is_android && !use_aura) { |
557 sources -= [ | 535 sources -= [ "cursor/cursor_android.cc" ] |
558 "cursor/cursor_android.cc", | |
559 ] | |
560 } | 536 } |
561 | 537 |
562 # Aura clipboard. | 538 # Aura clipboard. |
563 if (use_aura) { | 539 if (use_aura) { |
564 if (use_x11) { | 540 if (use_x11) { |
565 sources += [ "clipboard/clipboard_aurax11.cc" ] | 541 sources += [ "clipboard/clipboard_aurax11.cc" ] |
566 } else if (!is_win) { | 542 } else if (!is_win) { |
567 # This file is used for all non-X11, non-Windows aura Builds. | 543 # This file is used for all non-X11, non-Windows aura Builds. |
568 sources += [ "clipboard/clipboard_aura.cc" ] | 544 sources += [ "clipboard/clipboard_aura.cc" ] |
569 } | 545 } |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 "../android/java/src/org/chromium/ui/base/SelectFileDialog.java", | 589 "../android/java/src/org/chromium/ui/base/SelectFileDialog.java", |
614 "../android/java/src/org/chromium/ui/base/TouchDevice.java", | 590 "../android/java/src/org/chromium/ui/base/TouchDevice.java", |
615 "../android/java/src/org/chromium/ui/base/ViewAndroid.java", | 591 "../android/java/src/org/chromium/ui/base/ViewAndroid.java", |
616 "../android/java/src/org/chromium/ui/base/WindowAndroid.java", | 592 "../android/java/src/org/chromium/ui/base/WindowAndroid.java", |
617 ] | 593 ] |
618 jni_package = "base" | 594 jni_package = "base" |
619 } | 595 } |
620 } | 596 } |
621 | 597 |
622 if (false) { | 598 if (false) { |
| 599 # TODO(GYP): Make this work on Android and reenable it. |
| 600 if (!is_android) { |
| 601 # TODO(tfarina): Rename this target to ui_base_unittests. |
| 602 # In order to do this we will need to keep this target, add a dummy |
| 603 # ui_base_unittests target that just points to ui_unittests, change |
| 604 # buildbot code to reference the new 'ui_base_unittests' target. |
| 605 # After buildbot is updated, we can make the changes in Chromium and |
| 606 # remove 'ui_unittests' target. crbug.com/331829 |
| 607 # GYP version: ui/base/ui_base_tests.gyp:ui_unittests |
| 608 test("ui_unittests") { |
| 609 sources = [ |
| 610 "l10n/l10n_util_mac_unittest.mm", |
| 611 "l10n/l10n_util_unittest.cc", |
| 612 "l10n/l10n_util_win_unittest.cc", |
| 613 "l10n/time_format_unittest.cc", |
| 614 "layout_unittest.cc", |
| 615 "models/tree_node_iterator_unittest.cc", |
| 616 "resource/data_pack_literal.cc", |
| 617 "resource/data_pack_unittest.cc", |
| 618 "resource/resource_bundle_unittest.cc", |
| 619 "test/run_all_unittests.cc", |
| 620 ] |
623 | 621 |
624 # TODO(GYP): Make this work on Android and reenable it. | 622 sources += [ |
625 if (!is_android) { | 623 "accelerators/accelerator_manager_unittest.cc", |
626 # TODO(tfarina): Rename this target to ui_base_unittests. | 624 "accelerators/menu_label_accelerator_util_linux_unittest.cc", |
627 # In order to do this we will need to keep this target, add a dummy | 625 "clipboard/custom_data_helper_unittest.cc", |
628 # ui_base_unittests target that just points to ui_unittests, change | 626 "dragdrop/os_exchange_data_provider_aurax11_unittest.cc", |
629 # buildbot code to reference the new 'ui_base_unittests' target. | 627 "models/list_model_unittest.cc", |
630 # After buildbot is updated, we can make the changes in Chromium and | 628 "models/list_selection_model_unittest.cc", |
631 # remove 'ui_unittests' target. crbug.com/331829 | 629 "models/tree_node_model_unittest.cc", |
632 # GYP version: ui/base/ui_base_tests.gyp:ui_unittests | 630 "test/data/resource.h", |
633 test("ui_unittests") { | 631 "text/bytes_formatting_unittest.cc", |
634 sources = [ | 632 "view_prop_unittest.cc", |
635 "l10n/l10n_util_mac_unittest.mm", | 633 "x/selection_requestor_unittest.cc", |
636 "l10n/l10n_util_unittest.cc", | 634 ] |
637 "l10n/l10n_util_win_unittest.cc", | |
638 "l10n/time_format_unittest.cc", | |
639 "layout_unittest.cc", | |
640 "models/tree_node_iterator_unittest.cc", | |
641 "resource/data_pack_literal.cc", | |
642 "resource/data_pack_unittest.cc", | |
643 "resource/resource_bundle_unittest.cc", | |
644 "test/run_all_unittests.cc", | |
645 ] | |
646 | 635 |
647 sources += [ | 636 if (!use_x11) { |
648 "accelerators/accelerator_manager_unittest.cc", | 637 if (is_chromeos) { |
649 "accelerators/menu_label_accelerator_util_linux_unittest.cc", | 638 # These were already removed in the chromeos case. |
650 "clipboard/custom_data_helper_unittest.cc", | 639 sources -= [ |
651 "dragdrop/os_exchange_data_provider_aurax11_unittest.cc", | 640 "ime/chromeos/character_composer_unittest.cc", |
652 "models/list_model_unittest.cc", | 641 "ime/input_method_chromeos_unittest.cc", |
653 "models/list_selection_model_unittest.cc", | 642 ] |
654 "models/tree_node_model_unittest.cc", | 643 } |
655 "test/data/resource.h", | 644 } |
656 "text/bytes_formatting_unittest.cc", | |
657 "view_prop_unittest.cc", | |
658 "x/selection_requestor_unittest.cc", | |
659 ] | |
660 | 645 |
661 if (!use_x11) { | 646 if (ui_base_build_ime) { |
662 if (is_chromeos) { | 647 sources += [ |
663 # These were already removed in the chromeos case. | 648 "ime/candidate_window_unittest.cc", |
664 sources -= [ | 649 "ime/chromeos/character_composer_unittest.cc", |
665 "ime/chromeos/character_composer_unittest.cc", | 650 "ime/input_method_base_unittest.cc", |
666 "ime/input_method_chromeos_unittest.cc", | 651 "ime/input_method_chromeos_unittest.cc", |
| 652 "ime/remote_input_method_win_unittest.cc", |
| 653 "ime/win/imm32_manager_unittest.cc", |
| 654 "ime/win/tsf_input_scope_unittest.cc", |
| 655 ] |
| 656 if (use_x11) { |
| 657 sources += [ "ime/composition_text_util_pango_unittest.cc" ] |
| 658 } |
| 659 } |
| 660 |
| 661 deps = [ |
| 662 "//base", |
| 663 "//base/allocator", |
| 664 "//base/test:test_support", |
| 665 "//net", |
| 666 "//skia", |
| 667 "//testing/gmock", |
| 668 "//testing/gtest", |
| 669 "//third_party/icu", |
| 670 "//ui/base", |
| 671 "//ui/base:test_support", |
| 672 "//ui/events:events_base", |
| 673 "//ui/events:test_support", |
| 674 "//ui/gfx:test_support", |
| 675 "//ui/resources", |
| 676 "//ui/resources:ui_test_pak", |
| 677 "//ui/strings", |
| 678 "//url", |
667 ] | 679 ] |
| 680 |
| 681 if (is_win) { |
| 682 sources += [ |
| 683 "dragdrop/os_exchange_data_win_unittest.cc", |
| 684 "win/hwnd_subclass_unittest.cc", |
| 685 "win/open_file_name_win_unittest.cc", |
| 686 ] |
| 687 |
| 688 ldflags = [ |
| 689 "/DELAYLOAD:d2d1.dll", |
| 690 "/DELAYLOAD:d3d10_1.dll", |
| 691 ] |
| 692 libs = [ |
| 693 "d2d1.lib", |
| 694 "d3d10_1.lib", |
| 695 "imm32.lib", |
| 696 "oleacc.lib", |
| 697 ] |
| 698 |
| 699 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 700 cflags = [ "/wd4267" ] |
| 701 } |
| 702 |
| 703 if (is_android) { |
| 704 deps += [ |
| 705 #"testing/android/native_test.gyp:native_test_native_code" TODO(GYP) |
| 706 ] |
| 707 } |
| 708 |
| 709 if (use_pango) { |
| 710 configs += [ "//build/config/linux:pangocairo" ] |
| 711 } |
| 712 |
| 713 if (use_x11) { |
| 714 sources += [ "cursor/cursor_loader_x11_unittest.cc" ] |
| 715 |
| 716 configs += [ "//build/config/linux:x11" ] |
| 717 |
| 718 deps += [ |
| 719 "//ui/events/platform/x11", |
| 720 "//ui/gfx/x", |
| 721 ] |
| 722 |
| 723 datadeps = [ |
| 724 "//tools/xdisplaycheck", |
| 725 ] |
| 726 } |
| 727 |
| 728 if (!is_win || !use_aura) { |
| 729 sources -= [ "view_prop_unittest.cc" ] |
| 730 } |
| 731 |
| 732 if (is_mac) { |
| 733 deps += [ |
| 734 "//third_party/mozilla", |
| 735 #'ui_unittests_bundle', TODO(GYP) |
| 736 ] |
| 737 } |
| 738 |
| 739 if (use_aura || toolkit_views) { |
| 740 sources += [ "dragdrop/os_exchange_data_unittest.cc" ] |
| 741 |
| 742 deps += [ |
| 743 "//ui/events", |
| 744 "//ui/events/platform", |
| 745 ] |
| 746 } |
| 747 |
| 748 if (is_chromeos) { |
| 749 sources += [ "../chromeos/touch_exploration_controller_unittest.cc" ] |
| 750 sources -= [ |
| 751 "dragdrop/os_exchange_data_provider_aurax11_unittest.cc", |
| 752 "x/selection_requestor_unittest.cc", |
| 753 ] |
| 754 deps += [ |
| 755 "//chromeos", |
| 756 "//ui/aura:test_support", |
| 757 "//ui/events:gesture_detection", |
| 758 "//ui/chromeos:ui_chromeos", |
| 759 ] |
| 760 } |
668 } | 761 } |
669 } | 762 } |
670 | |
671 if (ui_base_build_ime) { | |
672 sources += [ | |
673 "ime/candidate_window_unittest.cc", | |
674 "ime/chromeos/character_composer_unittest.cc", | |
675 "ime/input_method_base_unittest.cc", | |
676 "ime/input_method_chromeos_unittest.cc", | |
677 "ime/remote_input_method_win_unittest.cc", | |
678 "ime/win/imm32_manager_unittest.cc", | |
679 "ime/win/tsf_input_scope_unittest.cc", | |
680 ] | |
681 if (use_x11) { | |
682 sources += [ "ime/composition_text_util_pango_unittest.cc" ] | |
683 } | |
684 } | |
685 | |
686 deps = [ | |
687 "//base", | |
688 "//base/allocator", | |
689 "//base/test:test_support", | |
690 "//net", | |
691 "//skia", | |
692 "//testing/gmock", | |
693 "//testing/gtest", | |
694 "//third_party/icu", | |
695 "//ui/base", | |
696 "//ui/base:test_support", | |
697 "//ui/events:events_base", | |
698 "//ui/events:test_support", | |
699 "//ui/gfx:test_support", | |
700 "//ui/resources", | |
701 "//ui/resources:ui_test_pak", | |
702 "//ui/strings", | |
703 "//url", | |
704 ] | |
705 | |
706 if (is_win) { | |
707 sources += [ | |
708 "dragdrop/os_exchange_data_win_unittest.cc", | |
709 "win/hwnd_subclass_unittest.cc", | |
710 "win/open_file_name_win_unittest.cc", | |
711 ] | |
712 | |
713 ldflags = [ | |
714 "/DELAYLOAD:d2d1.dll", | |
715 "/DELAYLOAD:d3d10_1.dll", | |
716 ] | |
717 libs = [ | |
718 "d2d1.lib", | |
719 "d3d10_1.lib", | |
720 "imm32.lib", | |
721 "oleacc.lib", | |
722 ] | |
723 | |
724 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
725 cflags = [ "/wd4267" ] | |
726 } | |
727 | |
728 if (is_android) { | |
729 deps += [ | |
730 #"testing/android/native_test.gyp:native_test_native_code" TODO(GYP) | |
731 ] | |
732 } | |
733 | |
734 if (use_pango) { | |
735 configs += [ | |
736 "//build/config/linux:pangocairo" | |
737 ] | |
738 } | |
739 | |
740 if (use_x11) { | |
741 sources += [ | |
742 "cursor/cursor_loader_x11_unittest.cc" | |
743 ] | |
744 | |
745 configs += [ | |
746 "//build/config/linux:x11" | |
747 ] | |
748 | |
749 deps += [ | |
750 "//ui/events/platform/x11", | |
751 "//ui/gfx/x", | |
752 ] | |
753 | |
754 datadeps = [ | |
755 "//tools/xdisplaycheck" | |
756 ] | |
757 } | |
758 | |
759 if (!is_win || !use_aura) { | |
760 sources -= [ | |
761 "view_prop_unittest.cc" | |
762 ] | |
763 } | |
764 | |
765 if (is_mac) { | |
766 deps += [ | |
767 "//third_party/mozilla", | |
768 #'ui_unittests_bundle', TODO(GYP) | |
769 ] | |
770 } | |
771 | |
772 if (use_aura || toolkit_views) { | |
773 sources += [ | |
774 "dragdrop/os_exchange_data_unittest.cc" | |
775 ] | |
776 | |
777 deps += [ | |
778 "//ui/events", | |
779 "//ui/events/platform", | |
780 ] | |
781 } | |
782 | |
783 if (is_chromeos) { | |
784 sources += [ | |
785 "../chromeos/touch_exploration_controller_unittest.cc", | |
786 ] | |
787 sources -= [ | |
788 "dragdrop/os_exchange_data_provider_aurax11_unittest.cc", | |
789 "x/selection_requestor_unittest.cc", | |
790 ] | |
791 deps += [ | |
792 "//chromeos", | |
793 "//ui/aura:test_support", | |
794 "//ui/events:gesture_detection", | |
795 "//ui/chromeos:ui_chromeos", | |
796 ] | |
797 } | |
798 } | |
799 } | |
800 } | 763 } |
801 # TODO(GYP) Mac (ui_unittest_bundle) and Android (ui_unittests_apk). | 764 # TODO(GYP) Mac (ui_unittest_bundle) and Android (ui_unittests_apk). |
OLD | NEW |