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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 'optimize': 'size', | 66 'optimize': 'size', |
67 }, | 67 }, |
68 | 68 |
69 'msvs_settings': { | 69 'msvs_settings': { |
70 'VCCLCompilerTool': { | 70 'VCCLCompilerTool': { |
71 'AdditionalOptions': ['/bigobj'], | 71 'AdditionalOptions': ['/bigobj'], |
72 }, | 72 }, |
73 }, | 73 }, |
74 }, | 74 }, |
75 | 75 |
76 'conditions': [ | |
77 ['OS == "mac"', { | |
78 'targets': [ | |
79 { | |
80 # On the Mac, libWebKitSystemInterface*.a is used to help WebCore | |
81 # interface with the system. This library is supplied as a static | |
82 # library in binary format. At present, it contains many global | |
83 # symbols not marked private_extern. It should be considered an | |
84 # implementation detail of WebCore, and does not need these symbols | |
85 # to be exposed so widely. | |
86 # | |
87 # This target contains an action that cracks open the existing | |
88 # static library and rebuilds it with these global symbols | |
89 # transformed to private_extern. | |
90 'target_name': 'webkit_system_interface', | |
91 'type': 'none', | |
92 'variables': { | |
93 'adjusted_library_path': | |
94 '<(PRODUCT_DIR)/libWebKitSystemInterfaceLeopardPrivateExtern.a', | |
95 }, | |
96 'actions': [ | |
97 { | |
98 'action_name': 'Adjust Visibility', | |
99 'inputs': [ | |
100 'mac/adjust_visibility.sh', | |
101 '<(DEPTH)/third_party/apple_webkit/libWebKitSystemInterfaceLeopa
rd.a', | |
102 ], | |
103 'outputs': [ | |
104 '<(adjusted_library_path)', | |
105 ], | |
106 'action': [ | |
107 '<@(_inputs)', | |
108 '<@(_outputs)', | |
109 '<(INTERMEDIATE_DIR)/adjust_visibility', # work directory | |
110 ], | |
111 }, | |
112 ], # actions | |
113 'link_settings': { | |
114 'libraries': [ | |
115 '<(adjusted_library_path)', | |
116 | |
117 # libWebKitSystemInterfaceLeopard.a references _kCIFormatRGBA8. | |
118 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', | |
119 ], | |
120 }, # link_settings | |
121 }, # target webkit_system_interface | |
122 ], # targets | |
123 }], # condition OS == "mac" | |
124 ], # conditions | |
125 | |
126 'targets': [ | 76 'targets': [ |
127 { | 77 { |
128 'target_name': 'inspector_protocol_sources', | 78 'target_name': 'inspector_protocol_sources', |
129 'type': 'none', | 79 'type': 'none', |
130 'dependencies': [ | 80 'dependencies': [ |
131 'generate_inspector_protocol_version' | 81 'generate_inspector_protocol_version' |
132 ], | 82 ], |
133 'actions': [ | 83 'actions': [ |
134 { | 84 { |
135 'action_name': 'generateInspectorProtocolBackendSources', | 85 'action_name': 'generateInspectorProtocolBackendSources', |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 'USING_V8_SHARED', | 285 'USING_V8_SHARED', |
336 ], | 286 ], |
337 }], | 287 }], |
338 # TODO(maruel): Move it in its own project or generate it anyway? | 288 # TODO(maruel): Move it in its own project or generate it anyway? |
339 ['enable_svg!=0', { | 289 ['enable_svg!=0', { |
340 'sources': [ | 290 'sources': [ |
341 '<(SHARED_INTERMEDIATE_DIR)/webkit/SVGElementFactory.cpp', | 291 '<(SHARED_INTERMEDIATE_DIR)/webkit/SVGElementFactory.cpp', |
342 '<(SHARED_INTERMEDIATE_DIR)/webkit/V8SVGElementWrapperFactory.cpp', | 292 '<(SHARED_INTERMEDIATE_DIR)/webkit/V8SVGElementWrapperFactory.cpp', |
343 ], | 293 ], |
344 }], | 294 }], |
345 ['OS=="mac"', { | |
346 'include_dirs': [ | |
347 '<(DEPTH)/third_party/apple_webkit', | |
348 ], | |
349 }], | |
350 ['OS=="win"', { | 295 ['OS=="win"', { |
351 'defines': [ | 296 'defines': [ |
352 'WEBCORE_NAVIGATOR_PLATFORM="Win32"', | 297 'WEBCORE_NAVIGATOR_PLATFORM="Win32"', |
353 '__PRETTY_FUNCTION__=__FUNCTION__', | 298 '__PRETTY_FUNCTION__=__FUNCTION__', |
354 ], | 299 ], |
355 # In generated bindings code: 'switch contains default but no case'. | 300 # In generated bindings code: 'switch contains default but no case'. |
356 # Disable c4267 warnings until we fix size_t to int truncations. | 301 # Disable c4267 warnings until we fix size_t to int truncations. |
357 'msvs_disabled_warnings': [ 4065, 4267 ], | 302 'msvs_disabled_warnings': [ 4065, 4267 ], |
358 }], | 303 }], |
359 ['OS in ("linux", "android") and "WTF_USE_WEBAUDIO_IPP=1" in feature_def
ines', { | 304 ['OS in ("linux", "android") and "WTF_USE_WEBAUDIO_IPP=1" in feature_def
ines', { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 '<(DEPTH)/third_party/libxslt/libxslt.gyp:libxslt', | 357 '<(DEPTH)/third_party/libxslt/libxslt.gyp:libxslt', |
413 '<(DEPTH)/third_party/npapi/npapi.gyp:npapi', | 358 '<(DEPTH)/third_party/npapi/npapi.gyp:npapi', |
414 '<(DEPTH)/third_party/ots/ots.gyp:ots', | 359 '<(DEPTH)/third_party/ots/ots.gyp:ots', |
415 '<(DEPTH)/third_party/qcms/qcms.gyp:qcms', | 360 '<(DEPTH)/third_party/qcms/qcms.gyp:qcms', |
416 '<(DEPTH)/third_party/sqlite/sqlite.gyp:sqlite', | 361 '<(DEPTH)/third_party/sqlite/sqlite.gyp:sqlite', |
417 '<(DEPTH)/third_party/angle/src/build_angle.gyp:translator_glsl', | 362 '<(DEPTH)/third_party/angle/src/build_angle.gyp:translator_glsl', |
418 '<(DEPTH)/third_party/zlib/zlib.gyp:zlib', | 363 '<(DEPTH)/third_party/zlib/zlib.gyp:zlib', |
419 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', | 364 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8', |
420 '<(libjpeg_gyp_path):libjpeg', | 365 '<(libjpeg_gyp_path):libjpeg', |
421 ], | 366 ], |
422 # This is needed for mac because of webkit_system_interface. It'd be nice | |
423 # if this hard dependency could be split off the rest. | |
424 'hard_dependency': 1, | |
425 'direct_dependent_settings': { | 367 'direct_dependent_settings': { |
426 'defines': [ | 368 'defines': [ |
427 'WEBCORE_NAVIGATOR_VENDOR="Google Inc."', | 369 'WEBCORE_NAVIGATOR_VENDOR="Google Inc."', |
428 'WEBKIT_IMPLEMENTATION=1', | 370 'WEBKIT_IMPLEMENTATION=1', |
429 ], | 371 ], |
430 'include_dirs': [ | 372 'include_dirs': [ |
431 '<@(webcore_include_dirs)', | 373 '<@(webcore_include_dirs)', |
432 '<(DEPTH)/gpu', | 374 '<(DEPTH)/gpu', |
433 '<(DEPTH)/third_party/angle/include/GLSLANG', | 375 '<(DEPTH)/third_party/angle/include/GLSLANG', |
434 ], | 376 ], |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 'export_dependent_settings': [ | 415 'export_dependent_settings': [ |
474 '<(DEPTH)/build/linux/system.gyp:gtk', | 416 '<(DEPTH)/build/linux/system.gyp:gtk', |
475 ], | 417 ], |
476 }], | 418 }], |
477 ['OS=="android"', { | 419 ['OS=="android"', { |
478 'sources/': [ | 420 'sources/': [ |
479 ['exclude', 'accessibility/'], | 421 ['exclude', 'accessibility/'], |
480 ], | 422 ], |
481 }], | 423 }], |
482 ['OS=="mac"', { | 424 ['OS=="mac"', { |
483 'dependencies': [ | |
484 'webkit_system_interface', | |
485 ], | |
486 'export_dependent_settings': [ | |
487 'webkit_system_interface', | |
488 ], | |
489 'direct_dependent_settings': { | 425 'direct_dependent_settings': { |
490 'defines': [ | 426 'defines': [ |
491 # Match Safari and Mozilla on Mac x86. | 427 # Match Safari and Mozilla on Mac x86. |
492 'WEBCORE_NAVIGATOR_PLATFORM="MacIntel"', | 428 'WEBCORE_NAVIGATOR_PLATFORM="MacIntel"', |
493 | 429 |
494 # Chromium's version of WebCore includes the following Objective-C | 430 # Chromium's version of WebCore includes the following Objective-C |
495 # classes. The system-provided WebCore framework may also provide | 431 # classes. The system-provided WebCore framework may also provide |
496 # these classes. Because of the nature of Objective-C binding | 432 # these classes. Because of the nature of Objective-C binding |
497 # (dynamically at runtime), it's possible for the | 433 # (dynamically at runtime), it's possible for the |
498 # Chromium-provided versions to interfere with the system-provided | 434 # Chromium-provided versions to interfere with the system-provided |
(...skipping 15 matching lines...) Expand all Loading... |
514 'WebCoreFlippedView=ChromiumWebCoreObjCWebCoreFlippedView', | 450 'WebCoreFlippedView=ChromiumWebCoreObjCWebCoreFlippedView', |
515 'WebCoreTextFieldCell=ChromiumWebCoreObjCWebCoreTextFieldCell', | 451 'WebCoreTextFieldCell=ChromiumWebCoreObjCWebCoreTextFieldCell', |
516 'WebScrollbarPrefsObserver=ChromiumWebCoreObjCWebScrollbarPrefsObs
erver', | 452 'WebScrollbarPrefsObserver=ChromiumWebCoreObjCWebScrollbarPrefsObs
erver', |
517 'WebCoreRenderThemeNotificationObserver=ChromiumWebCoreObjCWebCore
RenderThemeNotificationObserver', | 453 'WebCoreRenderThemeNotificationObserver=ChromiumWebCoreObjCWebCore
RenderThemeNotificationObserver', |
518 'WebFontCache=ChromiumWebCoreObjCWebFontCache', | 454 'WebFontCache=ChromiumWebCoreObjCWebFontCache', |
519 'WebScrollAnimationHelperDelegate=ChromiumWebCoreObjCWebScrollAnim
ationHelperDelegate', | 455 'WebScrollAnimationHelperDelegate=ChromiumWebCoreObjCWebScrollAnim
ationHelperDelegate', |
520 'WebScrollbarPainterControllerDelegate=ChromiumWebCoreObjCWebScrol
lbarPainterControllerDelegate', | 456 'WebScrollbarPainterControllerDelegate=ChromiumWebCoreObjCWebScrol
lbarPainterControllerDelegate', |
521 'WebScrollbarPainterDelegate=ChromiumWebCoreObjCWebScrollbarPainte
rDelegate', | 457 'WebScrollbarPainterDelegate=ChromiumWebCoreObjCWebScrollbarPainte
rDelegate', |
522 'WebScrollbarPartAnimation=ChromiumWebCoreObjCWebScrollbarPartAnim
ation', | 458 'WebScrollbarPartAnimation=ChromiumWebCoreObjCWebScrollbarPartAnim
ation', |
523 ], | 459 ], |
524 'include_dirs': [ | |
525 '<(DEPTH)/third_party/apple_webkit', | |
526 ], | |
527 'postbuilds': [ | 460 'postbuilds': [ |
528 { | 461 { |
529 # This step ensures that any Objective-C names that aren't | 462 # This step ensures that any Objective-C names that aren't |
530 # redefined to be "safe" above will cause a build failure. | 463 # redefined to be "safe" above will cause a build failure. |
531 'postbuild_name': 'Check Objective-C Rename', | 464 'postbuild_name': 'Check Objective-C Rename', |
532 'variables': { | 465 'variables': { |
533 'class_whitelist_regex': | 466 'class_whitelist_regex': |
534 'ChromiumWebCoreObjC|TCMVisibleView|RTCMFlippedView', | 467 'ChromiumWebCoreObjC|TCMVisibleView|RTCMFlippedView', |
535 'category_whitelist_regex': | 468 'category_whitelist_regex': |
536 'TCMInterposing|ScrollAnimatorChromiumMacExt|WebCoreTheme'
, | 469 'TCMInterposing|ScrollAnimatorChromiumMacExt|WebCoreTheme'
, |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 { | 573 { |
641 'target_name': 'webcore_platform', | 574 'target_name': 'webcore_platform', |
642 'type': 'static_library', | 575 'type': 'static_library', |
643 'dependencies': [ | 576 'dependencies': [ |
644 'webcore_prerequisites', | 577 'webcore_prerequisites', |
645 ], | 578 ], |
646 # Disable c4267 warnings until we fix size_t to int truncations. | 579 # Disable c4267 warnings until we fix size_t to int truncations. |
647 # Disable c4724 warnings which is generated in VS2012 due to improper | 580 # Disable c4724 warnings which is generated in VS2012 due to improper |
648 # compiler optimizations, see crbug.com/237063 | 581 # compiler optimizations, see crbug.com/237063 |
649 'msvs_disabled_warnings': [ 4267, 4334, 4724 ], | 582 'msvs_disabled_warnings': [ 4267, 4334, 4724 ], |
650 # This is needed for mac because of webkit_system_interface. It'd be nice | |
651 # if this hard dependency could be split off the rest. | |
652 'hard_dependency': 1, | |
653 'sources': [ | 583 'sources': [ |
654 '<@(webcore_platform_files)', | 584 '<@(webcore_platform_files)', |
655 ], | 585 ], |
656 'sources/': [ | 586 'sources/': [ |
657 # FIXME: Figure out how to store these patterns in a variable. | 587 # FIXME: Figure out how to store these patterns in a variable. |
658 ['exclude', '(cf|cg|harfbuzz|mac|opentype|svg|win)/'], | 588 ['exclude', '(cf|cg|harfbuzz|mac|opentype|svg|win)/'], |
659 ['exclude', '(?<!Chromium)(CF|CG|Mac|OpenType|Win)\\.(cpp|mm?)$'], | 589 ['exclude', '(?<!Chromium)(CF|CG|Mac|OpenType|Win)\\.(cpp|mm?)$'], |
660 | 590 |
661 # Used only by mac. | 591 # Used only by mac. |
662 ['exclude', 'platform/Theme\\.cpp$'], | 592 ['exclude', 'platform/Theme\\.cpp$'], |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 'sources/': [ | 646 'sources/': [ |
717 # Cherry-pick files excluded by the broader regular expressions abov
e. | 647 # Cherry-pick files excluded by the broader regular expressions abov
e. |
718 ['include', 'platform/chromium/KeyCodeConversionGtk\\.cpp$'], | 648 ['include', 'platform/chromium/KeyCodeConversionGtk\\.cpp$'], |
719 ], | 649 ], |
720 }, { # toolkit_uses_gtk==0 | 650 }, { # toolkit_uses_gtk==0 |
721 'sources/': [ | 651 'sources/': [ |
722 ['exclude', 'Gtk\\.cpp$'], | 652 ['exclude', 'Gtk\\.cpp$'], |
723 ], | 653 ], |
724 }], | 654 }], |
725 ['OS=="mac"', { | 655 ['OS=="mac"', { |
726 # Necessary for Mac .mm stuff. | |
727 'include_dirs': [ | |
728 '<(DEPTH)/third_party/apple_webkit', | |
729 ], | |
730 'dependencies': [ | 656 'dependencies': [ |
731 'webkit_system_interface', | |
732 '<(DEPTH)/third_party/harfbuzz-ng/harfbuzz.gyp:harfbuzz-ng', | 657 '<(DEPTH)/third_party/harfbuzz-ng/harfbuzz.gyp:harfbuzz-ng', |
733 ], | 658 ], |
734 'sources': [ | 659 'sources': [ |
735 '../editing/SmartReplaceCF.cpp', | 660 '../editing/SmartReplaceCF.cpp', |
736 ], | 661 ], |
737 'sources/': [ | 662 'sources/': [ |
738 # Additional files from the WebCore Mac build that are presently | 663 # Additional files from the WebCore Mac build that are presently |
739 # used in the WebCore Chromium Mac build too. | 664 # used in the WebCore Chromium Mac build too. |
740 | 665 |
741 # The Mac build is USE(CF). | 666 # The Mac build is USE(CF). |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1005 }], | 930 }], |
1006 ], | 931 ], |
1007 }, | 932 }, |
1008 { | 933 { |
1009 'target_name': 'webcore_remaining', | 934 'target_name': 'webcore_remaining', |
1010 'type': 'static_library', | 935 'type': 'static_library', |
1011 'dependencies': [ | 936 'dependencies': [ |
1012 '<(DEPTH)/third_party/v8-i18n/build/all.gyp:v8-i18n', | 937 '<(DEPTH)/third_party/v8-i18n/build/all.gyp:v8-i18n', |
1013 'webcore_prerequisites', | 938 'webcore_prerequisites', |
1014 ], | 939 ], |
1015 # This is needed for mac because of webkit_system_interface. It'd be nice | |
1016 # if this hard dependency could be split off the rest. | |
1017 'hard_dependency': 1, | |
1018 'sources': [ | 940 'sources': [ |
1019 '<@(webcore_files)', | 941 '<@(webcore_files)', |
1020 ], | 942 ], |
1021 'sources/': [ | 943 'sources/': [ |
1022 ['exclude', 'rendering/'], | 944 ['exclude', 'rendering/'], |
1023 | 945 |
1024 # FIXME: Figure out how to store these patterns in a variable. | 946 # FIXME: Figure out how to store these patterns in a variable. |
1025 ['exclude', '(cf|cg|mac|opentype|svg|win)/'], | 947 ['exclude', '(cf|cg|mac|opentype|svg|win)/'], |
1026 ['exclude', '(?<!Chromium)(CF|CG|Mac|OpenType|Win)\\.(cpp|mm?)$'], | 948 ['exclude', '(?<!Chromium)(CF|CG|Mac|OpenType|Win)\\.(cpp|mm?)$'], |
1027 ], | 949 ], |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1094 }, | 1016 }, |
1095 'conditions': [ | 1017 'conditions': [ |
1096 ['target_arch=="arm"', { | 1018 ['target_arch=="arm"', { |
1097 'dependencies': [ | 1019 'dependencies': [ |
1098 'webcore_arm_neon', | 1020 'webcore_arm_neon', |
1099 ], | 1021 ], |
1100 }], | 1022 }], |
1101 ['OS=="mac"', { | 1023 ['OS=="mac"', { |
1102 'direct_dependent_settings': { | 1024 'direct_dependent_settings': { |
1103 'include_dirs': [ | 1025 'include_dirs': [ |
1104 '<(DEPTH)/third_party/apple_webkit', | |
1105 '../../WebKit/mac/WebCoreSupport', | 1026 '../../WebKit/mac/WebCoreSupport', |
1106 ], | 1027 ], |
1107 }, | 1028 }, |
1108 }], | 1029 }], |
1109 ['OS=="linux" and "WTF_USE_WEBAUDIO_IPP=1" in feature_defines', { | 1030 ['OS=="linux" and "WTF_USE_WEBAUDIO_IPP=1" in feature_defines', { |
1110 'link_settings': { | 1031 'link_settings': { |
1111 'ldflags': [ | 1032 'ldflags': [ |
1112 '<!@(pkg-config --libs-only-L ipp)', | 1033 '<!@(pkg-config --libs-only-L ipp)', |
1113 ], | 1034 ], |
1114 'libraries': [ | 1035 'libraries': [ |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1156 '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings/V8InternalSettings.h', | 1077 '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings/V8InternalSettings.h', |
1157 '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings/V8InternalSettingsGenerated
.cpp', | 1078 '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings/V8InternalSettingsGenerated
.cpp', |
1158 '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings/V8InternalSettingsGenerated.
h', | 1079 '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings/V8InternalSettingsGenerated.
h', |
1159 ], | 1080 ], |
1160 'sources/': [ | 1081 'sources/': [ |
1161 ['exclude', 'testing/js'], | 1082 ['exclude', 'testing/js'], |
1162 ], | 1083 ], |
1163 }, | 1084 }, |
1164 ], # targets | 1085 ], # targets |
1165 } | 1086 } |
OLD | NEW |