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', |
(...skipping 13 matching lines...) Expand all Loading... |
24 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 24 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
25 '../build/temp_gyp/googleurl.gyp:googleurl', | 25 '../build/temp_gyp/googleurl.gyp:googleurl', |
26 '../net/net.gyp:net', | 26 '../net/net.gyp:net', |
27 '../skia/skia.gyp:skia', | 27 '../skia/skia.gyp:skia', |
28 '../third_party/icu/icu.gyp:icui18n', | 28 '../third_party/icu/icu.gyp:icui18n', |
29 '../third_party/icu/icu.gyp:icuuc', | 29 '../third_party/icu/icu.gyp:icuuc', |
30 '../third_party/libpng/libpng.gyp:libpng', | 30 '../third_party/libpng/libpng.gyp:libpng', |
31 '../third_party/zlib/zlib.gyp:zlib', | 31 '../third_party/zlib/zlib.gyp:zlib', |
32 'base/strings/ui_strings.gyp:ui_strings', | 32 'base/strings/ui_strings.gyp:ui_strings', |
33 'ui_resources', | 33 'ui_resources', |
34 '<(libjpeg_gyp_path):libjpeg', | |
35 ], | 34 ], |
36 'defines': [ | 35 'defines': [ |
37 'UI_IMPLEMENTATION', | 36 'UI_IMPLEMENTATION', |
38 ], | 37 ], |
39 # Export these dependencies since text_elider.h includes ICU headers. | 38 # Export these dependencies since text_elider.h includes ICU headers. |
40 'export_dependent_settings': [ | 39 'export_dependent_settings': [ |
41 '../net/net.gyp:net', | 40 '../net/net.gyp:net', |
42 '../third_party/icu/icu.gyp:icui18n', | 41 '../third_party/icu/icu.gyp:icui18n', |
43 '../third_party/icu/icu.gyp:icuuc', | 42 '../third_party/icu/icu.gyp:icuuc', |
44 ], | 43 ], |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 'gfx/platform_font_pango.cc', | 399 'gfx/platform_font_pango.cc', |
401 'gfx/platform_font_mac.h', | 400 'gfx/platform_font_mac.h', |
402 'gfx/platform_font_mac.mm', | 401 'gfx/platform_font_mac.mm', |
403 'gfx/platform_font_win.h', | 402 'gfx/platform_font_win.h', |
404 'gfx/platform_font_win.cc', | 403 'gfx/platform_font_win.cc', |
405 'gfx/point.cc', | 404 'gfx/point.cc', |
406 'gfx/point.h', | 405 'gfx/point.h', |
407 'gfx/point_base.h', | 406 'gfx/point_base.h', |
408 'gfx/point_f.cc', | 407 'gfx/point_f.cc', |
409 'gfx/point_f.h', | 408 'gfx/point_f.h', |
| 409 'gfx/point3.h', |
410 'gfx/rect.cc', | 410 'gfx/rect.cc', |
411 'gfx/rect.h', | 411 'gfx/rect.h', |
412 'gfx/rect_base.h', | 412 'gfx/rect_base.h', |
413 'gfx/rect_base_impl.h', | 413 'gfx/rect_base_impl.h', |
414 'gfx/rect_f.cc', | 414 'gfx/rect_f.cc', |
415 'gfx/rect_f.h', | 415 'gfx/rect_f.h', |
416 'gfx/render_text.cc', | 416 'gfx/render_text.cc', |
417 'gfx/render_text.h', | 417 'gfx/render_text.h', |
418 'gfx/render_text_mac.cc', | 418 'gfx/render_text_mac.cc', |
419 'gfx/render_text_mac.h', | 419 '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', | 459 'gfx/video_decode_acceleration_support_mac.mm', |
460 'ui_controls/ui_controls.h', | 460 'ui_controls/ui_controls.h', |
461 'ui_controls/ui_controls_aura.cc', | 461 'ui_controls/ui_controls_aura.cc', |
462 'ui_controls/ui_controls_internal_win.h', | 462 'ui_controls/ui_controls_internal_win.h', |
463 'ui_controls/ui_controls_internal_win.cc', | 463 'ui_controls/ui_controls_internal_win.cc', |
464 'ui_controls/ui_controls_gtk.cc', | 464 'ui_controls/ui_controls_gtk.cc', |
465 'ui_controls/ui_controls_mac.mm', | 465 'ui_controls/ui_controls_mac.mm', |
466 'ui_controls/ui_controls_win.cc', | 466 'ui_controls/ui_controls_win.cc', |
467 ], | 467 ], |
468 'conditions': [ | 468 'conditions': [ |
| 469 ['OS!="ios"', { |
| 470 'dependencies': [ |
| 471 '<(libjpeg_gyp_path):libjpeg', |
| 472 ], |
| 473 }], |
469 # TODO(asvitkine): Switch all platforms to use canvas_skia.cc. | 474 # TODO(asvitkine): Switch all platforms to use canvas_skia.cc. |
470 # http://crbug.com/105550 | 475 # http://crbug.com/105550 |
471 ['use_canvas_skia==1', { | 476 ['use_canvas_skia==1', { |
472 'sources!': [ | 477 'sources!': [ |
473 'gfx/canvas_android.cc', | 478 'gfx/canvas_android.cc', |
474 'gfx/canvas_linux.cc', | 479 'gfx/canvas_linux.cc', |
475 'gfx/canvas_mac.mm', | 480 'gfx/canvas_mac.mm', |
476 ], | 481 ], |
477 }, { # use_canvas_skia!=1 | 482 }, { # use_canvas_skia!=1 |
478 'sources!': [ | 483 'sources!': [ |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 # font_gtk.cc uses fontconfig. | 546 # font_gtk.cc uses fontconfig. |
542 '../build/linux/system.gyp:fontconfig', | 547 '../build/linux/system.gyp:fontconfig', |
543 '../build/linux/system.gyp:glib', | 548 '../build/linux/system.gyp:glib', |
544 '../build/linux/system.gyp:pangocairo', | 549 '../build/linux/system.gyp:pangocairo', |
545 '../build/linux/system.gyp:x11', | 550 '../build/linux/system.gyp:x11', |
546 '../build/linux/system.gyp:xext', | 551 '../build/linux/system.gyp:xext', |
547 '../build/linux/system.gyp:xfixes', | 552 '../build/linux/system.gyp:xfixes', |
548 ], | 553 ], |
549 'link_settings': { | 554 'link_settings': { |
550 'libraries': [ | 555 'libraries': [ |
551 '-lXcursor', # For XCursor* function calls in x11_util.cc. | 556 '-lXcursor', # For XCursor* function calls in x11_util.cc. |
552 '-lXrender', # For XRender* function calls in x11_util.cc. | 557 '-lXrender', # For XRender* function calls in x11_util.cc. |
553 ], | 558 ], |
554 }, | 559 }, |
555 'conditions': [ | 560 'conditions': [ |
556 ['toolkit_views==0', { | 561 ['toolkit_views==0', { |
557 # Note: because of gyp predence rules this has to be defined as | 562 # Note: because of gyp predence rules this has to be defined as |
558 # 'sources/' rather than 'sources!'. | 563 # 'sources/' rather than 'sources!'. |
559 'sources/': [ | 564 'sources/': [ |
560 ['exclude', '^base/dragdrop/drag_drop_types_gtk.cc'], | 565 ['exclude', '^base/dragdrop/drag_drop_types_gtk.cc'], |
561 ['exclude', '^base/dragdrop/drag_utils_gtk.cc'], | 566 ['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', | 675 'gfx/platform_font_pango.cc', |
671 ], | 676 ], |
672 'link_settings': { | 677 'link_settings': { |
673 'libraries': [ | 678 'libraries': [ |
674 '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework', | 679 '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework', |
675 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework', | 680 '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework', |
676 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework', | 681 '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework', |
677 ], | 682 ], |
678 }, | 683 }, |
679 }], | 684 }], |
| 685 ['OS=="ios"', { |
| 686 'sources/': [ |
| 687 # iOS uses so little of ui that it is is easier to simply exclude |
| 688 # everything and then just select the parts needed. |
| 689 # TODO(ios): Add new files as they are made iOS ready. |
| 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', |
| 706 ], |
| 707 }, |
| 708 }], |
680 ['use_x11==1', { | 709 ['use_x11==1', { |
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 }, |
(...skipping 32 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 ['inside_chromium_build == 1 and OS != "ios"', { |
| 762 # TODO(ios): The ui tests do not compile yet on iOS. |
733 'includes': [ | 763 'includes': [ |
734 'ui_unittests.gypi', | 764 'ui_unittests.gypi', |
735 ], | 765 ], |
736 'targets': [ | 766 'targets': [ |
737 { | 767 { |
738 # TODO(rsesek): Remove this target once ui_unittests is run on the | 768 # TODO(rsesek): Remove this target once ui_unittests is run on the |
739 # waterfall instead of gfx_unittests. | 769 # waterfall instead of gfx_unittests. |
740 'target_name': 'gfx_unittests', | 770 'target_name': 'gfx_unittests', |
741 'type': 'none', | 771 'type': 'none', |
742 'dependencies': [ | 772 'dependencies': [ |
(...skipping 15 matching lines...) Expand all Loading... |
758 'shutil.copyfile(\'<(ui_copy_target)\', \'<(ui_copy_dest)\'); '
\ | 788 'shutil.copyfile(\'<(ui_copy_target)\', \'<(ui_copy_dest)\'); '
\ |
759 'os.chmod(\'<(ui_copy_dest)\', 0700)' | 789 'os.chmod(\'<(ui_copy_dest)\', 0700)' |
760 ] | 790 ] |
761 } | 791 } |
762 ], | 792 ], |
763 }, | 793 }, |
764 ], | 794 ], |
765 }], | 795 }], |
766 ], | 796 ], |
767 } | 797 } |
OLD | NEW |