| Index: Source/core/core.gyp/core.gyp
|
| diff --git a/Source/core/core.gyp/core.gyp b/Source/core/core.gyp/core.gyp
|
| deleted file mode 100644
|
| index b46ece6b54d7c61ec945e68c26a379a6a8c0d421..0000000000000000000000000000000000000000
|
| --- a/Source/core/core.gyp/core.gyp
|
| +++ /dev/null
|
| @@ -1,1110 +0,0 @@
|
| -#
|
| -# Copyright (C) 2009 Google Inc. All rights reserved.
|
| -#
|
| -# Redistribution and use in source and binary forms, with or without
|
| -# modification, are permitted provided that the following conditions are
|
| -# met:
|
| -#
|
| -# * Redistributions of source code must retain the above copyright
|
| -# notice, this list of conditions and the following disclaimer.
|
| -# * Redistributions in binary form must reproduce the above
|
| -# copyright notice, this list of conditions and the following disclaimer
|
| -# in the documentation and/or other materials provided with the
|
| -# distribution.
|
| -# * Neither the name of Google Inc. nor the names of its
|
| -# contributors may be used to endorse or promote products derived from
|
| -# this software without specific prior written permission.
|
| -#
|
| -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| -# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| -# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| -#
|
| -
|
| -{
|
| - 'includes': [
|
| - '../../WebKit/chromium/WinPrecompile.gypi',
|
| - '../features.gypi',
|
| - '../../modules/modules.gypi',
|
| - '../../bindings/bindings.gypi',
|
| - '../core.gypi',
|
| - ],
|
| -
|
| - 'variables': {
|
| - 'enable_wexit_time_destructors': 1,
|
| -
|
| - 'webcore_include_dirs': [
|
| - '../../..',
|
| - '../..',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings',
|
| - ],
|
| -
|
| - 'conditions': [
|
| - ['OS=="android" and use_openmax_dl_fft!=0', {
|
| - 'webcore_include_dirs': [
|
| - '<(DEPTH)/third_party/openmax_dl'
|
| - ]
|
| - }],
|
| - ],
|
| - }, # variables
|
| -
|
| - 'target_defaults': {
|
| - 'variables': {
|
| - 'optimize': 'max',
|
| - },
|
| - },
|
| -
|
| - 'targets': [
|
| - {
|
| - 'target_name': 'inspector_protocol_sources',
|
| - 'type': 'none',
|
| - 'dependencies': [
|
| - 'generate_inspector_protocol_version'
|
| - ],
|
| - 'actions': [
|
| - {
|
| - 'action_name': 'generateInspectorProtocolBackendSources',
|
| - 'inputs': [
|
| - # The python script in action below.
|
| - '../inspector/CodeGeneratorInspector.py',
|
| - # The helper script imported by CodeGeneratorInspector.py.
|
| - '../inspector/CodeGeneratorInspectorStrings.py',
|
| - # Input file for the script.
|
| - '../../devtools/protocol.json',
|
| - ],
|
| - 'outputs': [
|
| - '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendDispatcher.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/InspectorBackendDispatcher.h',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorFrontend.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/InspectorFrontend.h',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorTypeBuilder.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/InspectorTypeBuilder.h',
|
| - ],
|
| - 'variables': {
|
| - 'generator_include_dirs': [
|
| - ],
|
| - },
|
| - 'action': [
|
| - 'python',
|
| - '../inspector/CodeGeneratorInspector.py',
|
| - '../../devtools/protocol.json',
|
| - '--output_h_dir', '<(SHARED_INTERMEDIATE_DIR)/webkit',
|
| - '--output_cpp_dir', '<(SHARED_INTERMEDIATE_DIR)/webcore',
|
| - ],
|
| - 'message': 'Generating Inspector protocol backend sources from protocol.json',
|
| - 'msvs_cygwin_shell': 1,
|
| - },
|
| - ]
|
| - },
|
| - {
|
| - 'target_name': 'inspector_instrumentation_sources',
|
| - 'type': 'none',
|
| - 'dependencies': [],
|
| - 'actions': [
|
| - {
|
| - 'action_name': 'generateInspectorInstrumentation',
|
| - 'inputs': [
|
| - # The python script in action below.
|
| - '../inspector/CodeGeneratorInstrumentation.py',
|
| - # Input file for the script.
|
| - '../inspector/InspectorInstrumentation.idl',
|
| - ],
|
| - 'outputs': [
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/InspectorInstrumentationInl.h',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorInstrumentationImpl.cpp',
|
| - ],
|
| - 'action': [
|
| - 'python',
|
| - '../inspector/CodeGeneratorInstrumentation.py',
|
| - '../inspector/InspectorInstrumentation.idl',
|
| - '--output_h_dir', '<(SHARED_INTERMEDIATE_DIR)/webkit',
|
| - '--output_cpp_dir', '<(SHARED_INTERMEDIATE_DIR)/webcore',
|
| - ],
|
| - 'message': 'Generating Inspector instrumentation code from InspectorInstrumentation.idl',
|
| - 'msvs_cygwin_shell': 1,
|
| - }
|
| - ]
|
| - },
|
| - {
|
| - 'target_name': 'generate_inspector_protocol_version',
|
| - 'type': 'none',
|
| - 'actions': [
|
| - {
|
| - 'action_name': 'generateInspectorProtocolVersion',
|
| - 'inputs': [
|
| - '../inspector/generate-inspector-protocol-version',
|
| - '../../devtools/protocol.json',
|
| - ],
|
| - 'outputs': [
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/InspectorProtocolVersion.h',
|
| - ],
|
| - 'variables': {
|
| - 'generator_include_dirs': [
|
| - ],
|
| - },
|
| - 'action': [
|
| - 'python',
|
| - '../inspector/generate-inspector-protocol-version',
|
| - '-o',
|
| - '<@(_outputs)',
|
| - '<@(_inputs)'
|
| - ],
|
| - 'message': 'Validate inspector protocol for backwards compatibility and generate version file',
|
| - }
|
| - ]
|
| - },
|
| - {
|
| - 'target_name': 'inspector_overlay_page',
|
| - 'type': 'none',
|
| - 'variables': {
|
| - 'input_file_path': '../inspector/InspectorOverlayPage.html',
|
| - 'output_file_path': '<(SHARED_INTERMEDIATE_DIR)/webkit/InspectorOverlayPage.h',
|
| - 'character_array_name': 'InspectorOverlayPage_html',
|
| - },
|
| - 'includes': [ 'ConvertFileToHeaderWithCharacterArray.gypi' ],
|
| - },
|
| - {
|
| - 'target_name': 'injected_canvas_script_source',
|
| - 'type': 'none',
|
| - 'variables': {
|
| - 'input_file_path': '../inspector/InjectedScriptCanvasModuleSource.js',
|
| - 'output_file_path': '<(SHARED_INTERMEDIATE_DIR)/webkit/InjectedScriptCanvasModuleSource.h',
|
| - 'character_array_name': 'InjectedScriptCanvasModuleSource_js',
|
| - },
|
| - 'includes': [ 'ConvertFileToHeaderWithCharacterArray.gypi' ],
|
| - },
|
| - {
|
| - 'target_name': 'injected_script_source',
|
| - 'type': 'none',
|
| - 'variables': {
|
| - 'input_file_path': '../inspector/InjectedScriptSource.js',
|
| - 'output_file_path': '<(SHARED_INTERMEDIATE_DIR)/webkit/InjectedScriptSource.h',
|
| - 'character_array_name': 'InjectedScriptSource_js',
|
| - },
|
| - 'includes': [ 'ConvertFileToHeaderWithCharacterArray.gypi' ],
|
| - },
|
| - {
|
| - 'target_name': 'debugger_script_source',
|
| - 'type': 'none',
|
| - 'variables': {
|
| - 'input_file_path': '<(bindings_dir)/v8/DebuggerScript.js',
|
| - 'output_file_path': '<(SHARED_INTERMEDIATE_DIR)/webkit/DebuggerScriptSource.h',
|
| - 'character_array_name': 'DebuggerScriptSource_js',
|
| - },
|
| - 'includes': [ 'ConvertFileToHeaderWithCharacterArray.gypi' ],
|
| - },
|
| - {
|
| - 'target_name': 'webcore_derived',
|
| - 'type': 'static_library',
|
| - 'hard_dependency': 1,
|
| - 'dependencies': [
|
| - 'webcore_prerequisites',
|
| - 'core_derived_sources.gyp:make_derived_sources',
|
| - 'inspector_overlay_page',
|
| - 'inspector_protocol_sources',
|
| - 'inspector_instrumentation_sources',
|
| - 'injected_canvas_script_source',
|
| - 'injected_script_source',
|
| - 'debugger_script_source',
|
| - '../../wtf/wtf.gyp:wtf',
|
| - '<(DEPTH)/build/temp_gyp/googleurl.gyp:googleurl',
|
| - '<(DEPTH)/skia/skia.gyp:skia',
|
| - '<(DEPTH)/third_party/iccjpeg/iccjpeg.gyp:iccjpeg',
|
| - '<(DEPTH)/third_party/libpng/libpng.gyp:libpng',
|
| - '<(DEPTH)/third_party/libxml/libxml.gyp:libxml',
|
| - '<(DEPTH)/third_party/libxslt/libxslt.gyp:libxslt',
|
| - '<(DEPTH)/third_party/libwebp/libwebp.gyp:libwebp',
|
| - '<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
|
| - '<(DEPTH)/third_party/qcms/qcms.gyp:qcms',
|
| - '<(DEPTH)/third_party/sqlite/sqlite.gyp:sqlite',
|
| - '<(DEPTH)/third_party/v8-i18n/build/all.gyp:v8-i18n',
|
| - '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
|
| - '<(libjpeg_gyp_path):libjpeg',
|
| - ],
|
| - 'include_dirs': [
|
| - # FIXME: Remove <(SHARED_INTERMEDIATE_DIR)/webcore when we
|
| - # can entice gyp into letting us put both the .cpp and .h
|
| - # files in the same output directory.
|
| - '<(SHARED_INTERMEDIATE_DIR)/webcore',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings',
|
| - '<@(webcore_include_dirs)',
|
| -
|
| - # FIXME: Remove these once the bindings script generates qualified
|
| - # includes for these correctly. (Sequences don't work yet.)
|
| - '<(bindings_dir)/v8/custom',
|
| - '../../modules/mediastream',
|
| - '../../modules/speech',
|
| - '../dom',
|
| - '../html',
|
| - '../html/shadow',
|
| - '../inspector',
|
| - '../page',
|
| - '../svg',
|
| - ],
|
| - 'sources': [
|
| - # These files include all the .cpp files generated from the .idl files
|
| - # in webcore_files.
|
| - '<@(derived_sources_aggregate_files)',
|
| - '<@(bindings_files)',
|
| -
|
| - # Additional .cpp files for HashTools.h
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/ColorData.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/CSSPropertyNames.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/CSSValueKeywords.cpp',
|
| -
|
| - # Additional .cpp files from make_derived_sources actions.
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/HTMLElementFactory.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/HTMLNames.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/CalendarPicker.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/ColorSuggestionPicker.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/Event.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/EventHeaders.h',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/EventInterfaces.h',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/EventTargetHeaders.h',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/EventTargetInterfaces.h',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/DOMException.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/DOMException.h',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/PickerCommon.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/UserAgentStyleSheetsData.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/V8HTMLElementWrapperFactory.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/XLinkNames.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/XMLNSNames.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/XMLNames.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/SVGNames.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/MathMLElementFactory.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/MathMLNames.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/FontFamilyNames.cpp',
|
| -
|
| - # Generated from HTMLEntityNames.in
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/HTMLEntityTable.cpp',
|
| -
|
| - # Generated from RuntimeEnabledFeatures.in
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/RuntimeEnabledFeatures.cpp',
|
| -
|
| - # Additional .cpp files from the make_derived_sources rules.
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/CSSGrammar.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/XPathGrammar.cpp',
|
| -
|
| - # Additional .cpp files from the inspector_protocol_sources list.
|
| - '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorFrontend.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendDispatcher.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorTypeBuilder.cpp',
|
| -
|
| - # Additional .cpp files from the inspector_instrumentation_sources list.
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/InspectorInstrumentationInl.h',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorInstrumentationImpl.cpp',
|
| -
|
| - # Additional .cpp files for SVG.
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/SVGElementFactory.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/V8SVGElementWrapperFactory.cpp',
|
| -
|
| - # Generated from make_style_builder.py
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/StyleBuilder.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/StyleBuilderFunctions.cpp',
|
| - ],
|
| - 'conditions': [
|
| - ['OS=="win" and component=="shared_library"', {
|
| - 'defines': [
|
| - 'USING_V8_SHARED',
|
| - ],
|
| - }],
|
| - ['OS=="win"', {
|
| - 'defines': [
|
| - 'WEBCORE_NAVIGATOR_PLATFORM="Win32"',
|
| - '__PRETTY_FUNCTION__=__FUNCTION__',
|
| - ],
|
| - # In generated bindings code: 'switch contains default but no case'.
|
| - # Disable c4267 warnings until we fix size_t to int truncations.
|
| - 'msvs_disabled_warnings': [ 4065, 4267 ],
|
| - }],
|
| - ['OS in ("linux", "android") and "WTF_USE_WEBAUDIO_IPP=1" in feature_defines', {
|
| - 'cflags': [
|
| - '<!@(pkg-config --cflags-only-I ipp)',
|
| - ],
|
| - }],
|
| - ],
|
| - },
|
| - {
|
| - # We'll soon split libwebcore in multiple smaller libraries.
|
| - # webcore_prerequisites will be the 'base' target of every sub-target.
|
| - 'target_name': 'webcore_prerequisites',
|
| - 'type': 'none',
|
| - 'dependencies': [
|
| - 'debugger_script_source',
|
| - 'injected_canvas_script_source',
|
| - 'injected_script_source',
|
| - 'inspector_overlay_page',
|
| - 'inspector_protocol_sources',
|
| - 'inspector_instrumentation_sources',
|
| - 'core_derived_sources.gyp:make_derived_sources',
|
| - '../../bindings/derived_sources.gyp:bindings_derived_sources',
|
| - '../../wtf/wtf.gyp:wtf',
|
| - '../../config.gyp:config',
|
| - '../../weborigin/weborigin.gyp:weborigin',
|
| - '<(DEPTH)/build/temp_gyp/googleurl.gyp:googleurl',
|
| - '<(DEPTH)/gpu/gpu.gyp:gles2_c_lib',
|
| - '<(DEPTH)/skia/skia.gyp:skia',
|
| - '<(DEPTH)/third_party/iccjpeg/iccjpeg.gyp:iccjpeg',
|
| - '<(DEPTH)/third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
|
| - '<(DEPTH)/third_party/libwebp/libwebp.gyp:libwebp',
|
| - '<(DEPTH)/third_party/libpng/libpng.gyp:libpng',
|
| - '<(DEPTH)/third_party/libxml/libxml.gyp:libxml',
|
| - '<(DEPTH)/third_party/libxslt/libxslt.gyp:libxslt',
|
| - '<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
|
| - '<(DEPTH)/third_party/ots/ots.gyp:ots',
|
| - '<(DEPTH)/third_party/qcms/qcms.gyp:qcms',
|
| - '<(DEPTH)/third_party/sqlite/sqlite.gyp:sqlite',
|
| - '<(DEPTH)/third_party/angle/src/build_angle.gyp:translator_glsl',
|
| - '<(DEPTH)/third_party/zlib/zlib.gyp:zlib',
|
| - '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
|
| - '<(libjpeg_gyp_path):libjpeg',
|
| - ],
|
| - 'export_dependent_settings': [
|
| - '../../wtf/wtf.gyp:wtf',
|
| - '../../config.gyp:config',
|
| - '<(DEPTH)/build/temp_gyp/googleurl.gyp:googleurl',
|
| - '<(DEPTH)/gpu/gpu.gyp:gles2_c_lib',
|
| - '<(DEPTH)/skia/skia.gyp:skia',
|
| - '<(DEPTH)/third_party/iccjpeg/iccjpeg.gyp:iccjpeg',
|
| - '<(DEPTH)/third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
|
| - '<(DEPTH)/third_party/libwebp/libwebp.gyp:libwebp',
|
| - '<(DEPTH)/third_party/libpng/libpng.gyp:libpng',
|
| - '<(DEPTH)/third_party/libxml/libxml.gyp:libxml',
|
| - '<(DEPTH)/third_party/libxslt/libxslt.gyp:libxslt',
|
| - '<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
|
| - '<(DEPTH)/third_party/ots/ots.gyp:ots',
|
| - '<(DEPTH)/third_party/qcms/qcms.gyp:qcms',
|
| - '<(DEPTH)/third_party/sqlite/sqlite.gyp:sqlite',
|
| - '<(DEPTH)/third_party/angle/src/build_angle.gyp:translator_glsl',
|
| - '<(DEPTH)/third_party/zlib/zlib.gyp:zlib',
|
| - '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
|
| - '<(libjpeg_gyp_path):libjpeg',
|
| - ],
|
| - 'direct_dependent_settings': {
|
| - 'defines': [
|
| - 'WEBCORE_NAVIGATOR_VENDOR="Google Inc."',
|
| - 'WEBKIT_IMPLEMENTATION=1',
|
| - ],
|
| - 'include_dirs': [
|
| - '<@(webcore_include_dirs)',
|
| - '<(DEPTH)/gpu',
|
| - '<(DEPTH)/third_party/angle/include/GLSLANG',
|
| - ],
|
| - 'msvs_disabled_warnings': [
|
| - 4138, 4244, 4291, 4305, 4344, 4355, 4521, 4099,
|
| - ],
|
| - 'scons_line_length' : 1,
|
| - 'xcode_settings': {
|
| - # Some Mac-specific parts of WebKit won't compile without having this
|
| - # prefix header injected.
|
| - # FIXME: make this a first-class setting.
|
| - 'GCC_PREFIX_HEADER': '../WebCorePrefixMac.h',
|
| - },
|
| - },
|
| - 'conditions': [
|
| - ['OS=="win" and component=="shared_library"', {
|
| - 'direct_dependent_settings': {
|
| - 'defines': [
|
| - 'USING_V8_SHARED',
|
| - ],
|
| - },
|
| - }],
|
| - ['use_x11 == 1', {
|
| - 'dependencies': [
|
| - '<(DEPTH)/build/linux/system.gyp:fontconfig',
|
| - ],
|
| - 'export_dependent_settings': [
|
| - '<(DEPTH)/build/linux/system.gyp:fontconfig',
|
| - ],
|
| - 'direct_dependent_settings': {
|
| - 'cflags': [
|
| - # WebCore does not work with strict aliasing enabled.
|
| - # https://bugs.webkit.org/show_bug.cgi?id=25864
|
| - '-fno-strict-aliasing',
|
| - ],
|
| - },
|
| - }],
|
| - ['toolkit_uses_gtk == 1', {
|
| - 'dependencies': [
|
| - '<(DEPTH)/build/linux/system.gyp:gtk',
|
| - ],
|
| - 'export_dependent_settings': [
|
| - '<(DEPTH)/build/linux/system.gyp:gtk',
|
| - ],
|
| - }],
|
| - ['OS=="android"', {
|
| - 'sources/': [
|
| - ['exclude', 'accessibility/'],
|
| - ],
|
| - }],
|
| - ['OS=="mac"', {
|
| - 'direct_dependent_settings': {
|
| - 'defines': [
|
| - # Match Safari and Mozilla on Mac x86.
|
| - 'WEBCORE_NAVIGATOR_PLATFORM="MacIntel"',
|
| -
|
| - # Chromium's version of WebCore includes the following Objective-C
|
| - # classes. The system-provided WebCore framework may also provide
|
| - # these classes. Because of the nature of Objective-C binding
|
| - # (dynamically at runtime), it's possible for the
|
| - # Chromium-provided versions to interfere with the system-provided
|
| - # versions. This may happen when a system framework attempts to
|
| - # use core.framework, such as when converting an HTML-flavored
|
| - # string to an NSAttributedString. The solution is to force
|
| - # Objective-C class names that would conflict to use alternate
|
| - # names.
|
| - #
|
| - # This list will hopefully shrink but may also grow. Its
|
| - # performance is monitored by the "Check Objective-C Rename"
|
| - # postbuild step, and any suspicious-looking symbols not handled
|
| - # here or whitelisted in that step will cause a build failure.
|
| - #
|
| - # If this is unhandled, the console will receive log messages
|
| - # such as:
|
| - # com.google.Chrome[] objc[]: Class ScrollbarPrefsObserver is implemented in both .../Google Chrome.app/Contents/Versions/.../Google Chrome Helper.app/Contents/MacOS/../../../Google Chrome Framework.framework/Google Chrome Framework and /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore. One of the two will be used. Which one is undefined.
|
| - 'WebCascadeList=ChromiumWebCoreObjCWebCascadeList',
|
| - 'WebCoreFlippedView=ChromiumWebCoreObjCWebCoreFlippedView',
|
| - 'WebCoreTextFieldCell=ChromiumWebCoreObjCWebCoreTextFieldCell',
|
| - 'WebScrollbarPrefsObserver=ChromiumWebCoreObjCWebScrollbarPrefsObserver',
|
| - 'WebCoreRenderThemeNotificationObserver=ChromiumWebCoreObjCWebCoreRenderThemeNotificationObserver',
|
| - 'WebFontCache=ChromiumWebCoreObjCWebFontCache',
|
| - 'WebScrollAnimationHelperDelegate=ChromiumWebCoreObjCWebScrollAnimationHelperDelegate',
|
| - 'WebScrollbarPainterControllerDelegate=ChromiumWebCoreObjCWebScrollbarPainterControllerDelegate',
|
| - 'WebScrollbarPainterDelegate=ChromiumWebCoreObjCWebScrollbarPainterDelegate',
|
| - 'WebScrollbarPartAnimation=ChromiumWebCoreObjCWebScrollbarPartAnimation',
|
| - ],
|
| - 'postbuilds': [
|
| - {
|
| - # This step ensures that any Objective-C names that aren't
|
| - # redefined to be "safe" above will cause a build failure.
|
| - 'postbuild_name': 'Check Objective-C Rename',
|
| - 'variables': {
|
| - 'class_whitelist_regex':
|
| - 'ChromiumWebCoreObjC|TCMVisibleView|RTCMFlippedView',
|
| - 'category_whitelist_regex':
|
| - 'TCMInterposing|ScrollAnimatorChromiumMacExt|WebCoreTheme',
|
| - },
|
| - 'action': [
|
| - 'mac/check_objc_rename.sh',
|
| - '<(class_whitelist_regex)',
|
| - '<(category_whitelist_regex)',
|
| - ],
|
| - },
|
| - ],
|
| - },
|
| - }],
|
| - ['OS=="win"', {
|
| - 'direct_dependent_settings': {
|
| - 'defines': [
|
| - # Match Safari and Mozilla on Windows.
|
| - 'WEBCORE_NAVIGATOR_PLATFORM="Win32"',
|
| - '__PRETTY_FUNCTION__=__FUNCTION__',
|
| - ],
|
| - },
|
| - }],
|
| - ['OS in ("linux", "android") and "WTF_USE_WEBAUDIO_IPP=1" in feature_defines', {
|
| - 'direct_dependent_settings': {
|
| - 'cflags': [
|
| - '<!@(pkg-config --cflags-only-I ipp)',
|
| - ],
|
| - },
|
| - }],
|
| - ['"WTF_USE_WEBAUDIO_FFMPEG=1" in feature_defines', {
|
| - # This directory needs to be on the include path for multiple sub-targets of webcore.
|
| - 'direct_dependent_settings': {
|
| - 'include_dirs': [
|
| - '<(DEPTH)/third_party/ffmpeg',
|
| - ],
|
| - },
|
| - 'dependencies': [
|
| - '<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
|
| - ],
|
| - }],
|
| - ['"WTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1" in feature_defines', {
|
| - 'direct_dependent_settings': {
|
| - 'include_dirs': [
|
| - '<(DEPTH)/third_party/openmax_dl',
|
| - ],
|
| - },
|
| - 'dependencies': [
|
| - '<(DEPTH)/third_party/openmax_dl/dl/dl.gyp:openmax_dl',
|
| - ],
|
| - }],
|
| - # Windows shared builder needs extra help for linkage
|
| - ['OS=="win" and "WTF_USE_WEBAUDIO_FFMPEG=1" in feature_defines', {
|
| - 'export_dependent_settings': [
|
| - '<(DEPTH)/third_party/ffmpeg/ffmpeg.gyp:ffmpeg',
|
| - ],
|
| - }],
|
| - ],
|
| - },
|
| - {
|
| - 'target_name': 'webcore_dom',
|
| - 'type': 'static_library',
|
| - 'dependencies': [
|
| - 'webcore_prerequisites',
|
| - ],
|
| - 'sources': [
|
| - '<@(webcore_dom_files)',
|
| - ],
|
| - 'sources!': [
|
| - '../dom/default/PlatformMessagePortChannel.cpp',
|
| - '../dom/default/PlatformMessagePortChannel.h',
|
| - ],
|
| - 'sources/': [
|
| - # FIXME: Figure out how to store these patterns in a variable.
|
| - ['exclude', '(cf|cg|mac|opentype|svg|win)/'],
|
| - ['exclude', '(?<!Chromium)(CF|CG|Mac|OpenType|Win)\\.(cpp|mm?)$'],
|
| - ],
|
| - # Disable c4267 warnings until we fix size_t to int truncations.
|
| - 'msvs_disabled_warnings': [ 4267, ],
|
| - },
|
| - {
|
| - 'target_name': 'webcore_html',
|
| - 'type': 'static_library',
|
| - 'dependencies': [
|
| - 'webcore_prerequisites',
|
| - ],
|
| - 'sources': [
|
| - '<@(webcore_html_files)',
|
| - ],
|
| - 'conditions': [
|
| - ['OS!="android"', {
|
| - 'sources/': [
|
| - ['exclude', 'Android\\.cpp$'],
|
| - ],
|
| - }],
|
| - ],
|
| - },
|
| - {
|
| - 'target_name': 'webcore_svg',
|
| - 'type': 'static_library',
|
| - 'dependencies': [
|
| - 'webcore_prerequisites',
|
| - ],
|
| - 'sources': [
|
| - '<@(webcore_svg_files)',
|
| - ],
|
| - },
|
| - {
|
| - 'target_name': 'webcore_platform',
|
| - 'type': 'static_library',
|
| - 'dependencies': [
|
| - 'webcore_prerequisites',
|
| - ],
|
| - # Disable c4267 warnings until we fix size_t to int truncations.
|
| - # Disable c4724 warnings which is generated in VS2012 due to improper
|
| - # compiler optimizations, see crbug.com/237063
|
| - 'msvs_disabled_warnings': [ 4267, 4334, 4724 ],
|
| - 'sources': [
|
| - '<@(webcore_platform_files)',
|
| - ],
|
| - 'sources/': [
|
| - # FIXME: Figure out how to store these patterns in a variable.
|
| - ['exclude', '(cf|cg|harfbuzz|mac|opentype|svg|win)/'],
|
| - ['exclude', '(?<!Chromium)(CF|CG|Mac|OpenType|Win)\\.(cpp|mm?)$'],
|
| -
|
| - # Used only by mac.
|
| - ['exclude', 'platform/Theme\\.cpp$'],
|
| -
|
| - # *NEON.cpp files need special compile options.
|
| - # They are moved to the webcore_arm_neon target.
|
| - ['exclude', 'platform/graphics/cpu/arm/filters/.*NEON\\.(cpp|h)'],
|
| - ],
|
| - 'conditions': [
|
| - ['component=="shared_library"', {
|
| - 'defines': [
|
| - 'WEBKIT_DLL',
|
| - ],
|
| - }],
|
| - ['use_default_render_theme==1', {
|
| - 'sources/': [
|
| - ['exclude', 'platform/chromium/PlatformThemeChromiumWin.h'],
|
| - ['exclude', 'platform/chromium/PlatformThemeChromiumWin.cpp'],
|
| - ['exclude', 'platform/chromium/ScrollbarThemeChromiumWin.cpp'],
|
| - ['exclude', 'platform/chromium/ScrollbarThemeChromiumWin.h'],
|
| - ],
|
| - }, { # use_default_render_theme==0
|
| - 'sources/': [
|
| - ['exclude', 'platform/chromium/PlatformThemeChromiumDefault.cpp'],
|
| - ['exclude', 'platform/chromium/PlatformThemeChromiumDefault.h'],
|
| - ['exclude', 'platform/chromium/ScrollbarThemeChromiumDefault.cpp'],
|
| - ['exclude', 'platform/chromium/ScrollbarThemeChromiumDefault.h'],
|
| - ],
|
| - }],
|
| - ['OS=="linux" or OS=="android"', {
|
| - 'sources/': [
|
| - # Cherry-pick files excluded by the broader regular expressions above.
|
| - ['include', 'platform/graphics/harfbuzz/FontHarfBuzz\\.cpp$'],
|
| - ['include', 'platform/graphics/harfbuzz/FontPlatformDataHarfBuzz\\.cpp$'],
|
| - ['include', 'platform/graphics/harfbuzz/HarfBuzzFace\\.(cpp|h)$'],
|
| - ['include', 'platform/graphics/harfbuzz/HarfBuzzFaceSkia\\.cpp$'],
|
| - ['include', 'platform/graphics/harfbuzz/HarfBuzzShaper\\.(cpp|h)$'],
|
| - ['include', 'platform/graphics/harfbuzz/HarfBuzzShaperBase\\.(cpp|h)$'],
|
| - ['include', 'platform/graphics/opentype/OpenTypeTypes\\.h$'],
|
| - ['include', 'platform/graphics/opentype/OpenTypeVerticalData\\.(cpp|h)$'],
|
| - ['include', 'platform/graphics/skia/SimpleFontDataSkia\\.cpp$'],
|
| - ],
|
| - 'dependencies': [
|
| - '<(DEPTH)/third_party/harfbuzz-ng/harfbuzz.gyp:harfbuzz-ng',
|
| - ],
|
| - }, { # OS!="linux" and OS!="android"
|
| - 'sources/': [
|
| - ['exclude', 'Harfbuzz[^/]+\\.(cpp|h)$'],
|
| - ],
|
| - }],
|
| - ['OS!="linux"', {
|
| - 'sources/': [
|
| - ['exclude', 'Linux\\.cpp$'],
|
| - ],
|
| - }],
|
| - ['toolkit_uses_gtk == 1', {
|
| - 'sources/': [
|
| - # Cherry-pick files excluded by the broader regular expressions above.
|
| - ['include', 'platform/chromium/KeyCodeConversionGtk\\.cpp$'],
|
| - ],
|
| - }, { # toolkit_uses_gtk==0
|
| - 'sources/': [
|
| - ['exclude', 'Gtk\\.cpp$'],
|
| - ],
|
| - }],
|
| - ['OS=="mac"', {
|
| - 'dependencies': [
|
| - '<(DEPTH)/third_party/harfbuzz-ng/harfbuzz.gyp:harfbuzz-ng',
|
| - ],
|
| - 'sources': [
|
| - '../editing/SmartReplaceCF.cpp',
|
| - ],
|
| - 'sources/': [
|
| - # Additional files from the WebCore Mac build that are presently
|
| - # used in the WebCore Chromium Mac build too.
|
| -
|
| - # The Mac build is USE(CF).
|
| - ['include', 'CF\\.cpp$'],
|
| -
|
| - # Use native Mac font code from core.
|
| - ['include', 'platform/(graphics/)?mac/[^/]*Font[^/]*\\.(cpp|mm?)$'],
|
| - ['include', 'platform/graphics/mac/ComplexText[^/]*\\.(cpp|h)$'],
|
| -
|
| - # We can use this for the fast Accelerate.framework FFT.
|
| - ['include', 'platform/audio/mac/FFTFrameMac\\.cpp$'],
|
| -
|
| - # Cherry-pick some files that can't be included by broader regexps.
|
| - # Some of these are used instead of Chromium platform files, see
|
| - # the specific exclusions in the "exclude" list below.
|
| - ['include', 'platform/graphics/mac/ColorMac\\.mm$'],
|
| - ['include', 'platform/graphics/mac/ComplexTextControllerCoreText\\.mm$'],
|
| - ['include', 'platform/graphics/mac/FloatPointMac\\.mm$'],
|
| - ['include', 'platform/graphics/mac/FloatRectMac\\.mm$'],
|
| - ['include', 'platform/graphics/mac/FloatSizeMac\\.mm$'],
|
| - ['include', 'platform/graphics/mac/GlyphPageTreeNodeMac\\.cpp$'],
|
| - ['include', 'platform/graphics/mac/IntPointMac\\.mm$'],
|
| - ['include', 'platform/graphics/mac/IntRectMac\\.mm$'],
|
| - ['include', 'platform/mac/BlockExceptions\\.mm$'],
|
| - ['include', 'platform/mac/KillRingMac\\.mm$'],
|
| - ['include', 'platform/mac/LocalCurrentGraphicsContext\\.mm$'],
|
| - ['include', 'platform/mac/NSScrollerImpDetails\\.mm$'],
|
| - ['include', 'platform/mac/PurgeableBufferMac\\.cpp$'],
|
| - ['include', 'platform/mac/ScrollbarThemeMac\\.mm$'],
|
| - ['include', 'platform/mac/ScrollAnimatorMac\\.mm$'],
|
| - ['include', 'platform/mac/ScrollElasticityController\\.mm$'],
|
| - ['include', 'platform/mac/ThemeMac\\.h$'],
|
| - ['include', 'platform/mac/ThemeMac\\.mm$'],
|
| - ['include', 'platform/mac/WebCoreSystemInterface\\.h$'],
|
| - ['include', 'platform/mac/WebCoreTextRenderer\\.mm$'],
|
| - ['include', 'platform/text/mac/ShapeArabic\\.c$'],
|
| - ['include', 'platform/text/mac/String(Impl)?Mac\\.mm$'],
|
| - # Use USE_NEW_THEME on Mac.
|
| - ['include', 'platform/Theme\\.cpp$'],
|
| -
|
| - # We use LocaleMac.mm instead of LocaleICU.cpp in order to
|
| - # apply system locales.
|
| - ['exclude', 'platform/text/LocaleICU\\.cpp$'],
|
| - ['exclude', 'platform/text/LocaleICU\\.h$'],
|
| - ['include', 'platform/text/mac/LocaleMac\\.mm$'],
|
| -
|
| - # The Mac uses platform/mac/KillRingMac.mm instead of the dummy
|
| - # implementation.
|
| - ['exclude', 'platform/KillRingNone\\.cpp$'],
|
| -
|
| - # The Mac currently uses FontCustomPlatformData.cpp from
|
| - # platform/graphics/mac, included by regex above, instead.
|
| - ['exclude', 'platform/graphics/skia/FontCustomPlatformData\\.cpp$'],
|
| -
|
| - # The Mac currently uses ScrollbarThemeChromiumMac.mm, which is not
|
| - # related to ScrollbarThemeChromium.cpp.
|
| - ['exclude', 'platform/chromium/ScrollbarThemeChromium\\.cpp$'],
|
| -
|
| - # Mac uses only ScrollAnimatorMac.
|
| - ['exclude', 'platform/ScrollAnimatorNone\\.cpp$'],
|
| - ['exclude', 'platform/ScrollAnimatorNone\\.h$'],
|
| -
|
| - ['include', 'platform/graphics/cg/FloatPointCG\\.cpp$'],
|
| - ['include', 'platform/graphics/cg/FloatRectCG\\.cpp$'],
|
| - ['include', 'platform/graphics/cg/FloatSizeCG\\.cpp$'],
|
| - ['include', 'platform/graphics/cg/IntPointCG\\.cpp$'],
|
| - ['include', 'platform/graphics/cg/IntRectCG\\.cpp$'],
|
| - ['include', 'platform/graphics/cg/IntSizeCG\\.cpp$'],
|
| - ['exclude', 'platform/graphics/skia/FontCacheSkia\\.cpp$'],
|
| - ['exclude', 'platform/graphics/skia/GlyphPageTreeNodeSkia\\.cpp$'],
|
| - ['exclude', 'platform/graphics/skia/SimpleFontDataSkia\\.cpp$'],
|
| -
|
| - # Mac uses Harfbuzz.
|
| - ['include', 'platform/graphics/harfbuzz/HarfBuzzFaceCoreText\\.cpp$'],
|
| - ['include', 'platform/graphics/harfbuzz/HarfBuzzFace\\.(cpp|h)$'],
|
| - ['include', 'platform/graphics/harfbuzz/HarfBuzzShaper\\.(cpp|h)$'],
|
| - ['include', 'platform/graphics/harfbuzz/HarfBuzzShaperBase\\.(cpp|h)$'],
|
| - ],
|
| - },{ # OS!="mac"
|
| - 'sources/': [
|
| - ['exclude', 'Mac\\.(cpp|mm?)$'],
|
| -
|
| - # FIXME: We will eventually compile this too, but for now it's
|
| - # only used on mac.
|
| - ['exclude', 'platform/graphics/FontPlatformData\\.cpp$'],
|
| - ],
|
| - }],
|
| - ['OS != "linux" and OS != "mac"', {
|
| - 'sources/': [
|
| - ['exclude', 'VDMX[^/]+\\.(cpp|h)$'],
|
| - ],
|
| - }],
|
| - ['OS=="win"', {
|
| - 'sources/': [
|
| - ['exclude', 'Posix\\.cpp$'],
|
| -
|
| - ['include', '/opentype/'],
|
| - ['include', '/SkiaFontWin\\.cpp$'],
|
| - ['include', '/TransparencyWin\\.cpp$'],
|
| -
|
| - # The Chromium Win currently uses GlyphPageTreeNodeChromiumWin.cpp from
|
| - # platform/graphics/chromium, included by regex above, instead.
|
| - ['exclude', 'platform/graphics/skia/FontCacheSkia\\.cpp$'],
|
| - ['exclude', 'platform/graphics/skia/GlyphPageTreeNodeSkia\\.cpp$'],
|
| - ['exclude', 'platform/graphics/skia/SimpleFontDataSkia\\.cpp$'],
|
| -
|
| - # SystemInfo.cpp is useful and we don't want to copy it.
|
| - ['include', 'platform/win/SystemInfo\\.cpp$'],
|
| -
|
| - ['exclude', 'platform/text/LocaleICU\\.cpp$'],
|
| - ['exclude', 'platform/text/LocaleICU\\.h$'],
|
| - ['include', 'platform/text/win/LocaleWin\.cpp$'],
|
| - ['include', 'platform/text/win/LocaleWin\.h$'],
|
| - ],
|
| - },{ # OS!="win"
|
| - 'sources/': [
|
| - ['exclude', 'Win\\.cpp$'],
|
| - ['exclude', '/(Windows|Uniscribe)[^/]*\\.cpp$'],
|
| - ['include', 'platform/graphics/opentype/OpenTypeSanitizer\\.cpp$'],
|
| - ],
|
| - }],
|
| - ['OS=="win" and chromium_win_pch==1', {
|
| - 'sources/': [
|
| - ['include', '<(DEPTH)/third_party/WebKit/Source/WebKit/chromium/WinPrecompile.cpp'],
|
| - ],
|
| - }],
|
| - ['OS=="android"', {
|
| - 'sources/': [
|
| - ['include', 'platform/chromium/ClipboardChromiumLinux\\.cpp$'],
|
| - ['include', 'platform/chromium/FileSystemChromiumLinux\\.cpp$'],
|
| - ['include', 'platform/graphics/chromium/GlyphPageTreeNodeLinux\\.cpp$'],
|
| - ['exclude', 'platform/graphics/chromium/IconChromium\\.cpp$'],
|
| - ['include', 'platform/graphics/chromium/VDMXParser\\.cpp$'],
|
| - ['exclude', 'platform/graphics/skia/FontCacheSkia\\.cpp$'],
|
| - ],
|
| - }, { # OS!="android"
|
| - 'sources/': [
|
| - ['exclude', 'Android\\.cpp$'],
|
| - ],
|
| - }],
|
| - ],
|
| - },
|
| - {
|
| - 'target_name': 'webcore_platform_geometry',
|
| - 'type': 'static_library',
|
| - 'dependencies': [
|
| - 'webcore_prerequisites',
|
| - ],
|
| - 'sources': [
|
| - '<@(webcore_platform_geometry_files)',
|
| - ],
|
| - },
|
| - # The *NEON.cpp files fail to compile when -mthumb is passed. Force
|
| - # them to build in ARM mode.
|
| - # See https://bugs.webkit.org/show_bug.cgi?id=62916.
|
| - {
|
| - 'target_name': 'webcore_arm_neon',
|
| - 'conditions': [
|
| - ['target_arch=="arm"', {
|
| - 'type': 'static_library',
|
| - 'dependencies': [
|
| - 'webcore_prerequisites',
|
| - ],
|
| - 'hard_dependency': 1,
|
| - 'sources': [
|
| - '<@(webcore_files)',
|
| - ],
|
| - 'sources/': [
|
| - ['exclude', '.*'],
|
| - ['include', 'platform/graphics/cpu/arm/filters/.*NEON\\.(cpp|h)'],
|
| - ],
|
| - 'cflags': ['-marm'],
|
| - 'conditions': [
|
| - ['OS=="android"', {
|
| - 'cflags!': ['-mthumb'],
|
| - }],
|
| - ],
|
| - },{ # target_arch!="arm"
|
| - 'type': 'none',
|
| - }],
|
| - ],
|
| - },
|
| - {
|
| - 'target_name': 'webcore_rendering',
|
| - 'type': 'static_library',
|
| - 'dependencies': [
|
| - 'webcore_prerequisites',
|
| - ],
|
| - 'sources': [
|
| - '<@(webcore_files)',
|
| - ],
|
| - 'sources/': [
|
| - ['exclude', '.*'],
|
| - ['include', 'rendering/'],
|
| -
|
| - # FIXME: Figure out how to store these patterns in a variable.
|
| - ['exclude', '(cf|cg|mac|opentype|svg|win)/'],
|
| - ['exclude', '(?<!Chromium)(CF|CG|Mac|OpenType|Win)\\.(cpp|mm?)$'],
|
| - # Previous rule excludes things like ChromiumFooWin, include those.
|
| - ['include', 'rendering/.*Chromium.*\\.(cpp|mm?)$'],
|
| - ],
|
| - 'conditions': [
|
| - # Shard this taret into parts to work around linker limitations.
|
| - # on link time code generation builds.
|
| - ['OS=="win" and buildtype=="Official"', {
|
| - 'msvs_shard': 5,
|
| - }],
|
| - ['use_default_render_theme==0', {
|
| - 'sources/': [
|
| - ['exclude', 'rendering/RenderThemeChromiumDefault.*'],
|
| - ],
|
| - }],
|
| - ['use_default_render_theme==1', {
|
| - 'sources/': [
|
| - ['exclude', 'RenderThemeChromiumWin.*'],
|
| - ],
|
| - }],
|
| - ['OS=="win"', {
|
| - 'sources/': [
|
| - ['exclude', 'Posix\\.cpp$'],
|
| - ],
|
| - },{ # OS!="win"
|
| - 'sources/': [
|
| - ['exclude', 'Win\\.cpp$'],
|
| - ],
|
| - }],
|
| - ['OS=="win" and chromium_win_pch==1', {
|
| - 'sources/': [
|
| - ['include', '<(DEPTH)/third_party/WebKit/Source/WebKit/chromium/WinPrecompile.cpp'],
|
| - ],
|
| - }],
|
| - ['OS=="mac"', {
|
| - 'sources/': [
|
| - # RenderThemeChromiumSkia is not used on mac since RenderThemeChromiumMac
|
| - # does not reference the Skia code that is used by Windows, Linux and Android.
|
| - ['exclude', 'rendering/RenderThemeChromiumSkia\\.cpp$'],
|
| - # RenderThemeChromiumFontProvider is used by RenderThemeChromiumSkia.
|
| - ['exclude', 'rendering/RenderThemeChromiumFontProvider\\.cpp'],
|
| - ['exclude', 'rendering/RenderThemeChromiumFontProvider\\.h'],
|
| - ],
|
| - },{ # OS!="mac"
|
| - 'sources/': [['exclude', 'Mac\\.(cpp|mm?)$']]
|
| - }],
|
| - ['OS == "android" and target_arch == "ia32" and gcc_version == 46', {
|
| - # Due to a bug in gcc 4.6 in android NDK, we get warnings about uninitialized variable.
|
| - 'cflags': ['-Wno-uninitialized'],
|
| - }],
|
| - ['OS != "linux"', {
|
| - 'sources/': [
|
| - ['exclude', 'Linux\\.cpp$'],
|
| - ],
|
| - }],
|
| - ['toolkit_uses_gtk == 0', {
|
| - 'sources/': [
|
| - ['exclude', 'Gtk\\.cpp$'],
|
| - ],
|
| - }],
|
| - ['OS=="android"', {
|
| - 'sources/': [
|
| - ['include', 'rendering/RenderThemeChromiumFontProviderLinux\\.cpp$'],
|
| - ['include', 'rendering/RenderThemeChromiumDefault\\.cpp$'],
|
| - ],
|
| - },{ # OS!="android"
|
| - 'sources/': [
|
| - ['exclude', 'Android\\.cpp$'],
|
| - ],
|
| - }],
|
| - ],
|
| - },
|
| - {
|
| - 'target_name': 'webcore_remaining',
|
| - 'type': 'static_library',
|
| - 'dependencies': [
|
| - '<(DEPTH)/third_party/v8-i18n/build/all.gyp:v8-i18n',
|
| - 'webcore_prerequisites',
|
| - ],
|
| - 'sources': [
|
| - '<@(webcore_files)',
|
| - ],
|
| - 'sources/': [
|
| - ['exclude', 'rendering/'],
|
| -
|
| - # FIXME: Figure out how to store these patterns in a variable.
|
| - ['exclude', '(cf|cg|mac|opentype|svg|win)/'],
|
| - ['exclude', '(?<!Chromium)(CF|CG|Mac|OpenType|Win)\\.(cpp|mm?)$'],
|
| - ],
|
| - 'conditions': [
|
| - # Shard this taret into parts to work around linker limitations.
|
| - # on link time code generation builds.
|
| - ['OS=="win" and buildtype=="Official"', {
|
| - 'msvs_shard': 19,
|
| - }],
|
| - ['OS != "linux"', {
|
| - 'sources/': [
|
| - ['exclude', 'Linux\\.cpp$'],
|
| - ],
|
| - }],
|
| - ['toolkit_uses_gtk == 0', {
|
| - 'sources/': [
|
| - ['exclude', 'Gtk\\.cpp$'],
|
| - ],
|
| - }],
|
| - ['OS=="android"', {
|
| - 'cflags': [
|
| - # WebCore does not work with strict aliasing enabled.
|
| - # https://bugs.webkit.org/show_bug.cgi?id=25864
|
| - '-fno-strict-aliasing',
|
| - ],
|
| - }, { # OS!="android"
|
| - 'sources/': [['exclude', 'Android\\.cpp$']]
|
| - }],
|
| - ['OS!="mac"', {
|
| - 'sources/': [['exclude', 'Mac\\.(cpp|mm?)$']]
|
| - }],
|
| - ],
|
| - # Disable c4267 warnings until we fix size_t to int truncations.
|
| - 'msvs_disabled_warnings': [ 4267, 4334, ],
|
| - },
|
| - {
|
| - 'target_name': 'webcore',
|
| - 'type': 'none',
|
| - 'dependencies': [
|
| - 'webcore_dom',
|
| - 'webcore_html',
|
| - 'webcore_platform',
|
| - 'webcore_platform_geometry',
|
| - 'webcore_remaining',
|
| - 'webcore_rendering',
|
| - 'webcore_svg',
|
| - # Exported.
|
| - 'webcore_derived',
|
| - '../../wtf/wtf.gyp:wtf',
|
| - '<(DEPTH)/build/temp_gyp/googleurl.gyp:googleurl',
|
| - '<(DEPTH)/skia/skia.gyp:skia',
|
| - '<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
|
| - '<(DEPTH)/third_party/qcms/qcms.gyp:qcms',
|
| - '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
|
| - ],
|
| - 'export_dependent_settings': [
|
| - '../../wtf/wtf.gyp:wtf',
|
| - 'webcore_derived',
|
| - '<(DEPTH)/build/temp_gyp/googleurl.gyp:googleurl',
|
| - '<(DEPTH)/skia/skia.gyp:skia',
|
| - '<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
|
| - '<(DEPTH)/third_party/qcms/qcms.gyp:qcms',
|
| - '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
|
| - ],
|
| - 'direct_dependent_settings': {
|
| - 'include_dirs': [
|
| - '<@(webcore_include_dirs)',
|
| - ],
|
| - },
|
| - 'conditions': [
|
| - ['target_arch=="arm"', {
|
| - 'dependencies': [
|
| - 'webcore_arm_neon',
|
| - ],
|
| - }],
|
| - ['OS=="mac"', {
|
| - 'direct_dependent_settings': {
|
| - 'include_dirs': [
|
| - '../../WebKit/mac/WebCoreSupport',
|
| - ],
|
| - },
|
| - }],
|
| - ['OS=="linux" and "WTF_USE_WEBAUDIO_IPP=1" in feature_defines', {
|
| - 'link_settings': {
|
| - 'ldflags': [
|
| - '<!@(pkg-config --libs-only-L ipp)',
|
| - ],
|
| - 'libraries': [
|
| - '-lipps -lippcore',
|
| - ],
|
| - },
|
| - }],
|
| - # Use IPP static libraries for x86 Android.
|
| - ['OS=="android" and "WTF_USE_WEBAUDIO_IPP=1" in feature_defines', {
|
| - 'link_settings': {
|
| - 'libraries': [
|
| - '<!@(pkg-config --libs ipp|sed s/-L//)/libipps_l.a',
|
| - '<!@(pkg-config --libs ipp|sed s/-L//)/libippcore_l.a',
|
| - ]
|
| - },
|
| - }],
|
| - ],
|
| - },
|
| - {
|
| - 'target_name': 'webcore_test_support',
|
| - 'type': 'static_library',
|
| - 'dependencies': [
|
| - '../../config.gyp:config',
|
| - 'webcore',
|
| - ],
|
| - 'defines': [
|
| - 'WEBKIT_IMPLEMENTATION=1',
|
| - ],
|
| - 'include_dirs': [
|
| - '<(bindings_dir)/v8', # FIXME: Remove once http://crbug.com/236119 is fixed.
|
| - '../testing',
|
| - '../testing/v8',
|
| - ],
|
| - 'sources': [
|
| - '<@(webcore_test_support_files)',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings/V8MallocStatistics.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings/V8MallocStatistics.h',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings/V8TypeConversions.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings/V8TypeConversions.h',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings/V8Internals.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings/V8Internals.h',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings/V8InternalSettings.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings/V8InternalSettings.h',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings/V8InternalSettingsGenerated.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings/V8InternalSettingsGenerated.h',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webcore/bindings/V8InternalRuntimeFlags.cpp',
|
| - '<(SHARED_INTERMEDIATE_DIR)/webkit/bindings/V8InternalRuntimeFlags.h',
|
| - ],
|
| - 'sources/': [
|
| - ['exclude', 'testing/js'],
|
| - ],
|
| - },
|
| - ], # targets
|
| -}
|
|
|