| 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 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 | 7 |
| 8 if (is_android) { | 8 if (is_android) { |
| 9 import("//build/config/android/config.gni") | 9 import("//build/config/android/config.gni") |
| 10 import("//build/config/android/rules.gni") | 10 import("//build/config/android/rules.gni") |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 if (use_x11) { | 358 if (use_x11) { |
| 359 sources += [ | 359 sources += [ |
| 360 "x/x11_foreign_window_manager.cc", | 360 "x/x11_foreign_window_manager.cc", |
| 361 "x/x11_foreign_window_manager.h", | 361 "x/x11_foreign_window_manager.h", |
| 362 "x/x11_menu_list.cc", | 362 "x/x11_menu_list.cc", |
| 363 "x/x11_menu_list.h", | 363 "x/x11_menu_list.h", |
| 364 "x/x11_util.cc", | 364 "x/x11_util.cc", |
| 365 "x/x11_util.h", | 365 "x/x11_util.h", |
| 366 "x/x11_util_internal.h", | 366 "x/x11_util_internal.h", |
| 367 ] | 367 ] |
| 368 if (!is_chromeos) { | 368 if (!is_chromeos_ui) { |
| 369 sources += [ | 369 sources += [ |
| 370 "idle/idle_query_x11.cc", | 370 "idle/idle_query_x11.cc", |
| 371 "idle/idle_query_x11.h", | 371 "idle/idle_query_x11.h", |
| 372 "idle/screensaver_window_finder_x11.cc", | 372 "idle/screensaver_window_finder_x11.cc", |
| 373 "idle/screensaver_window_finder_x11.h", | 373 "idle/screensaver_window_finder_x11.h", |
| 374 ] | 374 ] |
| 375 configs += [ "//build/config/linux:xscrnsaver" ] | 375 configs += [ "//build/config/linux:xscrnsaver" ] |
| 376 } | 376 } |
| 377 deps += [ "//ui/gfx/x" ] | 377 deps += [ "//ui/gfx/x" ] |
| 378 } | 378 } |
| 379 | 379 |
| 380 if (!use_aura || !is_linux) { | 380 if (!use_aura || !is_linux) { |
| 381 sources -= [ "resource/resource_bundle_auralinux.cc" ] | 381 sources -= [ "resource/resource_bundle_auralinux.cc" ] |
| 382 } | 382 } |
| 383 | 383 |
| 384 if (use_aura && is_win) { | 384 if (use_aura && is_win) { |
| 385 sources -= [ "dragdrop/drag_utils_aura.cc" ] | 385 sources -= [ "dragdrop/drag_utils_aura.cc" ] |
| 386 } | 386 } |
| 387 | 387 |
| 388 if (is_linux) { | 388 if (is_linux) { |
| 389 configs += [ | 389 configs += [ |
| 390 "//build/config/linux:fontconfig", | 390 "//build/config/linux:fontconfig", |
| 391 "//build/config/linux:glib", | 391 "//build/config/linux:glib", |
| 392 ] | 392 ] |
| 393 } | 393 } |
| 394 | 394 |
| 395 if ((is_linux && !is_chromeos) || is_chromeos) { | 395 if ((is_linux && !is_chromeos_ui) || is_chromeos_ui) { |
| 396 if (!toolkit_views && !use_aura) { | 396 if (!toolkit_views && !use_aura) { |
| 397 sources -= [ | 397 sources -= [ |
| 398 "dragdrop/drag_utils.cc", | 398 "dragdrop/drag_utils.cc", |
| 399 "dragdrop/drag_utils.h", | 399 "dragdrop/drag_utils.h", |
| 400 ] | 400 ] |
| 401 } | 401 } |
| 402 } | 402 } |
| 403 | 403 |
| 404 if (is_chromeos) { | 404 if (is_chromeos_ui) { |
| 405 deps += [ "//chromeos" ] | 405 deps += [ "//chromeos" ] |
| 406 sources -= [ "idle/idle_linux.cc" ] | 406 sources -= [ "idle/idle_linux.cc" ] |
| 407 } | 407 } |
| 408 | 408 |
| 409 if (is_chromeos || (use_aura && ((is_linux && !use_x11) || is_android))) { | 409 if (is_chromeos_ui || (use_aura && ((is_linux && !use_x11) || is_android))) { |
| 410 sources += [ | 410 sources += [ |
| 411 "dragdrop/os_exchange_data_provider_aura.cc", | 411 "dragdrop/os_exchange_data_provider_aura.cc", |
| 412 "dragdrop/os_exchange_data_provider_aura.h", | 412 "dragdrop/os_exchange_data_provider_aura.h", |
| 413 ] | 413 ] |
| 414 } | 414 } |
| 415 | 415 |
| 416 libs = [] | 416 libs = [] |
| 417 if (is_win) { | 417 if (is_win) { |
| 418 sources += [ | 418 sources += [ |
| 419 "cursor/cursor_loader_win.cc", | 419 "cursor/cursor_loader_win.cc", |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 configs += [ "//build/config/linux:x11" ] | 471 configs += [ "//build/config/linux:x11" ] |
| 472 } | 472 } |
| 473 | 473 |
| 474 if (use_aura) { | 474 if (use_aura) { |
| 475 if (use_x11) { | 475 if (use_x11) { |
| 476 sources += [ | 476 sources += [ |
| 477 "cursor/cursor_loader_x11.cc", | 477 "cursor/cursor_loader_x11.cc", |
| 478 "cursor/cursor_loader_x11.h", | 478 "cursor/cursor_loader_x11.h", |
| 479 "cursor/cursor_x11.cc", | 479 "cursor/cursor_x11.cc", |
| 480 ] | 480 ] |
| 481 if (!is_chromeos) { | 481 if (!is_chromeos_ui) { |
| 482 # These Aura X11 files aren't used on ChromeOS. | 482 # These Aura X11 files aren't used on ChromeOS. |
| 483 sources += [ | 483 sources += [ |
| 484 "dragdrop/os_exchange_data_provider_aurax11.cc", | 484 "dragdrop/os_exchange_data_provider_aurax11.cc", |
| 485 "dragdrop/os_exchange_data_provider_aurax11.h", | 485 "dragdrop/os_exchange_data_provider_aurax11.h", |
| 486 ] | 486 ] |
| 487 } | 487 } |
| 488 } | 488 } |
| 489 if (is_android) { | 489 if (is_android) { |
| 490 sources += [ "cursor/cursor_loader_android.cc" ] | 490 sources += [ "cursor/cursor_loader_android.cc" ] |
| 491 } | 491 } |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 sources += [ | 706 sources += [ |
| 707 "ime/candidate_window_unittest.cc", | 707 "ime/candidate_window_unittest.cc", |
| 708 "ime/chromeos/character_composer_unittest.cc", | 708 "ime/chromeos/character_composer_unittest.cc", |
| 709 "ime/chromeos/composition_text_chromeos_unittest.cc", | 709 "ime/chromeos/composition_text_chromeos_unittest.cc", |
| 710 "ime/input_method_base_unittest.cc", | 710 "ime/input_method_base_unittest.cc", |
| 711 "ime/input_method_chromeos_unittest.cc", | 711 "ime/input_method_chromeos_unittest.cc", |
| 712 "ime/remote_input_method_win_unittest.cc", | 712 "ime/remote_input_method_win_unittest.cc", |
| 713 "ime/win/imm32_manager_unittest.cc", | 713 "ime/win/imm32_manager_unittest.cc", |
| 714 "ime/win/tsf_input_scope_unittest.cc", | 714 "ime/win/tsf_input_scope_unittest.cc", |
| 715 ] | 715 ] |
| 716 if (is_linux && use_aura && !is_chromeos) { | 716 if (is_linux && use_aura && !is_chromeos_ui) { |
| 717 sources += [ "ime/input_method_auralinux_unittest.cc" ] | 717 sources += [ "ime/input_method_auralinux_unittest.cc" ] |
| 718 } | 718 } |
| 719 if (use_x11) { | 719 if (use_x11) { |
| 720 sources += [ "ime/composition_text_util_pango_unittest.cc" ] | 720 sources += [ "ime/composition_text_util_pango_unittest.cc" ] |
| 721 } | 721 } |
| 722 if (!use_x11 && is_chromeos) { | 722 if (!use_x11 && is_chromeos_ui) { |
| 723 # These were already removed in the non-chromeos case. | 723 # These were already removed in the non-chromeos case. |
| 724 sources -= [ "ime/input_method_chromeos_unittest.cc" ] | 724 sources -= [ "ime/input_method_chromeos_unittest.cc" ] |
| 725 } | 725 } |
| 726 } | 726 } |
| 727 | 727 |
| 728 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 728 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 729 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 729 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 730 | 730 |
| 731 deps = [ | 731 deps = [ |
| 732 "//base", | 732 "//base", |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 810 | 810 |
| 811 if (use_aura || toolkit_views) { | 811 if (use_aura || toolkit_views) { |
| 812 sources += [ "dragdrop/os_exchange_data_unittest.cc" ] | 812 sources += [ "dragdrop/os_exchange_data_unittest.cc" ] |
| 813 | 813 |
| 814 deps += [ | 814 deps += [ |
| 815 "//ui/events", | 815 "//ui/events", |
| 816 "//ui/events/platform", | 816 "//ui/events/platform", |
| 817 ] | 817 ] |
| 818 } | 818 } |
| 819 | 819 |
| 820 if (use_x11 && !is_chromeos) { | 820 if (use_x11 && !is_chromeos_ui) { |
| 821 sources += [ | 821 sources += [ |
| 822 "dragdrop/os_exchange_data_provider_aurax11_unittest.cc", | 822 "dragdrop/os_exchange_data_provider_aurax11_unittest.cc", |
| 823 "x/selection_requestor_unittest.cc", | 823 "x/selection_requestor_unittest.cc", |
| 824 ] | 824 ] |
| 825 } | 825 } |
| 826 | 826 |
| 827 if (is_chromeos) { | 827 if (is_chromeos_ui) { |
| 828 deps += [ | 828 deps += [ |
| 829 "//chromeos", | 829 "//chromeos", |
| 830 "//ui/events:dom_keycode_converter", | 830 "//ui/events:dom_keycode_converter", |
| 831 ] | 831 ] |
| 832 } | 832 } |
| 833 | 833 |
| 834 if (is_linux || is_mac || is_win) { | 834 if (is_linux || is_mac || is_win) { |
| 835 # TODO(brettw): We should be able to depend on //ui/resources:ui_test_pak | 835 # TODO(brettw): We should be able to depend on //ui/resources:ui_test_pak |
| 836 # instead of depending directly on the non-test .pak files, but depending | 836 # instead of depending directly on the non-test .pak files, but depending |
| 837 # on ui_test_pak seems to have no effect. | 837 # on ui_test_pak seems to have no effect. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 853 } | 853 } |
| 854 if (is_mac) { | 854 if (is_mac) { |
| 855 data += [ "$root_out_dir/ui_unittests Framework.framework/" ] | 855 data += [ "$root_out_dir/ui_unittests Framework.framework/" ] |
| 856 | 856 |
| 857 if (is_asan && symbol_level == 0) { | 857 if (is_asan && symbol_level == 0) { |
| 858 data += [ "$root_out_dir/ui_base_unittests.dSYM/" ] | 858 data += [ "$root_out_dir/ui_base_unittests.dSYM/" ] |
| 859 } | 859 } |
| 860 } | 860 } |
| 861 } | 861 } |
| 862 # TODO(GYP) Mac (ui_base_tests_bundle) | 862 # TODO(GYP) Mac (ui_base_tests_bundle) |
| OLD | NEW |