| OLD | NEW |
| 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'includes': { |
| 7 # TODO(yaar) Include upstream (webkit.org) features.gypi here, so |
| 8 # that this file inherits upstream feature_defines. |
| 9 }, |
| 6 'variables': { | 10 'variables': { |
| 7 'feature_defines': [ | 11 'feature_defines': [ |
| 8 'ENABLE_CHANNEL_MESSAGING=1', | 12 'ENABLE_CHANNEL_MESSAGING=1', |
| 9 'ENABLE_DATABASE=1', | 13 'ENABLE_DATABASE=1', |
| 10 'ENABLE_DATAGRID=0', | 14 'ENABLE_DATAGRID=0', |
| 11 'ENABLE_OFFLINE_WEB_APPLICATIONS=1', | 15 'ENABLE_OFFLINE_WEB_APPLICATIONS=1', |
| 12 'ENABLE_DASHBOARD_SUPPORT=0', | 16 'ENABLE_DASHBOARD_SUPPORT=0', |
| 13 'ENABLE_DOM_STORAGE=1', | 17 'ENABLE_DOM_STORAGE=1', |
| 14 'ENABLE_JAVASCRIPT_DEBUGGER=0', | 18 'ENABLE_JAVASCRIPT_DEBUGGER=0', |
| 15 'ENABLE_JSC_MULTIPLE_THREADS=0', | 19 'ENABLE_JSC_MULTIPLE_THREADS=0', |
| 16 'ENABLE_ICONDATABASE=0', | 20 'ENABLE_ICONDATABASE=0', |
| 17 'ENABLE_NOTIFICATIONS=0', | 21 'ENABLE_NOTIFICATIONS=0', |
| 18 'ENABLE_XSLT=1', | 22 'ENABLE_XSLT=1', |
| 19 'ENABLE_XPATH=1', | 23 'ENABLE_XPATH=1', |
| 20 'ENABLE_SHARED_WORKERS=0', | 24 'ENABLE_SHARED_WORKERS=0', |
| 21 'ENABLE_SVG=1', | 25 'ENABLE_SVG=1', |
| 22 'ENABLE_SVG_ANIMATION=1', | 26 'ENABLE_SVG_ANIMATION=1', |
| 23 'ENABLE_SVG_AS_IMAGE=1', | 27 'ENABLE_SVG_AS_IMAGE=1', |
| 24 'ENABLE_SVG_USE=1', | 28 'ENABLE_SVG_USE=1', |
| 25 'ENABLE_SVG_FOREIGN_OBJECT=1', | 29 'ENABLE_SVG_FOREIGN_OBJECT=1', |
| 26 'ENABLE_SVG_FONTS=1', | 30 'ENABLE_SVG_FONTS=1', |
| 27 'ENABLE_VIDEO=1', | 31 'ENABLE_VIDEO=1', |
| 28 'ENABLE_WORKERS=1', | 32 'ENABLE_WORKERS=1', |
| 29 ], | 33 ], |
| 30 'non_feature_defines': [ | 34 }, |
| 31 'BUILDING_CHROMIUM__=1', | |
| 32 'USE_GOOGLE_URL_LIBRARY=1', | |
| 33 'USE_SYSTEM_MALLOC=1', | |
| 34 'WEBCORE_NAVIGATOR_VENDOR="Google Inc."', | |
| 35 ], | |
| 36 'conditions': [ | |
| 37 ['OS=="linux"', { | |
| 38 'non_feature_defines': [ | |
| 39 # Mozilla on Linux effectively uses uname -sm, but when running | |
| 40 # 32-bit x86 code on an x86_64 processor, it uses | |
| 41 # "Linux i686 (x86_64)". Matching that would require making a | |
| 42 # run-time determination. | |
| 43 'WEBCORE_NAVIGATOR_PLATFORM="Linux i686"', | |
| 44 ], | |
| 45 }], | |
| 46 ['OS=="mac"', { | |
| 47 'non_feature_defines': [ | |
| 48 # Ensure that only Leopard features are used when doing the Mac build. | |
| 49 'BUILDING_ON_LEOPARD', | |
| 50 # Match Safari and Mozilla on Mac x86. | |
| 51 'WEBCORE_NAVIGATOR_PLATFORM="MacIntel"', | |
| 52 | |
| 53 # Chromium's version of WebCore includes the following Objective-C | |
| 54 # classes. The system-provided WebCore framework may also provide | |
| 55 # these classes. Because of the nature of Objective-C binding | |
| 56 # (dynamically at runtime), it's possible for the Chromium-provided | |
| 57 # versions to interfere with the system-provided versions. This may | |
| 58 # happen when a system framework attempts to use WebCore.framework, | |
| 59 # such as when converting an HTML-flavored string to an | |
| 60 # NSAttributedString. The solution is to force Objective-C class | |
| 61 # names that would conflict to use alternate names. | |
| 62 | |
| 63 # TODO(mark) This list will hopefully shrink but may also grow. | |
| 64 # Periodically run: | |
| 65 # nm libwebcore.a | grep -E '[atsATS] ([+-]\[|\.objc_class_name)' | |
| 66 # and make sure that everything listed there has the alternate | |
| 67 # ChromiumWebCoreObjC name, and that nothing extraneous is listed | |
| 68 # here. If all Objective-C can be eliminated from Chromium's WebCore | |
| 69 # library, these defines should be removed entirely. | |
| 70 # TODO(yaar) move these out of command line defines. | |
| 71 'ScrollbarPrefsObserver=ChromiumWebCoreObjCScrollbarPrefsObserver', | |
| 72 'WebCoreRenderThemeNotificationObserver=ChromiumWebCoreObjCWebCoreRend
erThemeNotificationObserver', | |
| 73 'WebFontCache=ChromiumWebCoreObjCWebFontCache', | |
| 74 | |
| 75 # Use USE_NEW_THEME on Mac. | |
| 76 'WTF_USE_NEW_THEME=1', | |
| 77 ], | |
| 78 }], | |
| 79 ['OS=="win"', { | |
| 80 'non_feature_defines': [ | |
| 81 'CRASH=__debugbreak', | |
| 82 # Match Safari and Mozilla on Windows. | |
| 83 'WEBCORE_NAVIGATOR_PLATFORM="Win32"', | |
| 84 ], | |
| 85 }], | |
| 86 ], | |
| 87 }, # variables | |
| 88 } | 35 } |
| OLD | NEW |