Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Side by Side Diff: ui/base/BUILD.gn

Issue 553693002: Move ui:unittests target into ui/base/BUILD.gn (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix for Android. Now for real. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/BUILD.gn ('k') | ui/base/ui_base_tests.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 "../android/java/src/org/chromium/ui/base/LocalizationUtils.java", 589 "../android/java/src/org/chromium/ui/base/LocalizationUtils.java",
590 "../android/java/src/org/chromium/ui/base/ResourceBundle.java", 590 "../android/java/src/org/chromium/ui/base/ResourceBundle.java",
591 "../android/java/src/org/chromium/ui/base/SelectFileDialog.java", 591 "../android/java/src/org/chromium/ui/base/SelectFileDialog.java",
592 "../android/java/src/org/chromium/ui/base/TouchDevice.java", 592 "../android/java/src/org/chromium/ui/base/TouchDevice.java",
593 "../android/java/src/org/chromium/ui/base/ViewAndroid.java", 593 "../android/java/src/org/chromium/ui/base/ViewAndroid.java",
594 "../android/java/src/org/chromium/ui/base/WindowAndroid.java", 594 "../android/java/src/org/chromium/ui/base/WindowAndroid.java",
595 ] 595 ]
596 jni_package = "base" 596 jni_package = "base"
597 } 597 }
598 } 598 }
599
600 # TODO(GYP): Make this work on Android and reenable it.
601 if (!is_android) {
602 # GYP version: ui/base/ui_base_tests.gyp:ui_unittests
603 test("unittests") {
604 # TODO(tfarina): Rename this target to ui_base_unittests.
605 # In order to do this we will need to keep this target, add a dummy
606 # ui_base_unittests target that just points to ui_unittests, change
607 # buildbot code to reference the new 'ui_base_unittests' target.
608 # After buildbot is updated, we can make the changes in Chromium and
609 # remove 'ui_unittests' target. crbug.com/331829
610 output_name = "ui_unittests"
611 sources = [
612 "l10n/l10n_util_mac_unittest.mm",
613 "l10n/l10n_util_unittest.cc",
614 "l10n/l10n_util_win_unittest.cc",
615 "l10n/time_format_unittest.cc",
616 "layout_unittest.cc",
617 "models/tree_node_iterator_unittest.cc",
618 "resource/data_pack_literal.cc",
619 "resource/data_pack_unittest.cc",
620 "resource/resource_bundle_unittest.cc",
621 "test/run_all_unittests.cc",
622 ]
623
624 if (is_ios) {
625 # Compile this Mac file on iOS as well.
626 set_sources_assignment_filter([])
627 sources += [ "l10n/l10n_util_mac_unittest.mm" ]
628 set_sources_assignment_filter(sources_assignment_filter)
629 } else { # !is_ios
630 sources += [
631 "accelerators/accelerator_manager_unittest.cc",
632 "accelerators/menu_label_accelerator_util_linux_unittest.cc",
633 "clipboard/custom_data_helper_unittest.cc",
634 "cocoa/base_view_unittest.mm",
635 "cocoa/cocoa_base_utils_unittest.mm",
636 "cocoa/controls/blue_label_button_unittest.mm",
637 "cocoa/controls/hover_image_menu_button_unittest.mm",
638 "cocoa/controls/hyperlink_button_cell_unittest.mm",
639 "cocoa/focus_tracker_unittest.mm",
640 "cocoa/fullscreen_window_manager_unittest.mm",
641 "cocoa/hover_image_button_unittest.mm",
642 "cocoa/menu_controller_unittest.mm",
643 "cocoa/nsgraphics_context_additions_unittest.mm",
644 "cocoa/tracking_area_unittest.mm",
645 "dragdrop/os_exchange_data_provider_aurax11_unittest.cc",
646 "ime/candidate_window_unittest.cc",
647 "ime/chromeos/character_composer_unittest.cc",
648 "ime/composition_text_util_pango_unittest.cc",
649 "ime/input_method_base_unittest.cc",
650 "ime/input_method_chromeos_unittest.cc",
651 "ime/remote_input_method_win_unittest.cc",
652 "ime/win/imm32_manager_unittest.cc",
653 "ime/win/tsf_input_scope_unittest.cc",
654 "models/list_model_unittest.cc",
655 "models/list_selection_model_unittest.cc",
656 "models/tree_node_model_unittest.cc",
657 "test/data/resource.h",
658 "text/bytes_formatting_unittest.cc",
659 "view_prop_unittest.cc",
660 "webui/web_ui_util_unittest.cc",
661 "x/selection_requestor_unittest.cc",
662 ]
663
664 if (!use_x11) {
665 if (is_chromeos) {
666 # These were already removed in the chromeos case.
667 sources -= [
668 "ime/chromeos/character_composer_unittest.cc",
669 "ime/input_method_chromeos_unittest.cc",
670 ]
671 }
672 sources -= [ "ime/composition_text_util_pango_unittest.cc" ]
673 }
674 }
675
676 deps = [
677 "//base",
678 "//base/allocator",
679 "//base/test:test_support",
680 "//net",
681 "//skia",
682 "//testing/gmock",
683 "//testing/gtest",
684 "//third_party/icu",
685 "//ui/base",
686 "//ui/base:test_support",
687 "//ui/events:events_base",
688 "//ui/events:test_support",
689 "//ui/gfx:test_support",
690 "//ui/resources",
691 "//ui/resources:ui_test_pak",
692 "//ui/strings",
693 "//url",
694 ]
695
696 if (is_ios) {
697 # TODO(GYP) lots of iOS-only steps for ui_unittests
698 }
699
700 if (is_win) {
701 sources += [
702 "dragdrop/os_exchange_data_win_unittest.cc",
703 "win/hwnd_subclass_unittest.cc",
704 "win/open_file_name_win_unittest.cc",
705 ]
706
707 ldflags = [
708 "/DELAYLOAD:d2d1.dll",
709 "/DELAYLOAD:d3d10_1.dll",
710 ]
711 libs = [
712 "d2d1.lib",
713 "d3d10_1.lib",
714 "imm32.lib",
715 "oleacc.lib",
716 ]
717
718 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
719 cflags = [ "/wd4267" ]
720 }
721
722 if (is_android) {
723 deps += [
724 #"testing/android/native_test.gyp:native_test_native_code" TODO(GYP)
725 ]
726 }
727
728 if (use_pango) {
729 configs += [
730 "//build/config/linux:pangocairo"
731 ]
732 }
733
734 if (use_x11) {
735 sources += [
736 "cursor/cursor_loader_x11_unittest.cc"
737 ]
738
739 configs += [
740 "//build/config/linux:x11"
741 ]
742
743 deps += [
744 "//ui/events/platform/x11",
745 "//ui/gfx/x",
746 ]
747
748 datadeps = [
749 "//tools/xdisplaycheck"
750 ]
751 }
752
753 if (!is_win || !use_aura) {
754 sources -= [
755 "view_prop_unittest.cc"
756 ]
757 }
758
759 if (is_mac) {
760 deps += [
761 "//third_party/mozilla",
762 #'ui_unittests_bundle', TODO(GYP)
763 ]
764 }
765
766 if (use_aura || toolkit_views) {
767 sources += [
768 "dragdrop/os_exchange_data_unittest.cc"
769 ]
770
771 deps += [
772 "//ui/events",
773 "//ui/events/platform",
774 ]
775 }
776
777 if (is_chromeos) {
778 sources += [
779 "../chromeos/touch_exploration_controller_unittest.cc",
780 ]
781 sources -= [
782 "dragdrop/os_exchange_data_provider_aurax11_unittest.cc",
783 "x/selection_requestor_unittest.cc",
784 ]
785 deps += [
786 "//ui/aura:test_support",
787 "//ui/events:gesture_detection",
788 #'../chromeos/chromeos.gyp:chromeos', TODO(GYP)
789 #'chromeos/ui_chromeos.gyp:ui_chromeos',
790 ]
791 }
792 }
793 }
794 # TODO(GYP) Mac (ui_unittest_bundle) and Android (ui_unittests_apk).
OLDNEW
« no previous file with comments | « ui/BUILD.gn ('k') | ui/base/ui_base_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698