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

Side by Side Diff: third_party/WebKit/Source/core/core.gyp

Issue 1690493002: Switch to LayoutThemeMobile when emulating mobile device in DevTools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more mac compile Created 4 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
OLDNEW
1 # 1 #
2 # Copyright (C) 2009 Google Inc. All rights reserved. 2 # Copyright (C) 2009 Google Inc. All rights reserved.
3 # 3 #
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 ], 423 ],
424 'sources': [ 424 'sources': [
425 '<@(webcore_rendering_files)', 425 '<@(webcore_rendering_files)',
426 ], 426 ],
427 'conditions': [ 427 'conditions': [
428 # Shard this taret into parts to work around linker limitations. 428 # Shard this taret into parts to work around linker limitations.
429 # on link time code generation builds. 429 # on link time code generation builds.
430 ['OS=="win" and buildtype=="Official"', { 430 ['OS=="win" and buildtype=="Official"', {
431 'msvs_shard': 5, 431 'msvs_shard': 5,
432 }], 432 }],
433 ['use_default_render_theme==0 and OS != "android"', { 433 ['OS=="win"', {
434 'sources!': [ 434 'sources!': [
435 'layout/LayoutThemeDefault.cpp', 435 'layout/LayoutThemeFontProviderDefault.cpp',
436 'layout/LayoutThemeDefault.h',
437 ], 436 ],
438 }], 437 },{ # OS!="win"
439 ['OS!="win"', {
440 'sources!': [ 438 'sources!': [
441 'layout/LayoutThemeFontProviderWin.cpp', 439 'layout/LayoutThemeFontProviderWin.cpp',
442 'layout/LayoutThemeWin.cpp', 440 'layout/LayoutThemeWin.cpp',
443 'layout/LayoutThemeWin.h', 441 'layout/LayoutThemeWin.h',
444 ], 442 ],
445 }], 443 }],
446 ['OS=="win" and chromium_win_pch==1', { 444 ['OS=="win" and chromium_win_pch==1', {
447 'sources/': [ 445 'sources/': [
448 ['include', '<(DEPTH)/third_party/WebKit/Source/build/win/Precompile .cpp'], 446 ['include', '<(DEPTH)/third_party/WebKit/Source/build/win/Precompile .cpp'],
449 ], 447 ],
450 }], 448 }],
451 ['OS=="mac"', { 449 ['OS!="mac"', {
452 'sources!': [
453 # LayoutThemeFontProvider is used by LayoutThemeDefault.
454 'layout/LayoutThemeFontProvider.cpp',
455 'layout/LayoutThemeFontProvider.h',
456 ],
457 },{ # OS!="mac"
458 'sources!': [ 450 'sources!': [
459 'layout/LayoutThemeMac.h', 451 'layout/LayoutThemeMac.h',
460 'layout/LayoutThemeMac.mm', 452 'layout/LayoutThemeMac.mm',
461 ], 453 ],
462 }], 454 }],
463 ['OS != "linux"', { 455 ['OS != "linux"', {
464 'sources!': [ 456 'sources!': [
465 'layout/LayoutThemeLinux.cpp', 457 'layout/LayoutThemeLinux.cpp',
466 'layout/LayoutThemeLinux.h', 458 'layout/LayoutThemeLinux.h',
467 ], 459 ],
468 }], 460 }],
469 ['OS != "linux" and OS != "android"', {
470 'sources!': [
471 'layout/LayoutThemeFontProviderLinux.cpp',
472 ],
473 }],
474 ['OS!="android"', { 461 ['OS!="android"', {
475 'sources!': [ 462 'sources!': [
476 'layout/LayoutThemeAndroid.cpp', 463 'layout/LayoutThemeAndroid.cpp',
477 'layout/LayoutThemeAndroid.h', 464 'layout/LayoutThemeAndroid.h',
478 ], 465 ],
479 }], 466 }],
480 ], 467 ],
481 }, 468 },
482 { 469 {
483 # GN version: //third_party/WebKit/Source/core:remaining 470 # GN version: //third_party/WebKit/Source/core:remaining
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 }, { # OS!="mac" 512 }, { # OS!="mac"
526 'sources!': [ 513 'sources!': [
527 'editing/commands/SmartReplaceCF.cpp', 514 'editing/commands/SmartReplaceCF.cpp',
528 ], 515 ],
529 }], 516 }],
530 ['OS=="win" and chromium_win_pch==1', { 517 ['OS=="win" and chromium_win_pch==1', {
531 'sources/': [ 518 'sources/': [
532 ['include', '<(DEPTH)/third_party/WebKit/Source/build/win/Precompile .cpp'], 519 ['include', '<(DEPTH)/third_party/WebKit/Source/build/win/Precompile .cpp'],
533 ], 520 ],
534 }], 521 }],
535 ['use_default_render_theme==0 and OS != "android"', {
536 'sources!': [
537 'paint/ThemePainterDefault.cpp',
538 'paint/ThemePainterDefault.h',
539 ],
540 }],
541 ], 522 ],
542 # Disable c4267 warnings until we fix size_t to int truncations. 523 # Disable c4267 warnings until we fix size_t to int truncations.
543 'msvs_disabled_warnings': [ 4267, 4334, ], 524 'msvs_disabled_warnings': [ 4267, 4334, ],
544 }, 525 },
545 { 526 {
546 # GN version: //third_party/WebKit/Source/core:core 527 # GN version: //third_party/WebKit/Source/core:core
547 'target_name': 'webcore', 528 'target_name': 'webcore',
548 'type': 'none', 529 'type': 'none',
549 'dependencies': [ 530 'dependencies': [
550 'webcore_dom', 531 'webcore_dom',
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 '<@(webcore_html_files)', 697 '<@(webcore_html_files)',
717 ], 698 ],
718 'include_dirs': [ 699 'include_dirs': [
719 '<@(webcore_include_dirs)', 700 '<@(webcore_include_dirs)',
720 '../..', # WebKit 701 '../..', # WebKit
721 # for testing_files 702 # for testing_files
722 'testing', 703 'testing',
723 'testing/v8', 704 'testing/v8',
724 ], 705 ],
725 'conditions': [ 706 'conditions': [
726 ['use_default_render_theme==0 and OS != "android"', {
727 'sources!': [
728 'layout/LayoutThemeDefault.cpp',
729 'layout/LayoutThemeDefault.h',
730 'paint/ThemePainterDefault.cpp',
731 'paint/ThemePainterDefault.h',
732 ],
733 }],
734 ['OS=="win"', { 707 ['OS=="win"', {
735 # In generated bindings code: 'switch contains default but no 708 # In generated bindings code: 'switch contains default but no
736 # case'. 709 # case'.
737 # Disable c4267 warnings until we fix size_t to int truncations. 710 # Disable c4267 warnings until we fix size_t to int truncations.
738 # 4701 and 4702 are disabled because of issues in Bison-generated 711 # 4701 and 4702 are disabled because of issues in Bison-generated
739 # XPathGrammar.cpp.cpp. 712 # XPathGrammar.cpp.cpp.
740 # Disable c4267 warnings until we fix size_t to int truncations. 713 # Disable c4267 warnings until we fix size_t to int truncations.
741 'msvs_disabled_warnings': [ 4065, 4267, 4305, 4334, 4701, 4702, 49 10 ], 714 'msvs_disabled_warnings': [ 4065, 4267, 4305, 4334, 4701, 4702, 49 10 ],
742 # Disable incremental link when building debug binary to avoid 715 # Disable incremental link when building debug binary to avoid
743 # "LNK1210: exceeded internal ILK size limit;". 716 # "LNK1210: exceeded internal ILK size limit;".
744 'configurations': { 717 'configurations': {
745 'Debug_Base': { 718 'Debug_Base': {
746 'msvs_settings': { 719 'msvs_settings': {
747 'VCLinkerTool': { 720 'VCLinkerTool': {
748 'LinkIncremental': '1', 721 'LinkIncremental': '1',
749 }, 722 },
750 }, 723 },
751 }, 724 },
752 }, 725 },
726 'sources!': [
727 'layout/LayoutThemeFontProviderDefault.cpp',
728 ],
753 }, { 729 }, {
754 'sources!': [ 730 'sources!': [
755 'layout/LayoutThemeFontProviderWin.cpp', 731 'layout/LayoutThemeFontProviderWin.cpp',
756 'layout/LayoutThemeWin.cpp', 732 'layout/LayoutThemeWin.cpp',
757 'layout/LayoutThemeWin.h', 733 'layout/LayoutThemeWin.h',
758 ], 734 ],
759 'libraries': [ 735 'libraries': [
760 '-lm -lstdc++', 736 '-lm -lstdc++',
761 ], 737 ],
762 }], 738 }],
763 ['OS=="win" and chromium_win_pch==1', { 739 ['OS=="win" and chromium_win_pch==1', {
764 'sources/': [ 740 'sources/': [
765 ['include', '<(DEPTH)/third_party/WebKit/Source/build/win/Precom pile.cpp'], 741 ['include', '<(DEPTH)/third_party/WebKit/Source/build/win/Precom pile.cpp'],
766 ], 742 ],
767 }], 743 }],
768 ['OS=="mac"', { 744 ['OS=="mac"', {
769 'sources!': [
770 # LayoutThemeSkia is not used on mac since LayoutThemeMac
771 # does not reference the Skia code that is used by Windows, Linu x and Android.
772 'layout/LayoutThemeSkia.cpp',
773 'layout/LayoutThemeSkia.h',
774
775 # LayoutThemeFontProvider is used by LayoutThemeSkia.
776 'layout/LayoutThemeFontProvider.cpp',
777 'layout/LayoutThemeFontProvider.h',
778 ],
779 'link_settings': { 745 'link_settings': {
780 'libraries': [ 746 'libraries': [
781 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', 747 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
782 ], 748 ],
783 }, 749 },
784 },{ # OS!="mac" 750 },{ # OS!="mac"
785 'sources!': [ 751 'sources!': [
786 'editing/commands/SmartReplaceCF.cpp', 752 'editing/commands/SmartReplaceCF.cpp',
787 'layout/LayoutThemeMac.h', 753 'layout/LayoutThemeMac.h',
788 'layout/LayoutThemeMac.mm', 754 'layout/LayoutThemeMac.mm',
789 ], 755 ],
790 }], 756 }],
791 ['OS != "linux"', { 757 ['OS != "linux"', {
792 'sources!': [ 758 'sources!': [
793 'layout/LayoutThemeLinux.cpp', 759 'layout/LayoutThemeLinux.cpp',
794 'layout/LayoutThemeLinux.h', 760 'layout/LayoutThemeLinux.h',
795 ], 761 ],
796 }], 762 }],
797 ['OS != "linux" and OS != "android"', {
798 'sources!': [
799 'layout/LayoutThemeFontProviderLinux.cpp',
800 ],
801 }],
802 ['OS=="android"', { 763 ['OS=="android"', {
803 'cflags': [ 764 'cflags': [
804 # WebCore does not work with strict aliasing enabled. 765 # WebCore does not work with strict aliasing enabled.
805 # https://bugs.webkit.org/show_bug.cgi?id=25864 766 # https://bugs.webkit.org/show_bug.cgi?id=25864
806 '-fno-strict-aliasing', 767 '-fno-strict-aliasing',
807 ], 768 ],
808 }, { 769 }, {
809 'sources!': [ 770 'sources!': [
810 'layout/LayoutThemeAndroid.cpp', 771 'layout/LayoutThemeAndroid.cpp',
811 'layout/LayoutThemeAndroid.h', 772 'layout/LayoutThemeAndroid.h',
(...skipping 17 matching lines...) Expand all
829 'libraries': [ 790 'libraries': [
830 '<!@(pkg-config --libs ipp|sed s/-L//)/libipps_l.a', 791 '<!@(pkg-config --libs ipp|sed s/-L//)/libipps_l.a',
831 '<!@(pkg-config --libs ipp|sed s/-L//)/libippcore_l.a', 792 '<!@(pkg-config --libs ipp|sed s/-L//)/libippcore_l.a',
832 ] 793 ]
833 }, 794 },
834 }], 795 }],
835 ], 796 ],
836 }, 797 },
837 ], # targets 798 ], # targets
838 } 799 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698