2 # Copyright (C) 2011 Google Inc. All rights reserved.
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
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
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.
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.
34 '../../WebCore/WebCore.gypi',
40 # Location of the chromium src directory and target type is different
41 # if webkit is built inside chromium or as standalone project.
42 ['inside_chromium_build==0', {
43 # Webkit is being built outside of the full chromium project.
44 # e.g. via build-webkit --chromium
45 'chromium_src_dir': '../../WebKit/chromium',
47 # WebKit is checked out in src/chromium/third_party/WebKit
48 'chromium_src_dir': '../../../../..',
51 'ahem_path': '../../../Tools/DumpRenderTree/qt/fonts/AHEM____.TTF',
53 # If debug_devtools is set to 1, JavaScript files for DevTools are
54 # stored as is. Otherwise, a concatenated file is stored.
57 # List of DevTools source files, ordered by dependencies. It is used both
58 # for copying them to resource dir, and for generating 'devtools.html' file.
60 '<@(devtools_css_files)',
61 '<@(devtools_js_files)',
66 'target_name': 'webkit',
67 'type': 'static_library',
68 'variables': { 'enable_wexit_time_destructors': 1, },
70 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
71 '../../Platform/Platform.gyp/Platform.gyp:webkit_platform',
72 '<(chromium_src_dir)/skia/skia.gyp:skia',
73 '<(chromium_src_dir)/third_party/icu/icu.gyp:icuuc',
74 '<(chromium_src_dir)/third_party/npapi/npapi.gyp:npapi',
75 '<(chromium_src_dir)/third_party/angle/src/build_angle.gyp:translator_glsl',
76 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
78 'export_dependent_settings': [
79 '../../Platform/Platform.gyp/Platform.gyp:webkit_platform',
80 '<(chromium_src_dir)/skia/skia.gyp:skia',
81 '<(chromium_src_dir)/third_party/icu/icu.gyp:icuuc',
82 '<(chromium_src_dir)/third_party/npapi/npapi.gyp:npapi',
83 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
88 '<(chromium_src_dir)/third_party/angle/include',
89 '<(chromium_src_dir)/third_party/skia/include/utils',
92 'WEBKIT_IMPLEMENTATION=1',
95 '<@(webcore_platform_support_files)',
96 'public/WebAccessibilityNotification.h',
97 'public/WebAccessibilityObject.h',
98 'public/WebAccessibilityRole.h',
99 'public/WebAnimationController.h',
100 'public/WebApplicationCacheHostClient.h',
101 'public/WebArrayBuffer.h',
102 'public/WebAudioSourceProvider.h',
103 'public/WebAudioSourceProviderClient.h',
104 'public/WebAutofillClient.h',
105 'public/WebBatteryStatus.h',
106 'public/WebBatteryStatusClient.h',
107 'public/WebBindings.h',
110 'public/WebColorChooser.h',
111 'public/WebColorChooserClient.h',
112 'public/WebColorName.h',
113 'public/WebCommonWorkerClient.h',
114 'public/WebCompositionUnderline.h',
115 'public/WebCompositor.h',
116 'public/WebCompositorClient.h',
117 'public/WebCompositorInputHandler.h',
118 'public/WebCompositorInputHandlerClient.h',
119 'public/WebConsoleMessage.h',
120 'public/WebContentDetectionResult.h',
121 'public/WebContextMenuData.h',
122 'public/WebCrossOriginPreflightResultCache.h',
123 'public/WebCursorInfo.h',
124 'public/WebDOMEvent.h',
125 'public/WebDOMEventListener.h',
126 'public/WebDOMMessageEvent.h',
127 'public/WebDOMMouseEvent.h',
128 'public/WebDOMMutationEvent.h',
129 'public/WebDOMStringList.h',
130 'public/WebDataSource.h',
131 'public/WebDatabase.h',
132 'public/WebDatabaseObserver.h',
133 'public/WebDeliveredIntentClient.h',
134 'public/WebDevToolsAgent.h',
135 'public/WebDevToolsAgentClient.h',
136 'public/WebDevToolsFrontend.h',
137 'public/WebDevToolsFrontendClient.h',
138 'public/WebDeviceOrientation.h',
139 'public/WebDeviceOrientationClient.h',
140 'public/WebDeviceOrientationClientMock.h',
141 'public/WebDeviceOrientationController.h',
142 'public/WebDocument.h',
143 'public/WebDocumentType.h',
144 'public/WebEditingAction.h',
145 'public/WebElement.h',
146 'public/WebExceptionCode.h',
147 'public/WebExternalPopupMenu.h',
148 'public/WebExternalPopupMenuClient.h',
149 'public/WebFileChooserCompletion.h',
150 'public/WebFileChooserParams.h',
151 'public/WebFileError.h',
152 'public/WebFileSystemCallbacks.h',
153 'public/WebFileSystemEntry.h',
154 'public/WebFileWriter.h',
155 'public/WebFileWriterClient.h',
156 'public/WebFindOptions.h',
158 'public/WebFontCache.h',
159 'public/WebFontDescription.h',
160 'public/WebFormControlElement.h',
161 'public/WebFormElement.h',
163 'public/WebFrameClient.h',
164 'public/WebGeolocationClient.h',
165 'public/WebGeolocationClientMock.h',
166 'public/WebGeolocationController.h',
167 'public/WebGeolocationError.h',
168 'public/WebGeolocationPermissionRequest.h',
169 'public/WebGeolocationPermissionRequestManager.h',
170 'public/WebGeolocationPosition.h',
171 'public/WebGlyphCache.h',
172 'public/WebHelperPlugin.h',
173 'public/WebHistoryItem.h',
174 'public/WebHitTestResult.h',
175 'public/WebIDBCallbacks.h',
176 'public/WebIDBCursor.h',
177 'public/WebIDBDatabase.h',
178 'public/WebIDBDatabaseCallbacks.h',
179 'public/WebIDBDatabaseError.h',
180 'public/WebIDBDatabaseException.h',
181 'public/WebIDBFactory.h',
182 'public/WebIDBIndex.h',
183 'public/WebIDBKey.h',
184 'public/WebIDBKeyPath.h',
185 'public/WebIDBKeyRange.h',
186 'public/WebIDBMetadata.h',
187 'public/WebIDBObjectStore.h',
188 'public/WebIDBTransaction.h',
189 'public/WebIDBTransactionCallbacks.h',
190 'public/WebIconLoadingCompletion.h',
191 'public/WebIconURL.h',
192 'public/WebImageDecoder.h',
193 'public/WebInputElement.h',
194 'public/WebInputEvent.h',
195 'public/WebIntent.h',
196 'public/WebIntentRequest.h',
197 'public/WebIntentServiceInfo.h',
199 'public/WebLabelElement.h',
200 'public/WebMediaPlayer.h',
201 'public/WebMediaPlayerAction.h',
202 'public/WebMediaPlayerClient.h',
203 'public/WebMediaStreamRegistry.h',
204 'public/WebMenuItemInfo.h',
205 'public/WebNavigationType.h',
206 'public/WebNetworkStateNotifier.h',
208 'public/WebNodeCollection.h',
209 'public/WebNodeList.h',
210 'public/WebNotification.h',
211 'public/WebNotificationPermissionCallback.h',
212 'public/WebNotificationPresenter.h',
213 'public/WebOptionElement.h',
214 'public/WebPageOverlay.h',
215 'public/WebPagePopup.h',
216 'public/WebPageSerializer.h',
217 'public/WebPageSerializerClient.h',
218 'public/WebPageVisibilityState.h',
219 'public/WebPasswordFormData.h',
220 'public/WebPerformance.h',
221 'public/WebPermissionClient.h',
222 'public/WebPlugin.h',
223 'public/WebPluginAction.h',
224 'public/WebPluginContainer.h',
225 'public/WebPluginDocument.h',
226 'public/WebPluginListBuilder.h',
227 'public/WebPluginScrollbar.h',
228 'public/WebPluginScrollbarClient.h',
229 'public/WebPrintParams.h',
230 'public/WebPrintScalingOption.h',
231 'public/WebPopupMenu.h',
232 'public/WebPopupMenuInfo.h',
233 'public/WebPopupType.h',
234 'public/WebPrerendererClient.h',
236 'public/WebRegularExpression.h',
237 'public/WebRuntimeFeatures.h',
238 'public/WebScopedMicrotaskSuppression.h',
239 'public/WebScopedUserGesture.h',
240 'public/WebScreenInfo.h',
241 'public/WebScriptController.h',
242 'public/WebScriptSource.h',
243 'public/WebSearchableFormData.h',
244 'public/WebSecurityOrigin.h',
245 'public/WebSecurityPolicy.h',
246 'public/WebSelectElement.h',
247 'public/WebSettings.h',
248 'public/WebSharedWorkerClient.h',
249 'public/WebSharedWorker.h',
250 'public/WebSharedWorkerRepository.h',
251 'public/WebSocket.h',
252 'public/WebSocketClient.h',
253 'public/WebSpeechGrammar.h',
254 'public/WebSpeechInputController.h',
255 'public/WebSpeechInputListener.h',
256 'public/WebSpeechInputResult.h',
257 'public/WebSpeechRecognitionHandle.h',
258 'public/WebSpeechRecognitionParams.h',
259 'public/WebSpeechRecognitionResult.h',
260 'public/WebSpeechRecognizerClient.h',
261 'public/WebSpeechRecognizer.h',
262 'public/WebSpellCheckClient.h',
263 'public/WebStorageEventDispatcher.h',
264 'public/WebStorageQuotaCallbacks.h',
265 'public/WebStorageQuotaType.h',
266 'public/WebSurroundingText.h',
267 'public/WebStreamTextureClient.h',
268 'public/WebTextAffinity.h',
269 'public/WebTextCaseSensitivity.h',
270 'public/WebTextCheckingCompletion.h',
271 'public/WebTextCheckingResult.h',
272 'public/WebTextDirection.h',
273 'public/WebTextFieldDecoratorClient.h',
274 'public/WebTextInputInfo.h',
275 'public/WebTextInputType.h',
276 'public/WebTextRun.h',
277 'public/WebTimeRange.h',
278 'public/WebURLLoaderOptions.h',
279 'public/WebUserMediaClient.h',
280 'public/WebUserMediaRequest.h',
282 'public/WebViewBenchmarkSupport.h',
283 'public/WebViewClient.h',
284 'public/WebWidget.h',
285 'public/WebWidgetClient.h',
286 'public/WebWorkerInfo.h',
287 'public/android/WebInputEventFactory.h',
288 'public/android/WebSandboxSupport.h',
289 'public/gtk/WebInputEventFactory.h',
290 'public/linux/WebFontRenderStyle.h',
291 'public/linux/WebFontRendering.h',
292 'public/linux/WebRenderTheme.h',
293 'public/mac/WebInputEventFactory.h',
294 'public/mac/WebSandboxSupport.h',
295 'public/mac/WebScreenInfoFactory.h',
296 'public/mac/WebSubstringUtil.h',
297 'public/platform/WebArrayBufferView.h',
298 'public/platform/WebAudioBus.h',
299 'public/platform/WebAudioDevice.h',
300 'public/platform/WebCanvas.h',
301 'public/platform/WebColor.h',
302 'public/platform/WebCommon.h',
303 'public/platform/WebContentLayer.h',
304 'public/platform/WebContentLayerClient.h',
305 'public/platform/WebData.h',
306 'public/platform/WebExternalTextureLayer.h',
307 'public/platform/WebFloatPoint.h',
308 'public/platform/WebFloatQuad.h',
309 'public/platform/WebFloatRect.h',
310 'public/platform/WebGamepad.h',
311 'public/platform/WebGamepads.h',
312 'public/platform/WebGraphicsContext3D.h',
313 'public/platform/WebHTTPBody.h',
314 'public/platform/WebHTTPHeaderVisitor.h',
315 'public/platform/WebHTTPLoadInfo.h',
316 'public/platform/WebKitPlatformSupport.h',
317 'public/platform/WebLayer.h',
318 'public/platform/WebLayerTreeView.h',
319 'public/platform/WebLayerTreeViewClient.h',
320 'public/platform/WebNonCopyable.h',
321 'public/platform/WebPoint.h',
322 'public/platform/WebPrivateOwnPtr.h',
323 'public/platform/WebPrivatePtr.h',
324 'public/platform/WebRect.h',
325 'public/platform/WebReferrerPolicy.h',
326 'public/platform/WebSerializedScriptValue.h',
327 'public/platform/WebSize.h',
328 'public/platform/WebSocketStreamError.h',
329 'public/platform/WebSocketStreamHandle.h',
330 'public/platform/WebSocketStreamHandleClient.h',
331 'public/platform/WebSolidColorLayer.h',
332 'public/platform/WebString.h',
333 'public/platform/WebThread.h',
334 'public/platform/WebThreadSafeData.h',
335 'public/platform/WebURL.h',
336 'public/platform/WebURLError.h',
337 'public/platform/WebURLLoadTiming.h',
338 'public/platform/WebURLLoader.h',
339 'public/platform/WebURLLoaderClient.h',
340 'public/platform/WebURLRequest.h',
341 'public/platform/WebURLResponse.h',
342 'public/platform/WebVector.h',
343 'public/win/WebInputEventFactory.h',
344 'public/win/WebSandboxSupport.h',
345 'public/win/WebScreenInfoFactory.h',
346 'public/x11/WebScreenInfoFactory.h',
347 'src/ApplicationCacheHost.cpp',
348 'src/ApplicationCacheHostInternal.h',
349 'src/AssertMatchingEnums.cpp',
350 'src/AssociatedURLLoader.cpp',
351 'src/AssociatedURLLoader.h',
352 'src/AsyncFileSystemChromium.cpp',
353 'src/AsyncFileSystemChromium.h',
354 'src/AsyncFileWriterChromium.cpp',
355 'src/AsyncFileWriterChromium.h',
356 'src/AudioDestinationChromium.cpp',
357 'src/AudioDestinationChromium.h',
358 'src/AutofillPopupMenuClient.cpp',
359 'src/AutofillPopupMenuClient.h',
360 'src/BackForwardListChromium.cpp',
361 'src/BackForwardListChromium.h',
362 'src/BatteryClientImpl.cpp',
363 'src/BatteryClientImpl.h',
364 'src/BlobRegistryProxy.cpp',
365 'src/BlobRegistryProxy.h',
366 'src/CCThreadImpl.cpp',
367 'src/CCThreadImpl.h',
368 'src/ChromeClientImpl.cpp',
369 'src/ChromeClientImpl.h',
370 'src/ColorChooserProxy.cpp',
371 'src/ColorChooserProxy.h',
372 'src/ChromiumCurrentTime.cpp',
373 'src/ChromiumOSRandomSource.cpp',
374 'src/ChromiumThreading.cpp',
375 'src/CompositionUnderlineBuilder.h',
376 'src/CompositionUnderlineVectorBuilder.cpp',
377 'src/CompositionUnderlineVectorBuilder.h',
378 'src/ContextFeaturesClientImpl.cpp',
379 'src/ContextFeaturesClientImpl.h',
380 'src/ContextMenuClientImpl.cpp',
381 'src/ContextMenuClientImpl.h',
382 'src/DatabaseObserver.cpp',
383 'src/DeliveredIntentClientImpl.cpp',
384 'src/DeliveredIntentClientImpl.h',
385 'src/DeviceOrientationClientProxy.cpp',
386 'src/DeviceOrientationClientProxy.h',
387 'src/DOMUtilitiesPrivate.cpp',
388 'src/DOMUtilitiesPrivate.h',
389 'src/DragClientImpl.cpp',
390 'src/DragClientImpl.h',
391 'src/DragScrollTimer.cpp',
392 'src/DragScrollTimer.h',
393 'src/EditorClientImpl.cpp',
394 'src/EditorClientImpl.h',
395 'src/EventListenerWrapper.cpp',
396 'src/EventListenerWrapper.h',
397 'src/ExternalPopupMenu.cpp',
398 'src/ExternalPopupMenu.h',
399 'src/FrameLoaderClientImpl.cpp',
400 'src/FrameLoaderClientImpl.h',
401 'src/FrameNetworkingContextImpl.h',
402 'src/GeolocationClientProxy.cpp',
403 'src/GeolocationClientProxy.h',
404 'src/gtk/WebInputEventFactory.cpp',
405 'src/WebHelperPluginImpl.cpp',
406 'src/WebHelperPluginImpl.h',
407 'src/IDBCallbacksProxy.cpp',
408 'src/IDBCallbacksProxy.h',
409 'src/IDBCursorBackendProxy.cpp',
410 'src/IDBCursorBackendProxy.h',
411 'src/IDBDatabaseCallbacksProxy.cpp',
412 'src/IDBDatabaseCallbacksProxy.h',
413 'src/IDBDatabaseBackendProxy.cpp',
414 'src/IDBDatabaseBackendProxy.h',
415 'src/IDBFactoryBackendProxy.cpp',
416 'src/IDBFactoryBackendProxy.h',
417 'src/IDBIndexBackendProxy.cpp',
418 'src/IDBIndexBackendProxy.h',
419 'src/IDBObjectStoreBackendProxy.cpp',
420 'src/IDBObjectStoreBackendProxy.h',
421 'src/IDBTransactionBackendProxy.cpp',
422 'src/IDBTransactionBackendProxy.h',
423 'src/IDBTransactionCallbacksProxy.cpp',
424 'src/IDBTransactionCallbacksProxy.h',
425 'src/InspectorClientImpl.cpp',
426 'src/InspectorClientImpl.h',
427 'src/InspectorFrontendClientImpl.cpp',
428 'src/InspectorFrontendClientImpl.h',
429 'src/NonCompositedContentHost.cpp',
430 'src/NonCompositedContentHost.h',
431 'src/PrerendererClientImpl.h',
432 'src/PrerendererClientImpl.cpp',
433 'src/android/WebInputEventFactory.cpp',
434 'src/linux/WebFontInfo.cpp',
435 'src/linux/WebFontRendering.cpp',
436 'src/linux/WebFontRenderStyle.cpp',
437 'src/linux/WebRenderTheme.cpp',
438 'src/x11/WebScreenInfoFactory.cpp',
439 'src/mac/WebInputEventFactory.mm',
440 'src/mac/WebScreenInfoFactory.mm',
441 'src/mac/WebSubstringUtil.mm',
442 'src/LocalFileSystemChromium.cpp',
443 'src/LocalizedStrings.cpp',
444 'src/MediaPlayerPrivateChromium.cpp',
445 'src/NotificationPresenterImpl.h',
446 'src/NotificationPresenterImpl.cpp',
447 'src/painting/GraphicsContextBuilder.h',
448 'src/painting/PaintAggregator.h',
449 'src/painting/PaintAggregator.cpp',
450 'src/PageOverlay.cpp',
452 'src/PageOverlayList.cpp',
453 'src/PageOverlayList.h',
454 'src/PageWidgetDelegate.cpp',
455 'src/PageWidgetDelegate.h',
456 'src/PlatformMessagePortChannel.cpp',
457 'src/PlatformMessagePortChannel.h',
458 'src/PlatformSupport.cpp',
459 'src/ScrollbarGroup.cpp',
460 'src/ScrollbarGroup.h',
461 'src/SharedWorkerRepository.cpp',
462 'src/SocketStreamHandle.cpp',
463 'src/SocketStreamHandleInternal.h',
464 'src/SpeechInputClientImpl.cpp',
465 'src/SpeechInputClientImpl.h',
466 'src/SpeechRecognitionClientProxy.cpp',
467 'src/SpeechRecognitionClientProxy.h',
468 'src/StorageAreaProxy.cpp',
469 'src/StorageAreaProxy.h',
470 'src/StorageInfoChromium.cpp',
471 'src/StorageNamespaceProxy.cpp',
472 'src/StorageNamespaceProxy.h',
473 'src/TextFieldDecoratorImpl.h',
474 'src/TextFieldDecoratorImpl.cpp',
475 'src/UserMediaClientImpl.h',
476 'src/UserMediaClientImpl.cpp',
477 'src/WebTextCheckingCompletionImpl.h',
478 'src/WebTextCheckingCompletionImpl.cpp',
479 'src/WebTextCheckingResult.cpp',
480 'src/WebAccessibilityObject.cpp',
481 'src/WebAnimation.cpp',
482 'src/WebAnimationControllerImpl.cpp',
483 'src/WebAnimationControllerImpl.h',
484 'src/WebAnimationCurveCommon.cpp',
485 'src/WebAnimationCurveCommon.h',
486 'src/WebArrayBuffer.cpp',
487 'src/WebArrayBufferView.cpp',
488 'src/WebBindings.cpp',
490 'src/WebBlobData.cpp',
492 'src/WebColorChooserClientImpl.cpp',
493 'src/WebColorChooserClientImpl.h',
494 'src/WebColorName.cpp',
496 'src/WebCompositorImpl.cpp',
497 'src/WebCompositorImpl.h',
498 'src/WebCompositorInputHandlerImpl.cpp',
499 'src/WebCompositorInputHandlerImpl.h',
500 'src/WebContentLayer.cpp',
501 'src/WebContentLayerImpl.cpp',
502 'src/WebContentLayerImpl.h',
503 'src/WebCrossOriginPreflightResultCache.cpp',
504 'src/WebCursorInfo.cpp',
505 'src/WebDOMEvent.cpp',
506 'src/WebDOMEventListener.cpp',
507 'src/WebDOMEventListenerPrivate.cpp',
508 'src/WebDOMEventListenerPrivate.h',
509 'src/WebDOMMessageEvent.cpp',
510 'src/WebDOMMouseEvent.cpp',
511 'src/WebDOMMutationEvent.cpp',
512 'src/WebDOMStringList.cpp',
513 'src/WebDatabase.cpp',
514 'src/WebDataSourceImpl.cpp',
515 'src/WebDataSourceImpl.h',
516 'src/WebDevToolsAgentImpl.cpp',
517 'src/WebDevToolsAgentImpl.h',
518 'src/WebDevToolsFrontendImpl.cpp',
519 'src/WebDevToolsFrontendImpl.h',
520 'src/WebDeviceOrientation.cpp',
521 'src/WebDeviceOrientationClientMock.cpp',
522 'src/WebDeviceOrientationController.cpp',
523 'src/WebDocument.cpp',
524 'src/WebDocumentType.cpp',
525 'src/WebDragData.cpp',
526 'src/WebElement.cpp',
527 'src/WebEntities.cpp',
529 'src/WebExternalTextureLayer.cpp',
530 'src/WebFileChooserCompletionImpl.cpp',
531 'src/WebFileChooserCompletionImpl.h',
532 'src/WebFileSystemCallbacksImpl.cpp',
533 'src/WebFileSystemCallbacksImpl.h',
534 'src/WebFloatAnimationCurve.cpp',
535 'src/WebFontCache.cpp',
536 'src/WebFontDescription.cpp',
537 'src/WebFontImpl.cpp',
539 'src/WebFormControlElement.cpp',
540 'src/WebFormElement.cpp',
541 'src/WebFrameImpl.cpp',
542 'src/WebFrameImpl.h',
543 'src/WebGeolocationController.cpp',
544 'src/WebGeolocationClientMock.cpp',
545 'src/WebGeolocationError.cpp',
546 'src/WebGeolocationPermissionRequest.cpp',
547 'src/WebGeolocationPermissionRequestManager.cpp',
548 'src/WebGeolocationPosition.cpp',
549 'src/WebGlyphCache.cpp',
550 'src/WebGraphicsContext3D.cpp',
551 'src/WebHistoryItem.cpp',
552 'src/WebHitTestResult.cpp',
553 'src/WebIconLoadingCompletionImpl.cpp',
554 'src/WebIconLoadingCompletionImpl.h',
555 'src/WebIDBCallbacksImpl.cpp',
556 'src/WebIDBCallbacksImpl.h',
557 'src/WebIDBCursorImpl.cpp',
558 'src/WebIDBCursorImpl.h',
559 'src/WebIDBDatabaseCallbacksImpl.cpp',
560 'src/WebIDBDatabaseCallbacksImpl.h',
561 'src/WebIDBDatabaseError.cpp',
562 'src/WebIDBDatabaseImpl.cpp',
563 'src/WebIDBDatabaseImpl.h',
564 'src/WebIDBFactoryImpl.cpp',
565 'src/WebIDBFactoryImpl.h',
566 'src/WebIDBIndexImpl.cpp',
567 'src/WebIDBIndexImpl.h',
569 'src/WebIDBKeyPath.cpp',
570 'src/WebIDBKeyRange.cpp',
571 'src/WebIDBMetadata.cpp',
572 'src/WebIDBObjectStoreImpl.cpp',
573 'src/WebIDBObjectStoreImpl.h',
574 'src/WebIDBTransactionImpl.cpp',
575 'src/WebIDBTransactionImpl.h',
576 'src/WebIDBTransactionCallbacksImpl.cpp',
577 'src/WebIDBTransactionCallbacksImpl.h',
578 'src/WebIOSurfaceLayer.cpp',
579 'src/WebImageCG.cpp',
580 'src/WebImageDecoder.cpp',
581 'src/WebImageLayer.cpp',
582 'src/WebImageSkia.cpp',
583 'src/WebInputElement.cpp',
584 'src/WebInputEvent.cpp',
585 'src/WebInputEventConversion.cpp',
586 'src/WebInputEventConversion.h',
588 'src/WebIntentRequest.cpp',
589 'src/WebIntentServiceInfo.cpp',
591 'src/WebLabelElement.cpp',
593 'src/WebLayerImpl.cpp',
594 'src/WebLayerImpl.h',
595 'src/WebLayerTreeView.cpp',
596 'src/WebLayerTreeViewImpl.cpp',
597 'src/WebLayerTreeViewImpl.h',
598 'src/WebMediaPlayerClientImpl.cpp',
599 'src/WebMediaPlayerClientImpl.h',
600 'src/WebMediaStreamRegistry.cpp',
601 'src/WebNetworkStateNotifier.cpp',
603 'src/WebNodeCollection.cpp',
604 'src/WebNodeList.cpp',
605 'src/WebNotification.cpp',
606 'src/WebOptionElement.cpp',
607 'src/WebPagePopupImpl.cpp',
608 'src/WebPagePopupImpl.h',
609 'src/WebPageSerializer.cpp',
610 'src/WebPageSerializerImpl.cpp',
611 'src/WebPageSerializerImpl.h',
612 'src/WebPasswordFormData.cpp',
613 'src/WebPasswordFormUtils.cpp',
614 'src/WebPasswordFormUtils.h',
615 'src/WebPerformance.cpp',
616 'src/WebPluginContainerImpl.cpp',
617 'src/WebPluginContainerImpl.h',
618 'src/WebPluginDocument.cpp',
619 'src/WebPluginListBuilderImpl.cpp',
620 'src/WebPluginListBuilderImpl.h',
621 'src/WebPluginLoadObserver.cpp',
622 'src/WebPluginLoadObserver.h',
623 'src/WebPluginScrollbarImpl.cpp',
624 'src/WebPluginScrollbarImpl.h',
625 'src/WebPopupMenuImpl.cpp',
626 'src/WebPopupMenuImpl.h',
628 'src/WebRegularExpression.cpp',
629 'src/WebRuntimeFeatures.cpp',
630 'src/WebScopedMicrotaskSuppression.cpp',
631 'src/WebScopedUserGesture.cpp',
632 'src/WebScriptController.cpp',
633 'src/WebScrollableLayer.cpp',
634 'src/WebSearchableFormData.cpp',
635 'src/WebSecurityOrigin.cpp',
636 'src/WebSecurityPolicy.cpp',
637 'src/WebSelectElement.cpp',
638 'src/WebSerializedScriptValue.cpp',
639 'src/WebSessionDescriptionDescriptor.cpp',
640 'src/WebSettingsImpl.cpp',
641 'src/WebSettingsImpl.h',
642 'src/WebSharedWorkerImpl.cpp',
643 'src/WebSharedWorkerImpl.h',
645 'src/WebSocketImpl.cpp',
646 'src/WebSocketImpl.h',
647 'src/WebSolidColorLayer.cpp',
648 'src/WebSolidColorLayerImpl.cpp',
649 'src/WebSpeechGrammar.cpp',
650 'src/WebSpeechInputResult.cpp',
651 'src/WebSpeechRecognitionHandle.cpp',
652 'src/WebSpeechRecognitionResult.cpp',
653 'src/WebStorageEventDispatcherImpl.cpp',
654 'src/WebStorageQuotaCallbacksImpl.cpp',
655 'src/WebStorageQuotaCallbacksImpl.h',
656 'src/WebSurroundingText.cpp',
657 'src/WebTextInputInfo.cpp',
658 'src/WebTextRun.cpp',
659 'src/WebTransformAnimationCurve.cpp',
660 'src/WebURLLoadTiming.cpp',
661 'src/WebScopedUserGesture.cpp',
662 'src/WebTextFieldDecoratorClient.cpp',
663 'src/WebUserMediaRequest.cpp',
664 'src/WebVideoLayer.cpp',
665 'src/WebViewBenchmarkSupportImpl.cpp',
666 'src/WebViewBenchmarkSupportImpl.h',
667 'src/WebViewImpl.cpp',
669 'src/WebWorkerBase.cpp',
670 'src/WebWorkerBase.h',
671 'src/WebWorkerClientImpl.cpp',
672 'src/WebWorkerClientImpl.h',
673 'src/WebWorkerInfo.cpp',
674 'src/WebWorkerRunLoop.cpp',
675 'src/WorkerAsyncFileSystemChromium.cpp',
676 'src/WorkerAsyncFileSystemChromium.h',
677 'src/WorkerAsyncFileWriterChromium.cpp',
678 'src/WorkerAsyncFileWriterChromium.h',
679 'src/WorkerFileSystemCallbacksBridge.cpp',
680 'src/WorkerFileSystemCallbacksBridge.h',
681 'src/WorkerFileWriterCallbacksBridge.cpp',
682 'src/WorkerFileWriterCallbacksBridge.h',
683 'src/win/WebInputEventFactory.cpp',
684 'src/win/WebScreenInfoFactory.cpp',
687 ['inside_chromium_build==1', {
688 'type': '<(component)',
691 ['component=="shared_library"', {
694 'WEBKIT_IMPLEMENTATION=1',
697 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore_bindings',
698 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore_test_support',
699 '<(chromium_src_dir)/base/base.gyp:test_support_base',
700 '<(chromium_src_dir)/build/temp_gyp/googleurl.gyp:googleurl',
701 '<(chromium_src_dir)/testing/gtest.gyp:gtest',
702 '<(chromium_src_dir)/testing/gmock.gyp:gmock',
703 '<(chromium_src_dir)/third_party/icu/icu.gyp:*',
704 '<(chromium_src_dir)/third_party/libjpeg_turbo/libjpeg.gyp:libjpeg',
705 '<(chromium_src_dir)/third_party/libpng/libpng.gyp:libpng',
706 '<(chromium_src_dir)/third_party/libxml/libxml.gyp:libxml',
707 '<(chromium_src_dir)/third_party/libxslt/libxslt.gyp:libxslt',
708 '<(chromium_src_dir)/third_party/modp_b64/modp_b64.gyp:modp_b64',
709 '<(chromium_src_dir)/third_party/ots/ots.gyp:ots',
710 '<(chromium_src_dir)/third_party/zlib/zlib.gyp:zlib',
711 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
712 # We must not add webkit_support here because of cyclic dependency.
714 'direct_dependent_settings': {
719 'export_dependent_settings': [
720 '<(chromium_src_dir)/build/temp_gyp/googleurl.gyp:googleurl',
721 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
724 # WARNING: Do not view this particular case as a precedent for
725 # including WebCore headers in DumpRenderTree project.
726 '../../WebCore/testing/v8', # for WebCoreTestSupport.h, needed to link in window.internals code.
729 '<@(webkit_unittest_files)',
730 'src/WebTestingSupport.cpp',
731 'public/WebTestingSupport.h',
732 'tests/WebUnitTests.cpp', # Components test runner support.
735 # We should not include files depending on webkit_support.
736 # These tests depend on webkit_support and
737 # functions defined only in !WEBKIT_IMPLEMENTATION.
738 'tests/AssociatedURLLoaderTest.cpp',
739 'tests/EventListenerTest.cpp',
740 'tests/FrameTestHelpers.cpp',
741 'tests/LevelDBTest.cpp',
742 'tests/ListenerLeakTest.cpp',
743 'tests/PopupMenuTest.cpp',
744 'tests/RenderTableCellTest.cpp',
745 'tests/RenderTableRowTest.cpp',
746 'tests/URLTestHelpers.cpp',
747 'tests/WebFrameTest.cpp',
748 'tests/WebPageNewSerializerTest.cpp',
749 'tests/WebPageSerializerTest.cpp',
750 'tests/WebViewTest.cpp',
753 ['OS=="win" or OS=="mac"', {
755 '<(chromium_src_dir)/third_party/nss/nss.gyp:*',
759 # FIXME: It would be nice to enable this in shared builds too,
760 # but the test files have global constructors from the GTEST macro
761 # and we pull in the test files into the webkit target in the
763 'cflags!': ['-Wglobal-constructors'],
765 'WARNING_CFLAGS!': ['-Wglobal-constructors'],
772 ['incremental_chrome_dll==1', {
773 'UseLibraryDependencyInputs': "true",
780 }, { # else: inside_chromium_build==0
781 'direct_dependent_settings': {
783 '<(SHARED_INTERMEDIATE_DIR)/webkit', # in a chromium-inside-WebKit build, headers in the public WebKit API are copied beneath this directory so includes referencing third_party/WebKit work.
789 '<(chromium_src_dir)/build/linux/system.gyp:fontconfig',
790 '<(chromium_src_dir)/build/linux/system.gyp:x11',
796 }, { # else: use_x11 != 1
798 ['exclude', '/x11/'],
799 ['exclude', '/linux/'],
802 ['toolkit_uses_gtk == 1', {
804 '<(chromium_src_dir)/build/linux/system.gyp:gtk',
809 }, { # else: toolkit_uses_gtk != 1
811 ['exclude', '/gtk/'],
817 'public/linux', # We need linux/WebFontRendering.h on Android.
819 }, { # else: OS!="android"
821 ['exclude', '/android/'],
824 # TODO: we exclude CG.cpp on both sides of the below conditional. Move elsewhere?
830 ['exclude', 'CG\\.cpp$'],
832 }, { # else: OS!="mac"
834 ['exclude', '/mac/'],
835 ['exclude', 'CG\\.cpp$'],
842 }, { # else: OS!="win"
843 'sources/': [['exclude', '/win/']],
845 # FIXME: Turn on warnings on Windows.
849 ['"ENABLE_WEBGL=1" in feature_defines', {
854 '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
855 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
862 'cflags': ['-Wglobal-constructors'],
864 'WARNING_CFLAGS': ['-Wglobal-constructors'],
868 'target_conditions': [
871 ['include', '^src/linux/WebFontRendering\\.cpp$'],
872 ['include', '^src/linux/WebFontRenderStyle\\.cpp$'],
878 'target_name': 'inspector_resources',
882 '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources',
885 ['debug_devtools==0', {
886 'dependencies': ['concatenated_devtools_js',
887 'concatenated_heap_snapshot_worker_js',
888 'concatenated_script_formatter_worker_js',
889 'concatenated_devtools_css'],
894 'destination': '<(PRODUCT_DIR)/resources/inspector',
896 '<@(devtools_files)',
897 '<@(webinspector_files)',
898 '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendCommands.js',
901 ['debug_devtools==0', {
902 'files/': [['exclude', '\\.(js|css|html)$']],
907 'destination': '<(PRODUCT_DIR)/resources/inspector/UglifyJS',
909 '<@(webinspector_uglifyjs_files)',
912 ['debug_devtools==0', {
913 'files/': [['exclude', '\\.(js|css|html)$']],
918 'destination': '<(PRODUCT_DIR)/resources/inspector/Images',
920 '<@(webinspector_image_files)',
921 '<@(devtools_image_files)',
927 'target_name': 'devtools_html',
929 'sources': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
931 'action_name': 'devtools_html',
932 'script_name': 'scripts/generate_devtools_html.py',
933 'input_page': '../../WebCore/inspector/front-end/inspector.html',
937 '<@(devtools_files)',
939 'outputs': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
940 'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_outputs)', '<@(debug_devtools)', '<@(devtools_files)'],
944 'target_name': 'devtools_extension_api',
947 'action_name': 'devtools_html',
948 'script_name': 'scripts/generate_devtools_extension_api.py',
951 '<@(devtools_extension_api_files)',
953 'outputs': ['<(PRODUCT_DIR)/resources/inspector/devtools_extension_api.js'],
954 'action': ['python', '<@(_script_name)', '<@(_outputs)', '<@(devtools_extension_api_files)'],
958 'target_name': 'generate_devtools_grd',
962 'devtools_extension_api'
965 ['debug_devtools==0', {
966 'dependencies': ['concatenated_devtools_js',
967 'concatenated_heap_snapshot_worker_js',
968 'concatenated_script_formatter_worker_js',
969 'concatenated_devtools_css'],
971 # If we're not concatenating devtools files, we want to
972 # run after the original files have been copied to
973 # <(PRODUCT_DIR)/resources/inspector.
974 'dependencies': ['inspector_resources'],
978 'action_name': 'generate_devtools_grd',
979 'script_name': 'scripts/generate_devtools_grd.py',
981 '<(PRODUCT_DIR)/resources/inspector/devtools.html',
982 '<(PRODUCT_DIR)/resources/inspector/DevTools.js',
983 '<(PRODUCT_DIR)/resources/inspector/HeapSnapshotWorker.js',
984 '<(PRODUCT_DIR)/resources/inspector/ScriptFormatterWorker.js',
985 '<(PRODUCT_DIR)/resources/inspector/devTools.css',
986 '<(PRODUCT_DIR)/resources/inspector/devtools_extension_api.js',
987 '<@(webinspector_standalone_css_files)',
990 '<@(webinspector_image_files)',
991 '<@(devtools_image_files)',
999 '../../WebCore/inspector/front-end/Images',
1002 'outputs': ['<(SHARED_INTERMEDIATE_DIR)/devtools/devtools_resources.grd'],
1003 'action': ['python', '<@(_script_name)', '<@(_input_pages)', '--images', '<@(_search_path)', '--output', '<@(_outputs)'],
1007 'target_name': 'generate_devtools_zip',
1010 '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources',
1013 'action_name': 'generate_devtools_zip',
1014 'script_name': 'scripts/generate_devtools_zip.py',
1015 'inspector_html': '../../WebCore/inspector/front-end/inspector.html',
1017 '../../WebCore/inspector/front-end/HeapSnapshotWorker.js',
1018 '../../WebCore/inspector/front-end/JavaScriptFormatter.js',
1019 '../../WebCore/inspector/front-end/ScriptFormatterWorker.js',
1020 '<@(webinspector_uglifyjs_files)'
1024 'scripts/generate_devtools_html.py',
1025 'scripts/generate_devtools_extension_api.py',
1026 '<@(_inspector_html)',
1027 '<@(devtools_files)',
1028 '<@(webinspector_files)',
1029 '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendCommands.js',
1030 '<@(_workers_files)',
1031 '<@(webinspector_image_files)',
1032 '<@(devtools_image_files)',
1033 '<@(devtools_extension_api_files)',
1036 '../../WebCore/inspector/front-end',
1040 '<(SHARED_INTERMEDIATE_DIR)/webcore',
1042 'outputs': ['<(PRODUCT_DIR)/devtools_frontend.zip'],
1043 'action': ['python', '<@(_script_name)', '<@(_inspector_html)',
1044 '--devtools-files', '<@(devtools_files)',
1045 '--workers-files', '<@(_workers_files)',
1046 '--extension-api-files', '<@(devtools_extension_api_files)',
1047 '--search-path', '<@(_search_path)',
1048 '--js-search-path', '<@(_js_search_path)',
1049 '--output', '<@(_outputs)'],
1054 ['os_posix==1 and OS!="mac" and gcc_version>=46', {
1055 'target_defaults': {
1056 # Disable warnings about c++0x compatibility, as some names (such
1057 # as nullptr) conflict with upcoming c++0x types.
1058 'cflags_cc': ['-Wno-c++0x-compat'],
1064 'target_name': 'copy_mesa',
1066 'dependencies': ['<(chromium_src_dir)/third_party/mesa/mesa.gyp:osmesa'],
1068 'destination': '<(PRODUCT_DIR)/DumpRenderTree.app/Contents/MacOS/',
1069 'files': ['<(PRODUCT_DIR)/osmesa.so'],
1074 ['debug_devtools==0', {
1077 'target_name': 'concatenated_devtools_js',
1081 '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources'
1084 'action_name': 'concatenate_devtools_js',
1085 'script_name': 'scripts/concatenate_js_files.py',
1086 'input_page': '../../WebCore/inspector/front-end/inspector.html',
1090 '<@(webinspector_files)',
1091 '<@(devtools_files)',
1092 '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendCommands.js'
1095 '../../WebCore/inspector/front-end',
1097 '<(SHARED_INTERMEDIATE_DIR)/webcore',
1099 'outputs': ['<(PRODUCT_DIR)/resources/inspector/DevTools.js'],
1100 'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_search_path)', '<@(_outputs)'],
1104 'target_name': 'concatenated_heap_snapshot_worker_js',
1107 'action_name': 'concatenate_heap_snapshot_worker_js',
1108 'script_name': 'scripts/inline_js_imports.py',
1109 'input_file': '../../WebCore/inspector/front-end/HeapSnapshotWorker.js',
1113 '../../WebCore/inspector/front-end/HeapSnapshot.js',
1114 '../../WebCore/inspector/front-end/HeapSnapshotLoader.js',
1115 '../../WebCore/inspector/front-end/HeapSnapshotWorkerDispatcher.js',
1116 '../../WebCore/inspector/front-end/utilities.js',
1118 'search_path': '../../WebCore/inspector/front-end',
1119 'outputs': ['<(PRODUCT_DIR)/resources/inspector/HeapSnapshotWorker.js'],
1120 'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1124 'target_name': 'concatenated_script_formatter_worker_js',
1127 'action_name': 'concatenate_script_formatter_worker_js',
1128 'script_name': 'scripts/inline_js_imports.py',
1129 'input_file': '../../WebCore/inspector/front-end/ScriptFormatterWorker.js',
1133 '<@(webinspector_uglifyjs_files)'
1135 'search_path': '../../WebCore/inspector/front-end',
1136 'outputs': ['<(PRODUCT_DIR)/resources/inspector/ScriptFormatterWorker.js'],
1137 'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1141 'target_name': 'concatenated_devtools_css',
1147 'action_name': 'concatenate_devtools_css',
1148 'script_name': 'scripts/concatenate_css_files.py',
1149 'input_page': '../../WebCore/inspector/front-end/inspector.html',
1153 '<@(webinspector_files)',
1154 '<@(devtools_files)'
1157 '../../WebCore/inspector/front-end',
1160 'outputs': ['<(PRODUCT_DIR)/resources/inspector/devTools.css'],
1161 'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_search_path)', '<@(_outputs)'],
1164 'destination': '<(PRODUCT_DIR)/resources/inspector',
1166 '<@(webinspector_standalone_css_files)',