OLD | NEW |
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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 ], | 529 ], |
530 }, | 530 }, |
531 { | 531 { |
532 # GN version: //third_party/WebKit/Source/core:rendering | 532 # GN version: //third_party/WebKit/Source/core:rendering |
533 'target_name': 'webcore_rendering', | 533 'target_name': 'webcore_rendering', |
534 'type': 'static_library', | 534 'type': 'static_library', |
535 'dependencies': [ | 535 'dependencies': [ |
536 'webcore_prerequisites', | 536 'webcore_prerequisites', |
537 ], | 537 ], |
538 'sources': [ | 538 'sources': [ |
539 '<@(webcore_files)', | 539 '<@(webcore_rendering_files)', |
540 ], | |
541 'sources/': [ | |
542 ['exclude', '.*'], | |
543 ['include', 'rendering/'], | |
544 ['include', 'layout/'], | |
545 | |
546 ['exclude', '(?<!Chromium)(CF|CG|Mac|Win)\\.(cpp|mm?)$'], | |
547 # Previous rule excludes things like ChromiumFooWin, include those. | |
548 ['include', 'rendering/.*Chromium.*\\.(cpp|mm?)$'], | |
549 ['include', 'layout/.*Chromium.*\\.(cpp|mm?)$'], | |
550 ], | 540 ], |
551 'conditions': [ | 541 'conditions': [ |
552 # Shard this taret into parts to work around linker limitations. | 542 # Shard this taret into parts to work around linker limitations. |
553 # on link time code generation builds. | 543 # on link time code generation builds. |
554 ['OS=="win" and buildtype=="Official"', { | 544 ['OS=="win" and buildtype=="Official"', { |
555 'msvs_shard': 5, | 545 'msvs_shard': 5, |
556 }], | 546 }], |
557 ['use_default_render_theme==0', { | 547 ['use_default_render_theme==0 and OS != "android"', { |
558 'sources/': [ | 548 'sources!': [ |
559 ['exclude', 'layout/LayoutThemeChromiumDefault.*'], | 549 'layout/LayoutThemeChromiumDefault.cpp', |
| 550 'layout/LayoutThemeChromiumDefault.h', |
560 ], | 551 ], |
561 }], | 552 }], |
562 ['OS=="win"', { | 553 ['OS!="win"', { |
563 'sources/': [ | 554 'sources!': [ |
564 ['exclude', 'Posix\\.cpp$'], | 555 'layout/LayoutThemeChromiumFontProviderWin.cpp', |
565 ], | 556 'layout/LayoutThemeChromiumWin.cpp', |
566 },{ # OS!="win" | 557 'layout/LayoutThemeChromiumWin.h', |
567 'sources/': [ | |
568 ['exclude', 'Win\\.cpp$'], | |
569 ], | 558 ], |
570 }], | 559 }], |
571 ['OS=="win" and chromium_win_pch==1', { | 560 ['OS=="win" and chromium_win_pch==1', { |
572 'sources/': [ | 561 'sources/': [ |
573 ['include', '<(DEPTH)/third_party/WebKit/Source/build/win/Precompile
.cpp'], | 562 ['include', '<(DEPTH)/third_party/WebKit/Source/build/win/Precompile
.cpp'], |
574 ], | 563 ], |
575 }], | 564 }], |
576 ['OS=="mac"', { | 565 ['OS=="mac"', { |
577 'sources/': [ | 566 'sources!': [ |
578 # LayoutThemeChromiumSkia is not used on mac since LayoutThemeChromi
umMac | 567 # LayoutThemeChromiumSkia is not used on mac since LayoutThemeChromi
umMac |
579 # does not reference the Skia code that is used by Windows, Linux an
d Android. | 568 # does not reference the Skia code that is used by Windows, Linux an
d Android. |
580 ['exclude', 'layout/LayoutThemeChromiumSkia\\.cpp$'], | 569 'layout/LayoutThemeChromiumSkia.cpp', |
| 570 'layout/LayoutThemeChromiumSkia.h', |
| 571 |
581 # LayoutThemeChromiumFontProvider is used by LayoutThemeChromiumSkia
. | 572 # LayoutThemeChromiumFontProvider is used by LayoutThemeChromiumSkia
. |
582 ['exclude', 'layout/LayoutThemeChromiumFontProvider\\.cpp'], | 573 'layout/LayoutThemeChromiumFontProvider.cpp', |
583 ['exclude', 'layout/LayoutThemeChromiumFontProvider\\.h'], | 574 'layout/LayoutThemeChromiumFontProvider.h', |
584 ], | 575 ], |
585 },{ # OS!="mac" | 576 },{ # OS!="mac" |
586 'sources/': [['exclude', 'Mac\\.(cpp|mm?)$']] | 577 'sources!': [ |
| 578 'layout/LayoutThemeChromiumMac.h', |
| 579 'layout/LayoutThemeChromiumMac.mm', |
| 580 ], |
587 }], | 581 }], |
588 ['OS == "android" and target_arch == "ia32" and gcc_version == 46', { | 582 ['OS == "android" and target_arch == "ia32" and gcc_version == 46', { |
589 # Due to a bug in gcc 4.6 in android NDK, we get warnings about uninit
ialized variable. | 583 # Due to a bug in gcc 4.6 in android NDK, we get warnings about uninit
ialized variable. |
590 'cflags': ['-Wno-uninitialized'], | 584 'cflags': ['-Wno-uninitialized'], |
591 }], | 585 }], |
592 ['OS != "linux"', { | 586 ['OS != "linux"', { |
593 'sources/': [ | 587 'sources!': [ |
594 ['exclude', 'Linux\\.cpp$'], | 588 'layout/LayoutThemeChromiumLinux.cpp', |
| 589 'layout/LayoutThemeChromiumLinux.h', |
595 ], | 590 ], |
596 }], | 591 }], |
597 ['OS=="android"', { | 592 ['OS != "linux" and OS != "android"', { |
598 'sources/': [ | 593 'sources!': [ |
599 ['include', 'layout/LayoutThemeChromiumFontProviderLinux\\.cpp$'], | 594 'layout/LayoutThemeChromiumFontProviderLinux.cpp', |
600 ['include', 'layout/LayoutThemeChromiumDefault\\.cpp$'], | |
601 ], | 595 ], |
602 },{ # OS!="android" | 596 }], |
603 'sources/': [ | 597 ['OS!="android"', { |
604 ['exclude', 'Android\\.cpp$'], | 598 'sources!': [ |
| 599 'layout/LayoutThemeChromiumAndroid.cpp', |
| 600 'layout/LayoutThemeChromiumAndroid.h', |
605 ], | 601 ], |
606 }], | 602 }], |
607 ], | 603 ], |
608 }, | 604 }, |
609 { | 605 { |
610 # GN version: //third_party/WebKit/Source/core:remaining | 606 # GN version: //third_party/WebKit/Source/core:remaining |
611 'target_name': 'webcore_remaining', | 607 'target_name': 'webcore_remaining', |
612 'type': 'static_library', | 608 'type': 'static_library', |
613 'dependencies': [ | 609 'dependencies': [ |
614 'webcore_prerequisites', | 610 'webcore_prerequisites', |
615 ], | 611 ], |
616 'sources': [ | 612 'sources': [ |
617 '<@(webcore_files)', | 613 '<@(webcore_non_rendering_files)', |
618 ], | |
619 'sources/': [ | |
620 ['exclude', 'rendering/'], | |
621 ['exclude', 'layout/'], | |
622 | |
623 ['exclude', '(?<!Chromium)(CF|CG|Mac|Win)\\.(cpp|mm?)$'], | |
624 ], | 614 ], |
625 'conditions': [ | 615 'conditions': [ |
626 # Shard this target into parts to work around linker limitations. | 616 # Shard this target into parts to work around linker limitations. |
627 # on link time code generation builds. | 617 # on link time code generation builds. |
628 ['OS=="win" and (buildtype=="Official" or (fastbuild==0 and win_z7==1))'
, { | 618 ['OS=="win" and (buildtype=="Official" or (fastbuild==0 and win_z7==1))'
, { |
629 'msvs_shard': 19, | 619 'msvs_shard': 19, |
630 }], | 620 }], |
631 ['OS != "linux"', { | |
632 'sources/': [ | |
633 ['exclude', 'Linux\\.cpp$'], | |
634 ], | |
635 }], | |
636 ['OS=="android"', { | 621 ['OS=="android"', { |
637 'cflags': [ | 622 'cflags': [ |
638 # WebCore does not work with strict aliasing enabled. | 623 # WebCore does not work with strict aliasing enabled. |
639 # https://bugs.webkit.org/show_bug.cgi?id=25864 | 624 # https://bugs.webkit.org/show_bug.cgi?id=25864 |
640 '-fno-strict-aliasing', | 625 '-fno-strict-aliasing', |
641 ], | 626 ], |
642 }, { # OS!="android" | |
643 'sources/': [['exclude', 'Android\\.cpp$']] | |
644 }], | 627 }], |
645 ['OS=="mac"', { | 628 ['OS=="mac"', { |
646 'sources': [ | |
647 'editing/SmartReplaceCF.cpp', | |
648 ], | |
649 'link_settings': { | 629 'link_settings': { |
650 'libraries': [ | 630 'libraries': [ |
651 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', | 631 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', |
652 ], | 632 ], |
653 }, | 633 }, |
654 'sources/': [ | 634 'sources/': [ |
655 # Additional files from the WebCore Mac build that are presently | 635 # Additional files from the WebCore Mac build that are presently |
656 # used in the WebCore Chromium Mac build too. | 636 # used in the WebCore Chromium Mac build too. |
657 | 637 |
658 # The Mac build is USE(CF). | |
659 ['include', 'CF\\.cpp$'], | |
660 | |
661 # Cherry-pick some files that can't be included by broader regexps. | 638 # Cherry-pick some files that can't be included by broader regexps. |
662 # Some of these are used instead of Chromium platform files, see | 639 # Some of these are used instead of Chromium platform files, see |
663 # the specific exclusions in the "exclude" list below. | 640 # the specific exclusions in the "exclude" list below. |
664 ['include', 'platform/mac/WebCoreSystemInterface\\.h$'], | 641 ['include', 'platform/mac/WebCoreSystemInterface\\.h$'], |
665 ['include', 'platform/mac/WebCoreTextRenderer\\.mm$'], | 642 ['include', 'platform/mac/WebCoreTextRenderer\\.mm$'], |
666 ['include', 'platform/text/mac/ShapeArabic\\.c$'], | 643 ['include', 'platform/text/mac/ShapeArabic\\.c$'], |
667 ['include', 'platform/text/mac/String(Impl)?Mac\\.mm$'], | 644 ['include', 'platform/text/mac/String(Impl)?Mac\\.mm$'], |
668 # Use USE_NEW_THEME on Mac. | 645 # Use USE_NEW_THEME on Mac. |
669 ['include', 'platform/Theme\\.cpp$'], | 646 ['include', 'platform/Theme\\.cpp$'], |
670 ], | 647 ], |
671 }, { # OS!="mac" | 648 }, { # OS!="mac" |
672 'sources/': [['exclude', 'Mac\\.(cpp|mm?)$']] | 649 'sources!': [ |
| 650 'editing/SmartReplaceCF.cpp', |
| 651 ], |
673 }], | 652 }], |
674 ['OS=="win" and chromium_win_pch==1', { | 653 ['OS=="win" and chromium_win_pch==1', { |
675 'sources/': [ | 654 'sources/': [ |
676 ['include', '<(DEPTH)/third_party/WebKit/Source/build/win/Precompile
.cpp'], | 655 ['include', '<(DEPTH)/third_party/WebKit/Source/build/win/Precompile
.cpp'], |
677 ], | 656 ], |
678 }], | 657 }], |
679 ], | 658 ], |
680 # Disable c4267 warnings until we fix size_t to int truncations. | 659 # Disable c4267 warnings until we fix size_t to int truncations. |
681 'msvs_disabled_warnings': [ 4267, 4334, ], | 660 'msvs_disabled_warnings': [ 4267, 4334, ], |
682 }, | 661 }, |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 '<(bindings_core_v8_output_dir)/V8InternalDictionaryDerived.h', | 769 '<(bindings_core_v8_output_dir)/V8InternalDictionaryDerived.h', |
791 '<(bindings_core_v8_output_dir)/V8PluginPlaceholderOptions.cpp', | 770 '<(bindings_core_v8_output_dir)/V8PluginPlaceholderOptions.cpp', |
792 '<(bindings_core_v8_output_dir)/V8PluginPlaceholderOptions.h', | 771 '<(bindings_core_v8_output_dir)/V8PluginPlaceholderOptions.h', |
793 ], | 772 ], |
794 'sources/': [ | 773 'sources/': [ |
795 ['exclude', 'testing/js'], | 774 ['exclude', 'testing/js'], |
796 ], | 775 ], |
797 }, | 776 }, |
798 ], # targets | 777 ], # targets |
799 } | 778 } |
OLD | NEW |