Changeset 55152 in webkit


Ignore:
Timestamp:
Feb 23, 2010 7:46:25 AM (14 years ago)
Author:
evan@chromium.org
Message:

2010-02-23 Evan Martin <evan@chromium.org>

Reviewed by Jeremy Orlow.

[chromium] Allow building without SVG
https://bugs.webkit.org/show_bug.cgi?id=31522

  • WebCore.gyp/WebCore.gyp, WebCore.gypi: test enable_svg flag.
  • bindings/v8/custom/V8SVGDocumentCustom.cpp, bindings/v8/custom/V8SVGPathSegCustom.cpp: test ENABLE(SVG).
Location:
trunk/WebCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r55150 r55152  
     12010-02-23  Evan Martin  <evan@chromium.org>
     2
     3        Reviewed by Jeremy Orlow.
     4
     5        [chromium] Allow building without SVG
     6        https://bugs.webkit.org/show_bug.cgi?id=31522
     7
     8        * WebCore.gyp/WebCore.gyp, WebCore.gypi: test enable_svg flag.
     9        * bindings/v8/custom/V8SVGDocumentCustom.cpp,
     10          bindings/v8/custom/V8SVGPathSegCustom.cpp: test ENABLE(SVG).
     11
    1122010-02-23  Leandro Pereira  <leandro@profusion.mobi>
    213
  • trunk/WebCore/WebCore.gyp/WebCore.gyp

    r54907 r55152  
    102102    # size of the binary and increasing the speed of gdb.  gcc only.
    103103    'remove_webcore_debug_symbols%': 0,
    104  
     104
     105    # If set to 0, doesn't build SVG support, reducing the size of the
     106    # binary and increasing the speed of gdb.
     107    'enable_svg%': 1,
     108
    105109    'webcore_include_dirs': [
    106110      '../',
     
    217221        '../platform/ColorData.gperf',
    218222
    219         # idl rule
     223        # idl rules except for svg (added below)
    220224        '<@(webcore_bindings_idl_files)',
     225      ],
     226      'conditions': [
     227        ['enable_svg!=0', {
     228          'sources': [
     229            '<@(webcore_bindings_idl_files)',
     230          ],
     231        }],
    221232      ],
    222233      'sources!': [
     
    584595        '<(SHARED_INTERMEDIATE_DIR)/webkit/HTMLElementFactory.cpp',
    585596        '<(SHARED_INTERMEDIATE_DIR)/webkit/HTMLNames.cpp',
    586         '<(SHARED_INTERMEDIATE_DIR)/webkit/SVGElementFactory.cpp',
    587         '<(SHARED_INTERMEDIATE_DIR)/webkit/SVGNames.cpp',
    588597        '<(SHARED_INTERMEDIATE_DIR)/webkit/UserAgentStyleSheetsData.cpp',
    589598        '<(SHARED_INTERMEDIATE_DIR)/webkit/V8HTMLElementWrapperFactory.cpp',
    590         '<(SHARED_INTERMEDIATE_DIR)/webkit/V8SVGElementWrapperFactory.cpp',
    591599        '<(SHARED_INTERMEDIATE_DIR)/webkit/XLinkNames.cpp',
    592600        '<(SHARED_INTERMEDIATE_DIR)/webkit/XMLNSNames.cpp',
     
    602610            '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
    603611          ],
     612        }],
     613        ['enable_svg!=0', {
     614          'sources': [
     615            '<(SHARED_INTERMEDIATE_DIR)/webkit/SVGElementFactory.cpp',
     616            '<(SHARED_INTERMEDIATE_DIR)/webkit/SVGNames.cpp',
     617            '<(SHARED_INTERMEDIATE_DIR)/webkit/V8SVGElementWrapperFactory.cpp',
     618         ],
    604619        }],
    605620        ['OS=="mac"', {
     
    675690        ['exclude', '(?<!Chromium)(Android|Cairo|CF|CG|Curl|Gtk|Linux|Mac|OpenType|POSIX|Posix|Qt|Safari|Soup|Symbian|Win|Wx)\\.(cpp|mm?)$'],
    676691        ['include', 'platform/graphics/opentype/OpenTypeSanitizer\\.cpp$'],
    677         # Exclude everything in svg/ directly but not in subdirectories.
    678         # Everything in svg/*.cpp is included in svg/SVGAllInOne.cpp.
    679         ['exclude', 'svg/[^/]+\\.cpp$'],
    680         ['include', 'svg/SVGAllInOne\\.cpp$'],
    681692
    682693        # JSC-only.
     
    819830          ],
    820831        }],
     832        ['enable_svg!=0', {
     833          'sources/': [
     834            ['exclude', 'svg/[^/]+\\.cpp$'],
     835            ['include', 'svg/SVGAllInOne\\.cpp$'],
     836          ],
     837        }, {  # svg disabled
     838          'sources/': [
     839            ['exclude', 'svg/'],
     840            ['exclude', 'css/svg/'],
     841            ['exclude', 'rendering/style/SVG'],
     842            ['exclude', 'rendering/RenderSVG'],
     843            ['exclude', 'rendering/SVG'],
     844          ],
     845        }],
    821846        ['OS=="linux" or OS=="freebsd"', {
    822847          'dependencies': [
  • trunk/WebCore/WebCore.gypi

    r55142 r55152  
    22    'variables': {
    33        'webcore_bindings_idl_files': [
    4 
    5             #IDL files
    64            'css/CSSCharsetRule.idl',
    75            'css/CSSFontFaceRule.idl',
     
    225223            'storage/Storage.idl',
    226224            'storage/StorageEvent.idl',
     225            'websockets/WebSocket.idl',
     226            'workers/AbstractWorker.idl',
     227            'workers/DedicatedWorkerContext.idl',
     228            'workers/SharedWorker.idl',
     229            'workers/SharedWorkerContext.idl',
     230            'workers/Worker.idl',
     231            'workers/WorkerContext.idl',
     232            'workers/WorkerLocation.idl',
     233            'xml/DOMParser.idl',
     234            'xml/XMLHttpRequest.idl',
     235            'xml/XMLHttpRequestException.idl',
     236            'xml/XMLHttpRequestProgressEvent.idl',
     237            'xml/XMLHttpRequestUpload.idl',
     238            'xml/XMLSerializer.idl',
     239            'xml/XPathEvaluator.idl',
     240            'xml/XPathException.idl',
     241            'xml/XPathExpression.idl',
     242            'xml/XPathNSResolver.idl',
     243            'xml/XPathResult.idl',
     244            'xml/XSLTProcessor.idl',
     245        ],
     246        'webcore_bindings_idl_svg_files': [
    227247            'svg/ElementTimeControl.idl',
    228248            'svg/SVGAElement.idl',
     
    371391            'svg/SVGZoomAndPan.idl',
    372392            'svg/SVGZoomEvent.idl',
    373             'websockets/WebSocket.idl',
    374             'workers/AbstractWorker.idl',
    375             'workers/DedicatedWorkerContext.idl',
    376             'workers/SharedWorker.idl',
    377             'workers/SharedWorkerContext.idl',
    378             'workers/Worker.idl',
    379             'workers/WorkerContext.idl',
    380             'workers/WorkerLocation.idl',
    381             'xml/DOMParser.idl',
    382             'xml/XMLHttpRequest.idl',
    383             'xml/XMLHttpRequestException.idl',
    384             'xml/XMLHttpRequestProgressEvent.idl',
    385             'xml/XMLHttpRequestUpload.idl',
    386             'xml/XMLSerializer.idl',
    387             'xml/XPathEvaluator.idl',
    388             'xml/XPathException.idl',
    389             'xml/XPathExpression.idl',
    390             'xml/XPathNSResolver.idl',
    391             'xml/XPathResult.idl',
    392             'xml/XSLTProcessor.idl',
    393393        ],
    394394        'webcore_files': [
  • trunk/WebCore/bindings/v8/custom/V8SVGDocumentCustom.cpp

    r54581 r55152  
    3030
    3131#include "config.h"
     32
     33#if ENABLE(SVG)
    3234#include "V8SVGDocument.h"
    3335
     
    5254
    5355} // namespace WebCore
     56
     57#endif
  • trunk/WebCore/bindings/v8/custom/V8SVGPathSegCustom.cpp

    r54153 r55152  
    3030
    3131#include "config.h"
     32
     33#if ENABLE(SVG)
    3234#include "V8SVGPathSeg.h"
    3335
     
    105107
    106108} // namespace WebCore
     109
     110#endif
Note: See TracChangeset for help on using the changeset viewer.