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

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: Invalidate tapHighlightColor only 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
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/core/core.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 ], 338 ],
339 'sources': [ 339 'sources': [
340 '<@(webcore_rendering_files)', 340 '<@(webcore_rendering_files)',
341 ], 341 ],
342 'conditions': [ 342 'conditions': [
343 # Shard this taret into parts to work around linker limitations. 343 # Shard this taret into parts to work around linker limitations.
344 # on link time code generation builds. 344 # on link time code generation builds.
345 ['OS=="win" and buildtype=="Official"', { 345 ['OS=="win" and buildtype=="Official"', {
346 'msvs_shard': 5, 346 'msvs_shard': 5,
347 }], 347 }],
348 ['use_default_render_theme==0 and OS != "android"', { 348 ['OS=="win"', {
349 'sources!': [ 349 'sources!': [
350 'layout/LayoutThemeDefault.cpp', 350 'layout/LayoutThemeFontProviderDefault.cpp',
351 'layout/LayoutThemeDefault.h',
352 ], 351 ],
353 }], 352 },{ # OS!="win"
354 ['OS!="win"', {
355 'sources!': [ 353 'sources!': [
356 'layout/LayoutThemeFontProviderWin.cpp', 354 'layout/LayoutThemeFontProviderWin.cpp',
357 'layout/LayoutThemeWin.cpp', 355 'layout/LayoutThemeWin.cpp',
358 'layout/LayoutThemeWin.h', 356 'layout/LayoutThemeWin.h',
359 ], 357 ],
360 }], 358 }],
361 ['OS=="win" and chromium_win_pch==1', { 359 ['OS=="win" and chromium_win_pch==1', {
362 'sources/': [ 360 'sources/': [
363 ['include', '<(DEPTH)/third_party/WebKit/Source/build/win/Precompile .cpp'], 361 ['include', '<(DEPTH)/third_party/WebKit/Source/build/win/Precompile .cpp'],
364 ], 362 ],
365 }], 363 }],
366 ['OS=="mac"', { 364 ['OS!="mac"', {
367 'sources!': [
368 # LayoutThemeFontProvider is used by LayoutThemeDefault.
369 'layout/LayoutThemeFontProvider.cpp',
370 'layout/LayoutThemeFontProvider.h',
371 ],
372 },{ # OS!="mac"
373 'sources!': [ 365 'sources!': [
374 'layout/LayoutThemeMac.h', 366 'layout/LayoutThemeMac.h',
375 'layout/LayoutThemeMac.mm', 367 'layout/LayoutThemeMac.mm',
376 ], 368 ],
377 }], 369 }],
378 ['OS != "linux"', { 370 ['OS != "linux"', {
379 'sources!': [ 371 'sources!': [
380 'layout/LayoutThemeLinux.cpp', 372 'layout/LayoutThemeLinux.cpp',
381 'layout/LayoutThemeLinux.h', 373 'layout/LayoutThemeLinux.h',
382 ], 374 ],
383 }], 375 }],
384 ['OS != "linux" and OS != "android"', {
385 'sources!': [
386 'layout/LayoutThemeFontProviderLinux.cpp',
387 ],
388 }],
389 ['OS!="android"', { 376 ['OS!="android"', {
390 'sources!': [ 377 'sources!': [
391 'layout/LayoutThemeAndroid.cpp', 378 'layout/LayoutThemeAndroid.cpp',
392 'layout/LayoutThemeAndroid.h', 379 'layout/LayoutThemeAndroid.h',
393 ], 380 ],
394 }], 381 }],
395 ], 382 ],
396 }, 383 },
397 { 384 {
398 # GN version: //third_party/WebKit/Source/core:remaining 385 # GN version: //third_party/WebKit/Source/core:remaining
(...skipping 28 matching lines...) Expand all
427 # Additional files from the WebCore Mac build that are presently 414 # Additional files from the WebCore Mac build that are presently
428 # used in the WebCore Chromium Mac build too. 415 # used in the WebCore Chromium Mac build too.
429 416
430 # Cherry-pick some files that can't be included by broader regexps. 417 # Cherry-pick some files that can't be included by broader regexps.
431 # Some of these are used instead of Chromium platform files, see 418 # Some of these are used instead of Chromium platform files, see
432 # the specific exclusions in the "exclude" list below. 419 # the specific exclusions in the "exclude" list below.
433 ['include', 'platform/mac/WebCoreSystemInterface\\.h$'], 420 ['include', 'platform/mac/WebCoreSystemInterface\\.h$'],
434 ['include', 'platform/mac/WebCoreTextRenderer\\.mm$'], 421 ['include', 'platform/mac/WebCoreTextRenderer\\.mm$'],
435 ['include', 'platform/text/mac/ShapeArabic\\.c$'], 422 ['include', 'platform/text/mac/ShapeArabic\\.c$'],
436 ['include', 'platform/text/mac/String(Impl)?Mac\\.mm$'], 423 ['include', 'platform/text/mac/String(Impl)?Mac\\.mm$'],
437 # Use USE_NEW_THEME on Mac.
438 ['include', 'platform/Theme\\.cpp$'],
439 ], 424 ],
440 }, { # OS!="mac" 425 }, { # OS!="mac"
441 'sources!': [ 426 'sources!': [
442 'editing/commands/SmartReplaceCF.cpp', 427 'editing/commands/SmartReplaceCF.cpp',
443 ], 428 ],
444 }], 429 }],
445 ['OS=="win" and chromium_win_pch==1', { 430 ['OS=="win" and chromium_win_pch==1', {
446 'sources/': [ 431 'sources/': [
447 ['include', '<(DEPTH)/third_party/WebKit/Source/build/win/Precompile .cpp'], 432 ['include', '<(DEPTH)/third_party/WebKit/Source/build/win/Precompile .cpp'],
448 ], 433 ],
449 }], 434 }],
450 ['use_default_render_theme==0 and OS != "android"', {
451 'sources!': [
452 'paint/ThemePainterDefault.cpp',
453 'paint/ThemePainterDefault.h',
454 ],
455 }],
456 ], 435 ],
457 # Disable c4267 warnings until we fix size_t to int truncations. 436 # Disable c4267 warnings until we fix size_t to int truncations.
458 'msvs_disabled_warnings': [ 4267, 4334, ], 437 'msvs_disabled_warnings': [ 4267, 4334, ],
459 }, 438 },
460 { 439 {
461 # GN version: //third_party/WebKit/Source/core:core 440 # GN version: //third_party/WebKit/Source/core:core
462 'target_name': 'webcore', 441 'target_name': 'webcore',
463 'type': 'none', 442 'type': 'none',
464 'dependencies': [ 443 'dependencies': [
465 'webcore_dom', 444 'webcore_dom',
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 '<@(webcore_html_files)', 587 '<@(webcore_html_files)',
609 ], 588 ],
610 'include_dirs': [ 589 'include_dirs': [
611 '<@(webcore_include_dirs)', 590 '<@(webcore_include_dirs)',
612 '../..', # WebKit 591 '../..', # WebKit
613 # for testing_files 592 # for testing_files
614 'testing', 593 'testing',
615 'testing/v8', 594 'testing/v8',
616 ], 595 ],
617 'conditions': [ 596 'conditions': [
618 ['use_default_render_theme==0 and OS != "android"', {
619 'sources!': [
620 'layout/LayoutThemeDefault.cpp',
621 'layout/LayoutThemeDefault.h',
622 'paint/ThemePainterDefault.cpp',
623 'paint/ThemePainterDefault.h',
624 ],
625 }],
626 ['OS=="win"', { 597 ['OS=="win"', {
627 # In generated bindings code: 'switch contains default but no 598 # In generated bindings code: 'switch contains default but no
628 # case'. 599 # case'.
629 # Disable c4267 warnings until we fix size_t to int truncations. 600 # Disable c4267 warnings until we fix size_t to int truncations.
630 # 4701 and 4702 are disabled because of issues in Bison-generated 601 # 4701 and 4702 are disabled because of issues in Bison-generated
631 # XPathGrammar.cpp.cpp. 602 # XPathGrammar.cpp.cpp.
632 # Disable c4267 warnings until we fix size_t to int truncations. 603 # Disable c4267 warnings until we fix size_t to int truncations.
633 'msvs_disabled_warnings': [ 4065, 4267, 4305, 4334, 4701, 4702, 49 10 ], 604 'msvs_disabled_warnings': [ 4065, 4267, 4305, 4334, 4701, 4702, 49 10 ],
634 # Disable incremental link when building debug binary to avoid 605 # Disable incremental link when building debug binary to avoid
635 # "LNK1210: exceeded internal ILK size limit;". 606 # "LNK1210: exceeded internal ILK size limit;".
636 'configurations': { 607 'configurations': {
637 'Debug_Base': { 608 'Debug_Base': {
638 'msvs_settings': { 609 'msvs_settings': {
639 'VCLinkerTool': { 610 'VCLinkerTool': {
640 'LinkIncremental': '1', 611 'LinkIncremental': '1',
641 }, 612 },
642 }, 613 },
643 }, 614 },
644 }, 615 },
616 'sources!': [
617 'layout/LayoutThemeFontProviderDefault.cpp',
618 ],
645 }, { 619 }, {
646 'sources!': [ 620 'sources!': [
647 'layout/LayoutThemeFontProviderWin.cpp', 621 'layout/LayoutThemeFontProviderWin.cpp',
648 'layout/LayoutThemeWin.cpp', 622 'layout/LayoutThemeWin.cpp',
649 'layout/LayoutThemeWin.h', 623 'layout/LayoutThemeWin.h',
650 ], 624 ],
651 'libraries': [ 625 'libraries': [
652 '-lm -lstdc++', 626 '-lm -lstdc++',
653 ], 627 ],
654 }], 628 }],
655 ['OS=="win" and chromium_win_pch==1', { 629 ['OS=="win" and chromium_win_pch==1', {
656 'sources/': [ 630 'sources/': [
657 ['include', '<(DEPTH)/third_party/WebKit/Source/build/win/Precom pile.cpp'], 631 ['include', '<(DEPTH)/third_party/WebKit/Source/build/win/Precom pile.cpp'],
658 ], 632 ],
659 }], 633 }],
660 ['OS=="mac"', { 634 ['OS=="mac"', {
661 'sources!': [
662 # LayoutThemeSkia is not used on mac since LayoutThemeMac
663 # does not reference the Skia code that is used by Windows, Linu x and Android.
664 'layout/LayoutThemeSkia.cpp',
665 'layout/LayoutThemeSkia.h',
666
667 # LayoutThemeFontProvider is used by LayoutThemeSkia.
668 'layout/LayoutThemeFontProvider.cpp',
669 'layout/LayoutThemeFontProvider.h',
670 ],
671 'link_settings': { 635 'link_settings': {
672 'libraries': [ 636 'libraries': [
673 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', 637 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
674 ], 638 ],
675 }, 639 },
676 },{ # OS!="mac" 640 },{ # OS!="mac"
677 'sources!': [ 641 'sources!': [
678 'editing/commands/SmartReplaceCF.cpp', 642 'editing/commands/SmartReplaceCF.cpp',
679 'layout/LayoutThemeMac.h', 643 'layout/LayoutThemeMac.h',
680 'layout/LayoutThemeMac.mm', 644 'layout/LayoutThemeMac.mm',
681 ], 645 ],
682 }], 646 }],
683 ['OS != "linux"', { 647 ['OS != "linux"', {
684 'sources!': [ 648 'sources!': [
685 'layout/LayoutThemeLinux.cpp', 649 'layout/LayoutThemeLinux.cpp',
686 'layout/LayoutThemeLinux.h', 650 'layout/LayoutThemeLinux.h',
687 ], 651 ],
688 }], 652 }],
689 ['OS != "linux" and OS != "android"', {
690 'sources!': [
691 'layout/LayoutThemeFontProviderLinux.cpp',
692 ],
693 }],
694 ['OS=="android"', { 653 ['OS=="android"', {
695 'cflags': [ 654 'cflags': [
696 # WebCore does not work with strict aliasing enabled. 655 # WebCore does not work with strict aliasing enabled.
697 # https://bugs.webkit.org/show_bug.cgi?id=25864 656 # https://bugs.webkit.org/show_bug.cgi?id=25864
698 '-fno-strict-aliasing', 657 '-fno-strict-aliasing',
699 ], 658 ],
700 }, { 659 }, {
701 'sources!': [ 660 'sources!': [
702 'layout/LayoutThemeAndroid.cpp', 661 'layout/LayoutThemeAndroid.cpp',
703 'layout/LayoutThemeAndroid.h', 662 'layout/LayoutThemeAndroid.h',
704 ], 663 ],
705 }], 664 }],
706 ], 665 ],
707 }], 666 }],
708 ], 667 ],
709 }, 668 },
710 ], # targets 669 ], # targets
711 } 670 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698