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

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

Issue 889323003: Split ui/base/ime into a new component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix cros x11 GN build Created 5 years, 10 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/aura/aura.gyp ('k') | ui/base/ime/BUILD.gn » ('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 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
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
456 if (is_ios) { 319 if (is_ios) {
457 sources += [ 320 sources += [
458 "l10n/l10n_util_mac.h", 321 "l10n/l10n_util_mac.h",
459 "l10n/l10n_util_mac.mm", 322 "l10n/l10n_util_mac.mm",
460 ] 323 ]
461 } 324 }
462 325
463 if (toolkit_views) { 326 if (toolkit_views) {
464 deps += [ "//ui/events" ] 327 deps += [ "//ui/events" ]
465 } 328 }
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 ] 419 ]
557 ldflags = [ 420 ldflags = [
558 "/DELAYLOAD:d2d1.dll", 421 "/DELAYLOAD:d2d1.dll",
559 "/DELAYLOAD:d3d10_1.dll", 422 "/DELAYLOAD:d3d10_1.dll",
560 "/DELAYLOAD:dwmapi.dll", 423 "/DELAYLOAD:dwmapi.dll",
561 ] 424 ]
562 libs += [ 425 libs += [
563 "d2d1.lib", 426 "d2d1.lib",
564 "d3d10_1.lib", 427 "d3d10_1.lib",
565 "dwmapi.lib", 428 "dwmapi.lib",
566 "imm32.lib",
567 "d2d1.lib", 429 "d2d1.lib",
568 "dwmapi.lib", 430 "dwmapi.lib",
569 "oleacc.lib", 431 "oleacc.lib",
570 ] 432 ]
571 } else { 433 } else {
572 if (!use_aura) { 434 if (!use_aura) {
573 sources -= [ 435 sources -= [
574 "view_prop.cc", 436 "view_prop.cc",
575 "view_prop.h", 437 "view_prop.h",
576 ] 438 ]
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 "//ui/gfx/geometry", 585 "//ui/gfx/geometry",
724 ] 586 ]
725 587
726 if (build_ime) { 588 if (build_ime) {
727 sources += [ 589 sources += [
728 "ime/dummy_input_method.cc", 590 "ime/dummy_input_method.cc",
729 "ime/dummy_input_method.h", 591 "ime/dummy_input_method.h",
730 "ime/dummy_text_input_client.cc", 592 "ime/dummy_text_input_client.cc",
731 "ime/dummy_text_input_client.h", 593 "ime/dummy_text_input_client.h",
732 ] 594 ]
595
596 deps += [ "//ui/base/ime" ]
733 } 597 }
734 598
735 if (!use_aura) { 599 if (!use_aura) {
736 sources -= [ "test/ui_controls_aura.cc" ] 600 sources -= [ "test/ui_controls_aura.cc" ]
737 } else if (is_win) { 601 } else if (is_win) {
738 sources -= [ "test/ui_controls_win.cc" ] 602 sources -= [ "test/ui_controls_win.cc" ]
739 } 603 }
740 } 604 }
741 605
742 if (is_android) { 606 if (is_android) {
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 "//ui/resources", 713 "//ui/resources",
850 "//ui/resources:ui_test_pak", 714 "//ui/resources:ui_test_pak",
851 "//ui/strings", 715 "//ui/strings",
852 "//url", 716 "//url",
853 ] 717 ]
854 718
855 if (is_ios) { 719 if (is_ios) {
856 # TODO(GYP) lots of iOS-only steps for ui_base_unittests 720 # TODO(GYP) lots of iOS-only steps for ui_base_unittests
857 } 721 }
858 722
723 if (build_ime) {
724 deps += [ "//ui/base/ime" ]
725 }
726
859 if (is_win) { 727 if (is_win) {
860 sources += [ 728 sources += [
861 "dragdrop/os_exchange_data_win_unittest.cc", 729 "dragdrop/os_exchange_data_win_unittest.cc",
862 "win/hwnd_subclass_unittest.cc", 730 "win/hwnd_subclass_unittest.cc",
863 "win/open_file_name_win_unittest.cc", 731 "win/open_file_name_win_unittest.cc",
864 ] 732 ]
865 733
866 ldflags = [ 734 ldflags = [
867 "/DELAYLOAD:d2d1.dll", 735 "/DELAYLOAD:d2d1.dll",
868 "/DELAYLOAD:d3d10_1.dll", 736 "/DELAYLOAD:d3d10_1.dll",
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 } 797 }
930 798
931 if (is_chromeos) { 799 if (is_chromeos) {
932 deps += [ 800 deps += [
933 "//chromeos", 801 "//chromeos",
934 "//ui/events:dom4_keycode_converter", 802 "//ui/events:dom4_keycode_converter",
935 ] 803 ]
936 } 804 }
937 } 805 }
938 # TODO(GYP) Mac (ui_base_tests_bundle) 806 # TODO(GYP) Mac (ui_base_tests_bundle)
OLDNEW
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/base/ime/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698