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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 "//cc", | 309 "//cc", |
310 "//net", | 310 "//net", |
311 "//third_party/icu", | 311 "//third_party/icu", |
312 "//ui/events", | 312 "//ui/events", |
313 "//ui/events/devices", | 313 "//ui/events/devices", |
314 "//ui/resources", | 314 "//ui/resources", |
315 "//ui/strings", | 315 "//ui/strings", |
316 "//url", | 316 "//url", |
317 ] | 317 ] |
318 | 318 |
| 319 if (build_ime) { |
| 320 sources += [ |
| 321 "ime/candidate_window.cc", |
| 322 "ime/candidate_window.h", |
| 323 "ime/chromeos/character_composer.cc", |
| 324 "ime/chromeos/character_composer.h", |
| 325 "ime/chromeos/component_extension_ime_manager.cc", |
| 326 "ime/chromeos/component_extension_ime_manager.h", |
| 327 "ime/chromeos/composition_text.cc", |
| 328 "ime/chromeos/composition_text.h", |
| 329 "ime/chromeos/extension_ime_util.cc", |
| 330 "ime/chromeos/extension_ime_util.h", |
| 331 "ime/chromeos/fake_ime_keyboard.cc", |
| 332 "ime/chromeos/fake_ime_keyboard.h", |
| 333 "ime/chromeos/fake_input_method_delegate.cc", |
| 334 "ime/chromeos/fake_input_method_delegate.h", |
| 335 "ime/chromeos/ime_bridge.cc", |
| 336 "ime/chromeos/ime_bridge.h", |
| 337 "ime/chromeos/ime_keyboard.cc", |
| 338 "ime/chromeos/ime_keyboard.h", |
| 339 "ime/chromeos/ime_keyboard_ozone.cc", |
| 340 "ime/chromeos/ime_keyboard_ozone.h", |
| 341 "ime/chromeos/ime_keyboard_x11.cc", |
| 342 "ime/chromeos/ime_keyboard_x11.h", |
| 343 "ime/chromeos/ime_keymap.cc", |
| 344 "ime/chromeos/ime_keymap.h", |
| 345 "ime/chromeos/input_method_delegate.h", |
| 346 "ime/chromeos/input_method_descriptor.cc", |
| 347 "ime/chromeos/input_method_descriptor.h", |
| 348 "ime/chromeos/input_method_manager.cc", |
| 349 "ime/chromeos/input_method_manager.h", |
| 350 "ime/chromeos/input_method_whitelist.cc", |
| 351 "ime/chromeos/input_method_whitelist.h", |
| 352 "ime/chromeos/mock_component_extension_ime_manager_delegate.cc", |
| 353 "ime/chromeos/mock_component_extension_ime_manager_delegate.h", |
| 354 "ime/chromeos/mock_ime_candidate_window_handler.cc", |
| 355 "ime/chromeos/mock_ime_candidate_window_handler.h", |
| 356 "ime/chromeos/mock_ime_engine_handler.cc", |
| 357 "ime/chromeos/mock_ime_engine_handler.h", |
| 358 "ime/chromeos/mock_ime_input_context_handler.cc", |
| 359 "ime/chromeos/mock_ime_input_context_handler.h", |
| 360 "ime/composition_text.cc", |
| 361 "ime/composition_text.h", |
| 362 "ime/composition_text_util_pango.cc", |
| 363 "ime/composition_text_util_pango.h", |
| 364 "ime/composition_underline.h", |
| 365 "ime/dummy_input_method_delegate.cc", |
| 366 "ime/dummy_input_method_delegate.h", |
| 367 "ime/infolist_entry.cc", |
| 368 "ime/infolist_entry.h", |
| 369 "ime/input_method.h", |
| 370 "ime/input_method_auralinux.cc", |
| 371 "ime/input_method_auralinux.h", |
| 372 "ime/input_method_base.cc", |
| 373 "ime/input_method_base.h", |
| 374 "ime/input_method_chromeos.cc", |
| 375 "ime/input_method_chromeos.h", |
| 376 "ime/input_method_delegate.h", |
| 377 "ime/input_method_factory.cc", |
| 378 "ime/input_method_factory.h", |
| 379 "ime/input_method_initializer.cc", |
| 380 "ime/input_method_initializer.h", |
| 381 "ime/input_method_mac.h", |
| 382 "ime/input_method_mac.mm", |
| 383 "ime/input_method_minimal.cc", |
| 384 "ime/input_method_minimal.h", |
| 385 "ime/input_method_observer.h", |
| 386 "ime/input_method_win.cc", |
| 387 "ime/input_method_win.h", |
| 388 "ime/linux/fake_input_method_context.cc", |
| 389 "ime/linux/fake_input_method_context.h", |
| 390 "ime/linux/fake_input_method_context_factory.cc", |
| 391 "ime/linux/fake_input_method_context_factory.h", |
| 392 "ime/linux/linux_input_method_context.h", |
| 393 "ime/linux/linux_input_method_context_factory.cc", |
| 394 "ime/linux/linux_input_method_context_factory.h", |
| 395 "ime/mock_input_method.cc", |
| 396 "ime/mock_input_method.h", |
| 397 "ime/remote_input_method_delegate_win.h", |
| 398 "ime/remote_input_method_win.cc", |
| 399 "ime/remote_input_method_win.h", |
| 400 "ime/text_input_client.cc", |
| 401 "ime/text_input_client.h", |
| 402 "ime/text_input_focus_manager.cc", |
| 403 "ime/text_input_focus_manager.h", |
| 404 "ime/text_input_type.h", |
| 405 "ime/win/imm32_manager.cc", |
| 406 "ime/win/imm32_manager.h", |
| 407 "ime/win/tsf_input_scope.cc", |
| 408 "ime/win/tsf_input_scope.h", |
| 409 ] |
| 410 |
| 411 if (!use_aura || (!is_linux && !use_ozone)) { |
| 412 sources -= [ |
| 413 "ime/input_method_auralinux.cc", |
| 414 "ime/input_method_auralinux.h", |
| 415 ] |
| 416 } |
| 417 |
| 418 if (!toolkit_views && !use_aura) { |
| 419 sources -= [ |
| 420 "ime/input_method_factory.cc", |
| 421 "ime/input_method_factory.h", |
| 422 "ime/input_method_minimal.cc", |
| 423 "ime/input_method_minimal.h", |
| 424 ] |
| 425 } |
| 426 |
| 427 if (is_chromeos) { |
| 428 deps += [ |
| 429 "//chromeos", |
| 430 "//chromeos/ime:gencode", |
| 431 ] |
| 432 if (!use_ozone) { |
| 433 sources -= [ |
| 434 "ime/chromeos/ime_keyboard_ozone.cc", |
| 435 "ime/chromeos/ime_keyboard_ozone.h", |
| 436 ] |
| 437 } |
| 438 if (!use_x11) { |
| 439 sources -= [ |
| 440 "ime/chromeos/ime_keyboard_x11.cc", |
| 441 "ime/chromeos/ime_keyboard_x11.h", |
| 442 ] |
| 443 } |
| 444 } |
| 445 |
| 446 if (use_pango) { |
| 447 configs += [ "//build/config/linux:pangocairo" ] |
| 448 } else { |
| 449 sources -= [ |
| 450 "ime/composition_text_util_pango.cc", |
| 451 "ime/composition_text_util_pango.h", |
| 452 ] |
| 453 } |
| 454 } |
| 455 |
319 if (is_ios) { | 456 if (is_ios) { |
320 sources += [ | 457 sources += [ |
321 "l10n/l10n_util_mac.h", | 458 "l10n/l10n_util_mac.h", |
322 "l10n/l10n_util_mac.mm", | 459 "l10n/l10n_util_mac.mm", |
323 ] | 460 ] |
324 } | 461 } |
325 | 462 |
326 if (toolkit_views) { | 463 if (toolkit_views) { |
327 deps += [ "//ui/events" ] | 464 deps += [ "//ui/events" ] |
328 } | 465 } |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 ] | 556 ] |
420 ldflags = [ | 557 ldflags = [ |
421 "/DELAYLOAD:d2d1.dll", | 558 "/DELAYLOAD:d2d1.dll", |
422 "/DELAYLOAD:d3d10_1.dll", | 559 "/DELAYLOAD:d3d10_1.dll", |
423 "/DELAYLOAD:dwmapi.dll", | 560 "/DELAYLOAD:dwmapi.dll", |
424 ] | 561 ] |
425 libs += [ | 562 libs += [ |
426 "d2d1.lib", | 563 "d2d1.lib", |
427 "d3d10_1.lib", | 564 "d3d10_1.lib", |
428 "dwmapi.lib", | 565 "dwmapi.lib", |
| 566 "imm32.lib", |
429 "d2d1.lib", | 567 "d2d1.lib", |
430 "dwmapi.lib", | 568 "dwmapi.lib", |
431 "oleacc.lib", | 569 "oleacc.lib", |
432 ] | 570 ] |
433 } else { | 571 } else { |
434 if (!use_aura) { | 572 if (!use_aura) { |
435 sources -= [ | 573 sources -= [ |
436 "view_prop.cc", | 574 "view_prop.cc", |
437 "view_prop.h", | 575 "view_prop.h", |
438 ] | 576 ] |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 "//ui/gfx/geometry", | 723 "//ui/gfx/geometry", |
586 ] | 724 ] |
587 | 725 |
588 if (build_ime) { | 726 if (build_ime) { |
589 sources += [ | 727 sources += [ |
590 "ime/dummy_input_method.cc", | 728 "ime/dummy_input_method.cc", |
591 "ime/dummy_input_method.h", | 729 "ime/dummy_input_method.h", |
592 "ime/dummy_text_input_client.cc", | 730 "ime/dummy_text_input_client.cc", |
593 "ime/dummy_text_input_client.h", | 731 "ime/dummy_text_input_client.h", |
594 ] | 732 ] |
595 | |
596 deps += [ "//ui/base/ime" ] | |
597 } | 733 } |
598 | 734 |
599 if (!use_aura) { | 735 if (!use_aura) { |
600 sources -= [ "test/ui_controls_aura.cc" ] | 736 sources -= [ "test/ui_controls_aura.cc" ] |
601 } else if (is_win) { | 737 } else if (is_win) { |
602 sources -= [ "test/ui_controls_win.cc" ] | 738 sources -= [ "test/ui_controls_win.cc" ] |
603 } | 739 } |
604 } | 740 } |
605 | 741 |
606 if (is_android) { | 742 if (is_android) { |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 "//ui/resources", | 849 "//ui/resources", |
714 "//ui/resources:ui_test_pak", | 850 "//ui/resources:ui_test_pak", |
715 "//ui/strings", | 851 "//ui/strings", |
716 "//url", | 852 "//url", |
717 ] | 853 ] |
718 | 854 |
719 if (is_ios) { | 855 if (is_ios) { |
720 # TODO(GYP) lots of iOS-only steps for ui_base_unittests | 856 # TODO(GYP) lots of iOS-only steps for ui_base_unittests |
721 } | 857 } |
722 | 858 |
723 if (build_ime) { | |
724 deps += [ "//ui/base/ime" ] | |
725 } | |
726 | |
727 if (is_win) { | 859 if (is_win) { |
728 sources += [ | 860 sources += [ |
729 "dragdrop/os_exchange_data_win_unittest.cc", | 861 "dragdrop/os_exchange_data_win_unittest.cc", |
730 "win/hwnd_subclass_unittest.cc", | 862 "win/hwnd_subclass_unittest.cc", |
731 "win/open_file_name_win_unittest.cc", | 863 "win/open_file_name_win_unittest.cc", |
732 ] | 864 ] |
733 | 865 |
734 ldflags = [ | 866 ldflags = [ |
735 "/DELAYLOAD:d2d1.dll", | 867 "/DELAYLOAD:d2d1.dll", |
736 "/DELAYLOAD:d3d10_1.dll", | 868 "/DELAYLOAD:d3d10_1.dll", |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 } | 929 } |
798 | 930 |
799 if (is_chromeos) { | 931 if (is_chromeos) { |
800 deps += [ | 932 deps += [ |
801 "//chromeos", | 933 "//chromeos", |
802 "//ui/events:dom4_keycode_converter", | 934 "//ui/events:dom4_keycode_converter", |
803 ] | 935 ] |
804 } | 936 } |
805 } | 937 } |
806 # TODO(GYP) Mac (ui_base_tests_bundle) | 938 # TODO(GYP) Mac (ui_base_tests_bundle) |
OLD | NEW |