OLD | NEW |
(Empty) | |
| 1 # |
| 2 # Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 # |
| 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are |
| 6 # met: |
| 7 # |
| 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above |
| 11 # copyright notice, this list of conditions and the following disclaimer |
| 12 # in the documentation and/or other materials provided with the |
| 13 # distribution. |
| 14 # * Neither the name of Google Inc. nor the names of its |
| 15 # contributors may be used to endorse or promote products derived from |
| 16 # this software without specific prior written permission. |
| 17 # |
| 18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 # |
| 30 |
| 31 { |
| 32 'includes': [ |
| 33 # FIXME: change to ../features.gypi once upstreamed to WebKit/chromium/api. |
| 34 '../../third_party/WebKit/WebKit/chromium/features.gypi', |
| 35 ], |
| 36 'variables': { |
| 37 # We can't turn on warnings on Windows and Linux until we upstream the |
| 38 # WebKit API. |
| 39 'conditions': [ |
| 40 ['OS=="mac"', { |
| 41 'chromium_code': 1, |
| 42 }], |
| 43 ], |
| 44 }, |
| 45 'targets': [ |
| 46 { |
| 47 'target_name': 'webkit_api', |
| 48 'type': '<(library)', |
| 49 'msvs_guid': '5ECEC9E5-8F23-47B6-93E0-C3B328B3BE65', |
| 50 'dependencies': [ |
| 51 #FIXME: change to ../../WebCore/WebCore.gyp/WebCore.gyp:webcore once upstreamed. |
| 52 '../../third_party/WebKit/WebCore/WebCore.gyp/WebCore.gyp:webcore', |
| 53 ], |
| 54 'include_dirs': [ |
| 55 'public', |
| 56 'src', |
| 57 ], |
| 58 'defines': [ |
| 59 'WEBKIT_IMPLEMENTATION', |
| 60 ], |
| 61 'sources': [ |
| 62 'public/gtk/WebInputEventFactory.h', |
| 63 'public/linux/WebFontRendering.h', |
| 64 'public/x11/WebScreenInfoFactory.h', |
| 65 'public/mac/WebInputEventFactory.h', |
| 66 'public/mac/WebScreenInfoFactory.h', |
| 67 'public/WebAccessibilityObject.h', |
| 68 'public/WebAccessibilityRole.h', |
| 69 'public/WebApplicationCacheHost.h', |
| 70 'public/WebApplicationCacheHostClient.h', |
| 71 'public/WebBindings.h', |
| 72 'public/WebCache.h', |
| 73 'public/WebCanvas.h', |
| 74 'public/WebClipboard.h', |
| 75 'public/WebColor.h', |
| 76 'public/WebColorName.h', |
| 77 'public/WebCommon.h', |
| 78 'public/WebCompositionCommand.h', |
| 79 'public/WebConsoleMessage.h', |
| 80 'public/WebContextMenuData.h', |
| 81 'public/WebCookie.h', |
| 82 'public/WebCrossOriginPreflightResultCache.h', |
| 83 'public/WebCString.h', |
| 84 'public/WebCursorInfo.h', |
| 85 'public/WebData.h', |
| 86 'public/WebDatabase.h', |
| 87 'public/WebDatabaseObserver.h', |
| 88 'public/WebDataSource.h', |
| 89 'public/WebDevToolsAgent.h', |
| 90 'public/WebDevToolsAgentClient.h', |
| 91 'public/WebDevToolsFrontend.h', |
| 92 'public/WebDevToolsFrontendClient.h', |
| 93 'public/WebDragData.h', |
| 94 'public/WebEditingAction.h', |
| 95 'public/WebFileChooserCompletion.h', |
| 96 'public/WebFindOptions.h', |
| 97 'public/WebFrame.h', |
| 98 'public/WebFrameClient.h', |
| 99 'public/WebFontCache.h', |
| 100 'public/WebForm.h', |
| 101 'public/WebHistoryItem.h', |
| 102 'public/WebHTTPBody.h', |
| 103 'public/WebImage.h', |
| 104 'public/WebInputEvent.h', |
| 105 'public/WebKit.h', |
| 106 'public/WebKitClient.h', |
| 107 'public/WebLocalizedString.h', |
| 108 'public/WebMediaPlayer.h', |
| 109 'public/WebMediaPlayerAction.h', |
| 110 'public/WebMediaPlayerClient.h', |
| 111 'public/WebMessagePortChannel.h', |
| 112 'public/WebMessagePortChannelClient.h', |
| 113 'public/WebMimeRegistry.h', |
| 114 'public/WebNavigationType.h', |
| 115 'public/WebNode.h', |
| 116 'public/WebNonCopyable.h', |
| 117 'public/WebNotification.h', |
| 118 'public/WebNotificationPresenter.h', |
| 119 'public/WebNotificationPermissionCallback.h', |
| 120 'public/WebPlugin.h', |
| 121 'public/WebPluginContainer.h', |
| 122 'public/WebPluginListBuilder.h', |
| 123 'public/WebPoint.h', |
| 124 'public/WebPopupMenu.h', |
| 125 'public/WebPopupMenuInfo.h', |
| 126 'public/WebRange.h', |
| 127 'public/WebRect.h', |
| 128 'public/WebRuntimeFeatures.h', |
| 129 'public/WebScreenInfo.h', |
| 130 'public/WebScriptController.h', |
| 131 'public/WebScriptSource.h', |
| 132 'public/WebSearchableFormData.h', |
| 133 'public/WebSecurityOrigin.h', |
| 134 'public/WebSecurityPolicy.h', |
| 135 'public/WebSettings.h', |
| 136 'public/WebSize.h', |
| 137 'public/WebSocketStreamError.h', |
| 138 'public/WebSocketStreamHandle.h', |
| 139 'public/WebSocketStreamHandleClient.h', |
| 140 'public/WebStorageArea.h', |
| 141 'public/WebStorageEventDispatcher.h', |
| 142 'public/WebStorageNamespace.h', |
| 143 'public/WebString.h', |
| 144 'public/WebTextAffinity.h', |
| 145 'public/WebTextDirection.h', |
| 146 'public/WebURL.h', |
| 147 'public/WebURLError.h', |
| 148 'public/WebURLLoader.h', |
| 149 'public/WebURLLoaderClient.h', |
| 150 'public/WebURLRequest.h', |
| 151 'public/WebURLResponse.h', |
| 152 'public/WebVector.h', |
| 153 'public/WebView.h', |
| 154 'public/WebViewClient.h', |
| 155 'public/WebWidget.h', |
| 156 'public/WebWidgetClient.h', |
| 157 'public/WebWorker.h', |
| 158 'public/WebWorkerClient.h', |
| 159 'public/win/WebInputEventFactory.h', |
| 160 'public/win/WebSandboxSupport.h', |
| 161 'public/win/WebScreenInfoFactory.h', |
| 162 'public/win/WebScreenInfoFactory.h', |
| 163 'src/ApplicationCacheHost.cpp', |
| 164 'src/AssertMatchingEnums.cpp', |
| 165 'src/AutocompletePopupMenuClient.cpp', |
| 166 'src/AutocompletePopupMenuClient.h', |
| 167 'src/BackForwardListClientImpl.cpp', |
| 168 'src/BackForwardListClientImpl.h', |
| 169 'src/ChromeClientImpl.cpp', |
| 170 'src/ChromeClientImpl.h', |
| 171 'src/ChromiumBridge.cpp', |
| 172 'src/ChromiumCurrentTime.cpp', |
| 173 'src/ChromiumThreading.cpp', |
| 174 'src/ContextMenuClientImpl.cpp', |
| 175 'src/ContextMenuClientImpl.h', |
| 176 'src/DOMUtilitiesPrivate.cpp', |
| 177 'src/DOMUtilitiesPrivate.h', |
| 178 'src/DragClientImpl.cpp', |
| 179 'src/DragClientImpl.h', |
| 180 'src/EditorClientImpl.cpp', |
| 181 'src/EditorClientImpl.h', |
| 182 'src/FrameLoaderClientImpl.cpp', |
| 183 'src/FrameLoaderClientImpl.h', |
| 184 'src/EmptyWebFrameClientImpl.h', |
| 185 'src/gtk/WebFontInfo.cpp', |
| 186 'src/gtk/WebFontInfo.h', |
| 187 'src/gtk/WebInputEventFactory.cpp', |
| 188 'src/InspectorClientImpl.cpp', |
| 189 'src/InspectorClientImpl.h', |
| 190 'src/linux/WebFontRendering.cpp', |
| 191 'src/x11/WebScreenInfoFactory.cpp', |
| 192 'src/mac/WebInputEventFactory.mm', |
| 193 'src/mac/WebScreenInfoFactory.mm', |
| 194 'src/LocalizedStrings.cpp', |
| 195 'src/MediaPlayerPrivateChromium.cpp', |
| 196 'src/NotificationPresenterImpl.h', |
| 197 'src/NotificationPresenterImpl.cpp', |
| 198 'src/PasswordAutocompleteListener.h', |
| 199 'src/PlatformMessagePortChannel.cpp', |
| 200 'src/PlatformMessagePortChannel.h', |
| 201 'src/ResourceHandle.cpp', |
| 202 'src/SharedWorkerRepository.cpp', |
| 203 'src/SocketStreamHandle.cpp', |
| 204 'src/StorageAreaProxy.cpp', |
| 205 'src/StorageAreaProxy.h', |
| 206 'src/StorageEventDispatcherChromium.cpp', |
| 207 'src/StorageEventDispatcherImpl.cpp', |
| 208 'src/StorageEventDispatcherImpl.h', |
| 209 'src/StorageNamespaceProxy.cpp', |
| 210 'src/StorageNamespaceProxy.h', |
| 211 'src/TemporaryGlue.h', |
| 212 'src/WebAccessibilityObject.cpp', |
| 213 'src/WebBindings.cpp', |
| 214 'src/WebCache.cpp', |
| 215 'src/WebColor.cpp', |
| 216 'src/WebCrossOriginPreflightResultCache.cpp', |
| 217 'src/WebCString.cpp', |
| 218 'src/WebCursorInfo.cpp', |
| 219 'src/WebData.cpp', |
| 220 'src/WebDatabase.cpp', |
| 221 'src/WebDataSourceImpl.cpp', |
| 222 'src/WebDataSourceImpl.h', |
| 223 'src/WebDragData.cpp', |
| 224 'src/WebFileChooserCompletionImpl.cpp', |
| 225 'src/WebFileChooserCompletionImpl.h', |
| 226 'src/WebFontCache.cpp', |
| 227 'src/WebForm.cpp', |
| 228 'src/WebFrameImpl.cpp', |
| 229 'src/WebFrameImpl.h', |
| 230 'src/WebHistoryItem.cpp', |
| 231 'src/WebHTTPBody.cpp', |
| 232 'src/WebImageCG.cpp', |
| 233 'src/WebImageSkia.cpp', |
| 234 'src/WebInputEvent.cpp', |
| 235 'src/WebInputEventConversion.cpp', |
| 236 'src/WebInputEventConversion.h', |
| 237 'src/WebKit.cpp', |
| 238 'src/WebMediaPlayerClientImpl.cpp', |
| 239 'src/WebMediaPlayerClientImpl.h', |
| 240 'src/WebNode.cpp', |
| 241 'src/WebNotification.cpp', |
| 242 'src/WebPluginContainerImpl.h', |
| 243 'src/WebPluginContainerImpl.cpp', |
| 244 'src/WebPluginListBuilderImpl.cpp', |
| 245 'src/WebPluginListBuilderImpl.h', |
| 246 'src/WebPluginLoadObserver.cpp', |
| 247 'src/WebPluginLoadObserver.h', |
| 248 'src/WebPopupMenuImpl.cpp', |
| 249 'src/WebPopupMenuImpl.h', |
| 250 'src/WebRange.cpp', |
| 251 'src/WebRuntimeFeatures.cpp', |
| 252 'src/WebScriptController.cpp', |
| 253 'src/WebSearchableFormData.cpp', |
| 254 'src/WebSecurityOrigin.cpp', |
| 255 'src/WebSecurityPolicy.cpp', |
| 256 'src/WebSettingsImpl.cpp', |
| 257 'src/WebSettingsImpl.h', |
| 258 'src/WebStorageAreaImpl.cpp', |
| 259 'src/WebStorageAreaImpl.h', |
| 260 'src/WebStorageEventDispatcherImpl.cpp', |
| 261 'src/WebStorageEventDispatcherImpl.h', |
| 262 'src/WebStorageNamespaceImpl.cpp', |
| 263 'src/WebStorageNamespaceImpl.h', |
| 264 'src/WebString.cpp', |
| 265 'src/WebURL.cpp', |
| 266 'src/WebURLRequest.cpp', |
| 267 'src/WebURLRequestPrivate.h', |
| 268 'src/WebURLResponse.cpp', |
| 269 'src/WebURLResponsePrivate.h', |
| 270 'src/WebURLError.cpp', |
| 271 'src/WebViewImpl.cpp', |
| 272 'src/WebViewImpl.h', |
| 273 'src/WebWorkerClientImpl.cpp', |
| 274 'src/WebWorkerClientImpl.h', |
| 275 'src/WebWorkerImpl.cpp', |
| 276 'src/WebWorkerImpl.h', |
| 277 'src/WrappedResourceRequest.h', |
| 278 'src/WrappedResourceResponse.h', |
| 279 'src/win/WebInputEventFactory.cpp', |
| 280 'src/win/WebScreenInfoFactory.cpp', |
| 281 ], |
| 282 'conditions': [ |
| 283 ['OS=="linux" or OS=="freebsd"', { |
| 284 'dependencies': [ |
| 285 # FIXME: correct path once upstreamed |
| 286 '../build/linux/system.gyp:fontconfig', |
| 287 '../build/linux/system.gyp:gtk', |
| 288 '../build/linux/system.gyp:x11', |
| 289 ], |
| 290 'include_dirs': [ |
| 291 'public/x11', |
| 292 'public/gtk', |
| 293 'public/linux', |
| 294 ], |
| 295 }, { # else: OS!="linux" and OS!="freebsd" |
| 296 'sources/': [ |
| 297 ['exclude', '/gtk/'], |
| 298 ['exclude', '/x11/'], |
| 299 ['exclude', '/linux/'], |
| 300 ], |
| 301 }], |
| 302 ['OS=="mac"', { |
| 303 'include_dirs': [ |
| 304 'public/mac', |
| 305 ], |
| 306 'sources/': [ |
| 307 ['exclude', 'Skia\\.cpp$'], |
| 308 ], |
| 309 }, { # else: OS!="mac" |
| 310 'sources/': [ |
| 311 ['exclude', '/mac/'], |
| 312 ['exclude', 'CG\\.cpp$'], |
| 313 ], |
| 314 }], |
| 315 ['OS=="win"', { |
| 316 'include_dirs': [ |
| 317 'public/win', |
| 318 ], |
| 319 }, { # else: OS!="win" |
| 320 'sources/': [['exclude', '/win/']], |
| 321 }], |
| 322 ['"ENABLE_3D_CANVAS=1" in feature_defines', { |
| 323 # Conditionally compile in GLEW and our GraphicsContext3D implementation. |
| 324 'sources+': [ |
| 325 'src/GraphicsContext3D.cpp', |
| 326 # FIXME: correct path once upstreamed |
| 327 '../../third_party/glew/src/glew.c' |
| 328 ], |
| 329 'include_dirs+': [ |
| 330 # FIXME: correct path once upstreamed |
| 331 '../../third_party/glew/include' |
| 332 ], |
| 333 'defines+': [ |
| 334 'GLEW_STATIC=1', |
| 335 'GLEW_NO_GLU=1', |
| 336 ], |
| 337 'conditions': [ |
| 338 ['OS=="win"', { |
| 339 'link_settings': { |
| 340 'libraries': [ |
| 341 '-lopengl32.lib', |
| 342 ], |
| 343 }, |
| 344 }], |
| 345 ['OS=="mac"', { |
| 346 'link_settings': { |
| 347 'libraries': [ |
| 348 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', |
| 349 ], |
| 350 }, |
| 351 }], |
| 352 ], |
| 353 }], |
| 354 ], |
| 355 }, |
| 356 ], # targets |
| 357 } |
| 358 |
| 359 # Local Variables: |
| 360 # tab-width:2 |
| 361 # indent-tabs-mode:nil |
| 362 # End: |
| 363 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |