OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'includes': [ | 9 'includes': [ |
10 'ui_resources.gypi', | 10 'ui_resources.gypi', |
11 ], | 11 ], |
12 'targets': [ | 12 'targets': [ |
13 { | 13 { |
14 'target_name': 'ui', | 14 'target_name': 'ui', |
15 'type': '<(component)', | 15 'type': '<(component)', |
16 'variables': { 'enable_wexit_time_destructors': 1, }, | 16 'variables': { 'enable_wexit_time_destructors': 1, }, |
17 'includes': [ | 17 'includes': [ |
18 'base/ime/ime.gypi', | 18 'base/ime/ime.gypi', |
19 ], | 19 ], |
20 'dependencies': [ | 20 'dependencies': [ |
21 '../base/base.gyp:base', | 21 '../base/base.gyp:base', |
22 '../base/base.gyp:base_i18n', | |
23 '../base/base.gyp:base_static', | |
stuartmorgan
2012/08/01 13:26:18
Why do we have to remove these?
| |
24 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', | 22 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', |
25 '../build/temp_gyp/googleurl.gyp:googleurl', | 23 '../build/temp_gyp/googleurl.gyp:googleurl', |
26 '../net/net.gyp:net', | 24 '../net/net.gyp:net', |
27 '../skia/skia.gyp:skia', | 25 '../skia/skia.gyp:skia', |
28 '../third_party/icu/icu.gyp:icui18n', | 26 '../third_party/icu/icu.gyp:icui18n', |
29 '../third_party/icu/icu.gyp:icuuc', | 27 '../third_party/icu/icu.gyp:icuuc', |
30 '../third_party/libpng/libpng.gyp:libpng', | |
31 '../third_party/zlib/zlib.gyp:zlib', | |
stuartmorgan
2012/08/01 13:26:18
And this?
| |
32 'base/strings/ui_strings.gyp:ui_strings', | |
33 'ui_resources', | |
stuartmorgan
2012/08/01 13:26:18
Can't we use dependencies! for some of these?
noyau (Ping after 24h)
2012/08/01 13:53:45
I restored them all except for libjpeg, which cann
| |
34 '<(libjpeg_gyp_path):libjpeg', | |
35 ], | 28 ], |
36 'defines': [ | 29 'defines': [ |
37 'UI_IMPLEMENTATION', | 30 'UI_IMPLEMENTATION', |
38 ], | 31 ], |
39 # Export these dependencies since text_elider.h includes ICU headers. | 32 # Export these dependencies since text_elider.h includes ICU headers. |
40 'export_dependent_settings': [ | 33 'export_dependent_settings': [ |
41 '../net/net.gyp:net', | 34 '../net/net.gyp:net', |
42 '../third_party/icu/icu.gyp:icui18n', | 35 '../third_party/icu/icu.gyp:icui18n', |
43 '../third_party/icu/icu.gyp:icuuc', | 36 '../third_party/icu/icu.gyp:icuuc', |
44 ], | 37 ], |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
400 'gfx/platform_font_pango.cc', | 393 'gfx/platform_font_pango.cc', |
401 'gfx/platform_font_mac.h', | 394 'gfx/platform_font_mac.h', |
402 'gfx/platform_font_mac.mm', | 395 'gfx/platform_font_mac.mm', |
403 'gfx/platform_font_win.h', | 396 'gfx/platform_font_win.h', |
404 'gfx/platform_font_win.cc', | 397 'gfx/platform_font_win.cc', |
405 'gfx/point.cc', | 398 'gfx/point.cc', |
406 'gfx/point.h', | 399 'gfx/point.h', |
407 'gfx/point_base.h', | 400 'gfx/point_base.h', |
408 'gfx/point_f.cc', | 401 'gfx/point_f.cc', |
409 'gfx/point_f.h', | 402 'gfx/point_f.h', |
403 'gfx/point3.h', | |
410 'gfx/rect.cc', | 404 'gfx/rect.cc', |
411 'gfx/rect.h', | 405 'gfx/rect.h', |
412 'gfx/rect_base.h', | 406 'gfx/rect_base.h', |
413 'gfx/rect_base_impl.h', | 407 'gfx/rect_base_impl.h', |
414 'gfx/rect_f.cc', | 408 'gfx/rect_f.cc', |
415 'gfx/rect_f.h', | 409 'gfx/rect_f.h', |
416 'gfx/render_text.cc', | 410 'gfx/render_text.cc', |
417 'gfx/render_text.h', | 411 'gfx/render_text.h', |
418 'gfx/render_text_mac.cc', | 412 'gfx/render_text_mac.cc', |
419 'gfx/render_text_mac.h', | 413 'gfx/render_text_mac.h', |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
459 'gfx/video_decode_acceleration_support_mac.mm', | 453 'gfx/video_decode_acceleration_support_mac.mm', |
460 'ui_controls/ui_controls.h', | 454 'ui_controls/ui_controls.h', |
461 'ui_controls/ui_controls_aura.cc', | 455 'ui_controls/ui_controls_aura.cc', |
462 'ui_controls/ui_controls_internal_win.h', | 456 'ui_controls/ui_controls_internal_win.h', |
463 'ui_controls/ui_controls_internal_win.cc', | 457 'ui_controls/ui_controls_internal_win.cc', |
464 'ui_controls/ui_controls_gtk.cc', | 458 'ui_controls/ui_controls_gtk.cc', |
465 'ui_controls/ui_controls_mac.mm', | 459 'ui_controls/ui_controls_mac.mm', |
466 'ui_controls/ui_controls_win.cc', | 460 'ui_controls/ui_controls_win.cc', |
467 ], | 461 ], |
468 'conditions': [ | 462 'conditions': [ |
463 ['OS != "ios"', { | |
464 'dependencies': [ | |
stuartmorgan
2012/08/01 13:26:18
Indentation is wrong here.
noyau (Ping after 24h)
2012/08/01 13:53:45
Done.
| |
465 '../base/base.gyp:base_i18n', | |
466 '../base/base.gyp:base_static', | |
467 '../third_party/libpng/libpng.gyp:libpng', | |
468 '../third_party/zlib/zlib.gyp:zlib', | |
469 'base/strings/ui_strings.gyp:ui_strings', | |
470 'ui_resources', | |
471 '<(libjpeg_gyp_path):libjpeg', | |
472 ], | |
473 }, | |
474 ], | |
stuartmorgan
2012/08/01 13:26:18
And this should be on the previous line, with the
noyau (Ping after 24h)
2012/08/01 13:53:45
Done.
| |
469 # TODO(asvitkine): Switch all platforms to use canvas_skia.cc. | 475 # TODO(asvitkine): Switch all platforms to use canvas_skia.cc. |
470 # http://crbug.com/105550 | 476 # http://crbug.com/105550 |
471 ['use_canvas_skia==1', { | 477 ['use_canvas_skia==1', { |
472 'sources!': [ | 478 'sources!': [ |
473 'gfx/canvas_android.cc', | 479 'gfx/canvas_android.cc', |
474 'gfx/canvas_linux.cc', | 480 'gfx/canvas_linux.cc', |
475 'gfx/canvas_mac.mm', | 481 'gfx/canvas_mac.mm', |
476 ], | 482 ], |
477 }, { # use_canvas_skia!=1 | 483 }, { # use_canvas_skia!=1 |
478 'sources!': [ | 484 'sources!': [ |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
541 # font_gtk.cc uses fontconfig. | 547 # font_gtk.cc uses fontconfig. |
542 '../build/linux/system.gyp:fontconfig', | 548 '../build/linux/system.gyp:fontconfig', |
543 '../build/linux/system.gyp:glib', | 549 '../build/linux/system.gyp:glib', |
544 '../build/linux/system.gyp:pangocairo', | 550 '../build/linux/system.gyp:pangocairo', |
545 '../build/linux/system.gyp:x11', | 551 '../build/linux/system.gyp:x11', |
546 '../build/linux/system.gyp:xext', | 552 '../build/linux/system.gyp:xext', |
547 '../build/linux/system.gyp:xfixes', | 553 '../build/linux/system.gyp:xfixes', |
548 ], | 554 ], |
549 'link_settings': { | 555 'link_settings': { |
550 'libraries': [ | 556 'libraries': [ |
551 '-lXcursor', # For XCursor* function calls in x11_util.cc. | 557 '-lXcursor', # For XCursor* function calls in x11_util.cc. |
552 '-lXrender', # For XRender* function calls in x11_util.cc. | 558 '-lXrender', # For XRender* function calls in x11_util.cc. |
553 ], | 559 ], |
554 }, | 560 }, |
555 'conditions': [ | 561 'conditions': [ |
556 ['toolkit_views==0', { | 562 ['toolkit_views==0', { |
557 # Note: because of gyp predence rules this has to be defined as | 563 # Note: because of gyp predence rules this has to be defined as |
558 # 'sources/' rather than 'sources!'. | 564 # 'sources/' rather than 'sources!'. |
559 'sources/': [ | 565 'sources/': [ |
560 ['exclude', '^base/dragdrop/drag_drop_types_gtk.cc'], | 566 ['exclude', '^base/dragdrop/drag_drop_types_gtk.cc'], |
561 ['exclude', '^base/dragdrop/drag_utils_gtk.cc'], | 567 ['exclude', '^base/dragdrop/drag_utils_gtk.cc'], |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
670 'gfx/platform_font_pango.cc', | 676 'gfx/platform_font_pango.cc', |
671 ], | 677 ], |
672 'link_settings': { | 678 'link_settings': { |
673 'libraries': [ | 679 'libraries': [ |
674 '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework', | 680 '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework', |
675 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework', | 681 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework', |
676 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework', | 682 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework', |
677 ], | 683 ], |
678 }, | 684 }, |
679 }], | 685 }], |
680 ['use_x11==1', { | 686 ['OS == "ios"', { |
stuartmorgan
2012/08/01 13:26:18
Everything else in this block has the no-spaces st
noyau (Ping after 24h)
2012/08/01 13:53:45
Done.
| |
687 'sources/': [ | |
688 # iOS uses so little of ui that it is is easier to simply exclude | |
689 # everything and then just select the parts needed. | |
stuartmorgan
2012/08/01 13:26:18
Will this always be true? If not, change to a TODO
noyau (Ping after 24h)
2012/08/01 13:53:45
Done.
| |
690 ['exclude', '^base/'], | |
691 ['exclude', '^ui_controls/'], | |
692 ['exclude', '^gfx/'], | |
693 ['include', '^gfx/point\\.'], | |
694 ['include', '^gfx/point_base\\.h'], | |
695 ['include', '^gfx/point3\\.h'], | |
696 ['include', '^gfx/rect\\.'], | |
697 ['include', '^gfx/rect_base\\.h'], | |
698 ['include', '^gfx/rect_base_impl\\.h'], | |
699 ['include', '^gfx/size\\.'], | |
700 ['include', '^gfx/size_base\\.h'], | |
701 ['include', '^gfx/size_base_impl\\.h'], | |
702 ], | |
703 'link_settings': { | |
704 'libraries': [ | |
705 '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework', | |
stuartmorgan
2012/08/01 13:26:18
Indent more.
noyau (Ping after 24h)
2012/08/01 13:53:45
Done.
| |
706 ], | |
707 }, | |
708 }], | |
709 ['use_x11 == 1', { | |
stuartmorgan
2012/08/01 13:26:18
Don't change the spacing here.
noyau (Ping after 24h)
2012/08/01 13:53:45
Done.
| |
681 'all_dependent_settings': { | 710 'all_dependent_settings': { |
682 'ldflags': [ | 711 'ldflags': [ |
683 '-L<(PRODUCT_DIR)', | 712 '-L<(PRODUCT_DIR)', |
684 ], | 713 ], |
685 'link_settings': { | 714 'link_settings': { |
686 'libraries': [ | 715 'libraries': [ |
687 '-lX11 -lXcursor', | 716 '-lX11 -lXcursor', |
688 ], | 717 ], |
689 }, | 718 }, |
690 }, | 719 }, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
722 }], | 751 }], |
723 ['inside_chromium_build==0', { | 752 ['inside_chromium_build==0', { |
724 'dependencies': [ | 753 'dependencies': [ |
725 '<(DEPTH)/webkit/support/setup_third_party.gyp:third_party_headers', | 754 '<(DEPTH)/webkit/support/setup_third_party.gyp:third_party_headers', |
726 ], | 755 ], |
727 }], | 756 }], |
728 ], | 757 ], |
729 }, | 758 }, |
730 ], | 759 ], |
731 'conditions': [ | 760 'conditions': [ |
732 ['inside_chromium_build==1', { | 761 [ 'OS == "ios"', { |
762 'targets': [ | |
763 { | |
764 # TODO(ios): Adding a fake target so the bots have something to invoke | |
765 # while the tests are disabled. See b/4935009. | |
766 'target_name': 'gfx_unittests', | |
767 'type': 'none', | |
768 } | |
769 ], | |
770 }], | |
stuartmorgan
2012/08/01 13:26:18
This block shouldn't be necessary upstream; nothin
noyau (Ping after 24h)
2012/08/01 13:53:45
Done.
| |
771 ['inside_chromium_build == 1 and OS != "ios"', { | |
772 # TODO(ios): The ui tests do not compile yet on iOS. See b/4935009. | |
stuartmorgan
2012/08/01 13:26:18
That bug has nothing to do with compiling AFAICT.
noyau (Ping after 24h)
2012/08/01 13:53:45
Done.
| |
733 'includes': [ | 773 'includes': [ |
734 'ui_unittests.gypi', | 774 'ui_unittests.gypi', |
735 ], | 775 ], |
736 'targets': [ | 776 'targets': [ |
737 { | 777 { |
738 # TODO(rsesek): Remove this target once ui_unittests is run on the | 778 # TODO(rsesek): Remove this target once ui_unittests is run on the |
739 # waterfall instead of gfx_unittests. | 779 # waterfall instead of gfx_unittests. |
740 'target_name': 'gfx_unittests', | 780 'target_name': 'gfx_unittests', |
741 'type': 'none', | 781 'type': 'none', |
742 'dependencies': [ | 782 'dependencies': [ |
(...skipping 15 matching lines...) Expand all Loading... | |
758 'shutil.copyfile(\'<(ui_copy_target)\', \'<(ui_copy_dest)\'); ' \ | 798 'shutil.copyfile(\'<(ui_copy_target)\', \'<(ui_copy_dest)\'); ' \ |
759 'os.chmod(\'<(ui_copy_dest)\', 0700)' | 799 'os.chmod(\'<(ui_copy_dest)\', 0700)' |
760 ] | 800 ] |
761 } | 801 } |
762 ], | 802 ], |
763 }, | 803 }, |
764 ], | 804 ], |
765 }], | 805 }], |
766 ], | 806 ], |
767 } | 807 } |
OLD | NEW |