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': '../../../../..',
52 # If debug_devtools is set to 1, JavaScript files for DevTools are
53 # stored as is. Otherwise, a concatenated file is stored.
56 # List of DevTools source files, ordered by dependencies. It is used both
57 # for copying them to resource dir, and for generating 'devtools.html' file.
59 '<@(devtools_css_files)',
60 '<@(devtools_js_files)',
65 'target_name': 'webkit',
66 'type': 'static_library',
67 'variables': { 'enable_wexit_time_destructors': 1, },
69 '../../Platform/Platform.gyp/Platform.gyp:webkit_platform',
70 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
71 '<(chromium_src_dir)/skia/skia.gyp:skia',
72 '<(chromium_src_dir)/third_party/angle/src/build_angle.gyp:translator_glsl',
73 '<(chromium_src_dir)/third_party/icu/icu.gyp:icuuc',
74 '<(chromium_src_dir)/third_party/npapi/npapi.gyp:npapi',
75 '<(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/WebApplicationCacheHostClient.h',
100 'public/WebArrayBuffer.h',
101 'public/WebArrayBufferView.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/WebCachedURLRequest.h',
111 'public/WebColorChooser.h',
112 'public/WebColorChooserClient.h',
113 'public/WebColorName.h',
114 'public/WebCommonWorkerClient.h',
115 'public/WebCompositionUnderline.h',
116 'public/WebCompositorInputHandler.h',
117 'public/WebCompositorInputHandlerClient.h',
118 'public/WebConsoleMessage.h',
119 'public/WebContentDetectionResult.h',
120 'public/WebContextMenuData.h',
121 'public/WebCrossOriginPreflightResultCache.h',
122 'public/WebCursorInfo.h',
123 'public/WebDOMActivityLogger.h',
124 'public/WebDOMCustomEvent.h',
125 'public/WebDOMEvent.h',
126 'public/WebDOMEventListener.h',
127 'public/WebDOMMessageEvent.h',
128 'public/WebDOMMouseEvent.h',
129 'public/WebDOMMutationEvent.h',
130 'public/WebDOMStringList.h',
131 'public/WebDataSource.h',
132 'public/WebDatabase.h',
133 'public/WebDatabaseObserver.h',
134 'public/WebDateTimeInputType.h',
135 'public/WebDateTimeChooserCompletion.h',
136 'public/WebDateTimeChooserParams.h',
137 'public/WebDevToolsAgent.h',
138 'public/WebDevToolsAgentClient.h',
139 'public/WebDevToolsFrontend.h',
140 'public/WebDevToolsFrontendClient.h',
141 'public/WebDeviceOrientation.h',
142 'public/WebDeviceOrientationClient.h',
143 'public/WebDeviceOrientationClientMock.h',
144 'public/WebDeviceOrientationController.h',
145 'public/WebDocument.h',
146 'public/WebDocumentType.h',
147 'public/WebEditingAction.h',
148 'public/WebElement.h',
149 'public/WebExceptionCode.h',
150 'public/WebExternalPopupMenu.h',
151 'public/WebExternalPopupMenuClient.h',
152 'public/WebFileChooserCompletion.h',
153 'public/WebFileChooserParams.h',
154 'public/WebFileError.h',
155 'public/WebFileSystemCallbacks.h',
156 'public/WebFileSystemEntry.h',
157 'public/WebFileWriter.h',
158 'public/WebFileWriterClient.h',
159 'public/WebFindOptions.h',
161 'public/WebFontCache.h',
162 'public/WebFontDescription.h',
163 'public/WebFormControlElement.h',
164 'public/WebFormElement.h',
166 'public/WebFrameClient.h',
167 'public/WebGeolocationClient.h',
168 'public/WebGeolocationClientMock.h',
169 'public/WebGeolocationController.h',
170 'public/WebGeolocationError.h',
171 'public/WebGeolocationPermissionRequest.h',
172 'public/WebGeolocationPermissionRequestManager.h',
173 'public/WebGeolocationPosition.h',
174 'public/WebGlyphCache.h',
175 'public/WebHelperPlugin.h',
176 'public/WebHistoryItem.h',
177 'public/WebHitTestResult.h',
178 'public/WebIDBCallbacks.h',
179 'public/WebIDBCursor.h',
180 'public/WebIDBDatabase.h',
181 'public/WebIDBDatabaseCallbacks.h',
182 'public/WebIDBDatabaseError.h',
183 'public/WebIDBDatabaseException.h',
184 'public/WebIDBFactory.h',
185 'public/WebIDBKey.h',
186 'public/WebIDBKeyPath.h',
187 'public/WebIDBKeyRange.h',
188 'public/WebIDBMetadata.h',
189 'public/WebIconLoadingCompletion.h',
190 'public/WebIconURL.h',
191 'public/WebImageDecoder.h',
192 'public/WebInputElement.h',
193 'public/WebInputEvent.h',
195 'public/WebLabelElement.h',
196 'public/WebMediaPlayer.h',
197 'public/WebMediaPlayerAction.h',
198 'public/WebMediaPlayerClient.h',
199 'public/WebMediaSource.h',
200 'public/WebMediaSourceClient.h',
201 'public/WebMediaStreamRegistry.h',
202 'public/WebMemoryUsageInfo.h',
203 'public/WebMenuItemInfo.h',
204 'public/WebNavigationType.h',
205 'public/WebNetworkStateNotifier.h',
207 'public/WebNodeCollection.h',
208 'public/WebNodeList.h',
209 'public/WebNotification.h',
210 'public/WebNotificationPermissionCallback.h',
211 'public/WebNotificationPresenter.h',
212 'public/WebOptionElement.h',
213 'public/WebPageOverlay.h',
214 'public/WebPagePopup.h',
215 'public/WebPageSerializer.h',
216 'public/WebPageSerializerClient.h',
217 'public/WebPageVisibilityState.h',
218 'public/WebPasswordFormData.h',
219 'public/WebPerformance.h',
220 'public/WebPermissionClient.h',
221 'public/WebPlugin.h',
222 'public/WebPluginAction.h',
223 'public/WebPluginContainer.h',
224 'public/WebPluginDocument.h',
225 'public/WebPluginListBuilder.h',
226 'public/WebPluginScrollbar.h',
227 'public/WebPluginScrollbarClient.h',
228 'public/WebPrintParams.h',
229 'public/WebPrintScalingOption.h',
230 'public/WebPopupMenu.h',
231 'public/WebPopupMenuInfo.h',
232 'public/WebPopupType.h',
233 'public/WebPrerendererClient.h',
235 'public/WebRegularExpression.h',
236 'public/WebRuntimeFeatures.h',
237 'public/WebScopedMicrotaskSuppression.h',
238 'public/WebScopedUserGesture.h',
239 'public/WebScreenInfo.h',
240 'public/WebScriptController.h',
241 'public/WebScriptSource.h',
242 'public/WebSearchableFormData.h',
243 'public/WebSecurityOrigin.h',
244 'public/WebSecurityPolicy.h',
245 'public/WebSelectElement.h',
246 'public/WebSerializedScriptValue.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/default/WebRenderTheme.h',
290 'public/gtk/WebInputEventFactory.h',
291 'public/linux/WebFontRenderStyle.h',
292 'public/linux/WebFontRendering.h',
293 'public/mac/WebInputEventFactory.h',
294 'public/mac/WebSandboxSupport.h',
295 'public/mac/WebScreenInfoFactory.h',
296 'public/mac/WebSubstringUtil.h',
297 'public/win/WebInputEventFactory.h',
298 'public/win/WebSandboxSupport.h',
299 'public/win/WebScreenInfoFactory.h',
300 'public/x11/WebScreenInfoFactory.h',
301 'src/ApplicationCacheHost.cpp',
302 'src/ApplicationCacheHostInternal.h',
303 'src/AssertMatchingEnums.cpp',
304 'src/AssociatedURLLoader.cpp',
305 'src/AssociatedURLLoader.h',
306 'src/AsyncFileSystemChromium.cpp',
307 'src/AsyncFileSystemChromium.h',
308 'src/AsyncFileWriterChromium.cpp',
309 'src/AsyncFileWriterChromium.h',
310 'src/AutofillPopupMenuClient.cpp',
311 'src/AutofillPopupMenuClient.h',
312 'src/BackForwardListChromium.cpp',
313 'src/BackForwardListChromium.h',
314 'src/BatteryClientImpl.cpp',
315 'src/BatteryClientImpl.h',
316 'src/DateTimeChooserImpl.cpp',
317 'src/DateTimeChooserImpl.h',
318 'src/ChromeClientImpl.cpp',
319 'src/ChromeClientImpl.h',
320 'src/ColorChooserPopupUIController.cpp',
321 'src/ColorChooserPopupUIController.h',
322 'src/ColorChooserUIController.cpp',
323 'src/ColorChooserUIController.h',
324 'src/CompositionUnderlineBuilder.h',
325 'src/CompositionUnderlineVectorBuilder.cpp',
326 'src/CompositionUnderlineVectorBuilder.h',
327 'src/ContextFeaturesClientImpl.cpp',
328 'src/ContextFeaturesClientImpl.h',
329 'src/ContextMenuClientImpl.cpp',
330 'src/ContextMenuClientImpl.h',
331 'src/DatabaseObserver.cpp',
332 'src/DeviceOrientationClientProxy.cpp',
333 'src/DeviceOrientationClientProxy.h',
334 'src/DOMUtilitiesPrivate.cpp',
335 'src/DOMUtilitiesPrivate.h',
336 'src/DragClientImpl.cpp',
337 'src/DragClientImpl.h',
338 'src/DragScrollTimer.cpp',
339 'src/DragScrollTimer.h',
340 'src/EditorClientImpl.cpp',
341 'src/EditorClientImpl.h',
342 'src/EventListenerWrapper.cpp',
343 'src/EventListenerWrapper.h',
344 'src/ExternalDateTimeChooser.cpp',
345 'src/ExternalDateTimeChooser.h',
346 'src/ExternalPopupMenu.cpp',
347 'src/ExternalPopupMenu.h',
348 'src/FindInPageCoordinates.cpp',
349 'src/FindInPageCoordinates.h',
350 'src/FrameLoaderClientImpl.cpp',
351 'src/FrameLoaderClientImpl.h',
352 'src/FrameNetworkingContextImpl.cpp',
353 'src/FrameNetworkingContextImpl.h',
354 'src/GeolocationClientProxy.cpp',
355 'src/GeolocationClientProxy.h',
356 'src/GraphicsLayerFactoryChromium.cpp',
357 'src/GraphicsLayerFactoryChromium.h',
358 'src/gtk/WebInputEventFactory.cpp',
359 'src/WebHelperPluginImpl.cpp',
360 'src/WebHelperPluginImpl.h',
361 'src/IDBCallbacksProxy.cpp',
362 'src/IDBCallbacksProxy.h',
363 'src/IDBCursorBackendProxy.cpp',
364 'src/IDBCursorBackendProxy.h',
365 'src/IDBDatabaseCallbacksProxy.cpp',
366 'src/IDBDatabaseCallbacksProxy.h',
367 'src/IDBDatabaseBackendProxy.cpp',
368 'src/IDBDatabaseBackendProxy.h',
369 'src/IDBFactoryBackendProxy.cpp',
370 'src/IDBFactoryBackendProxy.h',
371 'src/InspectorClientImpl.cpp',
372 'src/InspectorClientImpl.h',
373 'src/InspectorFrontendClientImpl.cpp',
374 'src/InspectorFrontendClientImpl.h',
375 'src/LinkHighlight.cpp',
376 'src/LinkHighlight.h',
377 'src/NonCompositedContentHost.cpp',
378 'src/NonCompositedContentHost.h',
379 'src/PrerendererClientImpl.h',
380 'src/PrerendererClientImpl.cpp',
381 'src/android/WebInputEventFactory.cpp',
382 'src/default/WebRenderTheme.cpp',
383 'src/linux/WebFontInfo.cpp',
384 'src/linux/WebFontRendering.cpp',
385 'src/linux/WebFontRenderStyle.cpp',
386 'src/x11/WebScreenInfoFactory.cpp',
387 'src/mac/WebInputEventFactory.mm',
388 'src/mac/WebScreenInfoFactory.mm',
389 'src/mac/WebSubstringUtil.mm',
390 'src/LocalFileSystemChromium.cpp',
391 'src/MediaSourcePrivateImpl.cpp',
392 'src/MediaSourcePrivateImpl.h',
393 'src/NotificationPresenterImpl.h',
394 'src/NotificationPresenterImpl.cpp',
395 'src/painting/ContinuousPainter.h',
396 'src/painting/ContinuousPainter.cpp',
397 'src/painting/GraphicsContextBuilder.h',
398 'src/painting/PaintAggregator.h',
399 'src/painting/PaintAggregator.cpp',
400 'src/PageOverlay.cpp',
402 'src/PageOverlayList.cpp',
403 'src/PageOverlayList.h',
404 'src/PageWidgetDelegate.cpp',
405 'src/PageWidgetDelegate.h',
406 'src/ScrollbarGroup.cpp',
407 'src/ScrollbarGroup.h',
408 'src/SharedWorkerRepository.cpp',
409 'src/SourceBufferPrivateImpl.cpp',
410 'src/SourceBufferPrivateImpl.h',
411 'src/SpeechInputClientImpl.cpp',
412 'src/SpeechInputClientImpl.h',
413 'src/SpeechRecognitionClientProxy.cpp',
414 'src/SpeechRecognitionClientProxy.h',
415 'src/StorageAreaProxy.cpp',
416 'src/StorageAreaProxy.h',
417 'src/StorageInfoChromium.cpp',
418 'src/StorageNamespaceProxy.cpp',
419 'src/StorageNamespaceProxy.h',
420 'src/TextFieldDecoratorImpl.h',
421 'src/TextFieldDecoratorImpl.cpp',
422 'src/UserMediaClientImpl.h',
423 'src/UserMediaClientImpl.cpp',
424 'src/ValidationMessageClientImpl.cpp',
425 'src/ValidationMessageClientImpl.h',
426 'src/WebTextCheckingCompletionImpl.h',
427 'src/WebTextCheckingCompletionImpl.cpp',
428 'src/WebTextCheckingResult.cpp',
429 'src/WebAccessibilityObject.cpp',
430 'src/WebArrayBuffer.cpp',
431 'src/WebArrayBufferView.cpp',
432 'src/WebBindings.cpp',
434 'src/WebBlobData.cpp',
436 'src/WebCachedURLRequest.cpp',
437 'src/WebColorName.cpp',
439 'src/WebCompositorInputHandlerImpl.cpp',
440 'src/WebCompositorInputHandlerImpl.h',
441 'src/WebCrossOriginPreflightResultCache.cpp',
442 'src/WebCursorInfo.cpp',
443 'src/WebDOMActivityLogger.cpp',
444 'src/WebDOMCustomEvent.cpp',
445 'src/WebDOMEvent.cpp',
446 'src/WebDOMEventListener.cpp',
447 'src/WebDOMEventListenerPrivate.cpp',
448 'src/WebDOMEventListenerPrivate.h',
449 'src/WebDOMMessageEvent.cpp',
450 'src/WebDOMMouseEvent.cpp',
451 'src/WebDOMMutationEvent.cpp',
452 'src/WebDOMStringList.cpp',
453 'src/WebDatabase.cpp',
454 'src/WebDataSourceImpl.cpp',
455 'src/WebDataSourceImpl.h',
456 'src/WebDevToolsAgentImpl.cpp',
457 'src/WebDevToolsAgentImpl.h',
458 'src/WebDevToolsFrontendImpl.cpp',
459 'src/WebDevToolsFrontendImpl.h',
460 'src/WebDeviceOrientation.cpp',
461 'src/WebDeviceOrientationClientMock.cpp',
462 'src/WebDeviceOrientationController.cpp',
463 'src/WebDocument.cpp',
464 'src/WebDocumentType.cpp',
465 'src/WebDragData.cpp',
466 'src/WebElement.cpp',
467 'src/WebEntities.cpp',
469 'src/WebFileChooserCompletionImpl.cpp',
470 'src/WebFileChooserCompletionImpl.h',
471 'src/WebFileSystemCallbacksImpl.cpp',
472 'src/WebFileSystemCallbacksImpl.h',
473 'src/WebFontCache.cpp',
474 'src/WebFontDescription.cpp',
475 'src/WebFontImpl.cpp',
477 'src/WebFormControlElement.cpp',
478 'src/WebFormElement.cpp',
479 'src/WebFrameImpl.cpp',
480 'src/WebFrameImpl.h',
481 'src/WebGeolocationController.cpp',
482 'src/WebGeolocationClientMock.cpp',
483 'src/WebGeolocationError.cpp',
484 'src/WebGeolocationPermissionRequest.cpp',
485 'src/WebGeolocationPermissionRequestManager.cpp',
486 'src/WebGeolocationPosition.cpp',
487 'src/WebGlyphCache.cpp',
488 'src/WebHistoryItem.cpp',
489 'src/WebHitTestResult.cpp',
490 'src/WebIconLoadingCompletionImpl.cpp',
491 'src/WebIconLoadingCompletionImpl.h',
492 'src/WebIDBCallbacksImpl.cpp',
493 'src/WebIDBCallbacksImpl.h',
494 'src/WebIDBCursorImpl.cpp',
495 'src/WebIDBCursorImpl.h',
496 'src/WebIDBDatabaseCallbacksImpl.cpp',
497 'src/WebIDBDatabaseCallbacksImpl.h',
498 'src/WebIDBDatabaseError.cpp',
499 'src/WebIDBDatabaseImpl.cpp',
500 'src/WebIDBDatabaseImpl.h',
501 'src/WebIDBFactoryImpl.cpp',
502 'src/WebIDBFactoryImpl.h',
504 'src/WebIDBKeyPath.cpp',
505 'src/WebIDBKeyRange.cpp',
506 'src/WebIDBMetadata.cpp',
507 'src/WebImageDecoder.cpp',
508 'src/WebImageSkia.cpp',
509 'src/WebInputElement.cpp',
510 'src/WebInputEvent.cpp',
511 'src/WebInputEventConversion.cpp',
512 'src/WebInputEventConversion.h',
514 'src/WebLabelElement.cpp',
515 'src/WebMediaPlayerClientImpl.cpp',
516 'src/WebMediaPlayerClientImpl.h',
517 'src/WebMediaSourceImpl.cpp',
518 'src/WebMediaSourceImpl.h',
519 'src/WebMediaStreamRegistry.cpp',
520 'src/WebNetworkStateNotifier.cpp',
522 'src/WebNodeCollection.cpp',
523 'src/WebNodeList.cpp',
524 'src/WebNotification.cpp',
525 'src/WebOptionElement.cpp',
526 'src/WebPagePopupImpl.cpp',
527 'src/WebPagePopupImpl.h',
528 'src/WebPageSerializer.cpp',
529 'src/WebPageSerializerImpl.cpp',
530 'src/WebPageSerializerImpl.h',
531 'src/WebPasswordFormData.cpp',
532 'src/WebPasswordFormUtils.cpp',
533 'src/WebPasswordFormUtils.h',
534 'src/WebPerformance.cpp',
535 'src/WebPluginContainerImpl.cpp',
536 'src/WebPluginContainerImpl.h',
537 'src/WebPluginDocument.cpp',
538 'src/WebPluginLoadObserver.cpp',
539 'src/WebPluginLoadObserver.h',
540 'src/WebPluginScrollbarImpl.cpp',
541 'src/WebPluginScrollbarImpl.h',
542 'src/WebPopupMenuImpl.cpp',
543 'src/WebPopupMenuImpl.h',
545 'src/WebRegularExpression.cpp',
546 'src/WebRuntimeFeatures.cpp',
547 'src/WebScopedMicrotaskSuppression.cpp',
548 'src/WebScopedUserGesture.cpp',
549 'src/WebScriptController.cpp',
550 'src/WebScrollbarThemeClientImpl.cpp',
551 'src/WebScrollbarThemeClientImpl.h',
552 'src/WebScrollbarThemePainter.cpp',
553 'src/WebSearchableFormData.cpp',
554 'src/WebSecurityOrigin.cpp',
555 'src/WebSecurityPolicy.cpp',
556 'src/WebSelectElement.cpp',
557 'src/WebSerializedScriptValue.cpp',
558 'src/WebSettingsImpl.cpp',
559 'src/WebSettingsImpl.h',
560 'src/WebSharedWorkerImpl.cpp',
561 'src/WebSharedWorkerImpl.h',
563 'src/WebSocketImpl.cpp',
564 'src/WebSocketImpl.h',
565 'src/WebSpeechGrammar.cpp',
566 'src/WebSpeechInputResult.cpp',
567 'src/WebSpeechRecognitionHandle.cpp',
568 'src/WebSpeechRecognitionResult.cpp',
569 'src/WebStorageEventDispatcherImpl.cpp',
570 'src/WebStorageQuotaCallbacksImpl.cpp',
571 'src/WebStorageQuotaCallbacksImpl.h',
572 'src/WebSurroundingText.cpp',
573 'src/WebTextInputInfo.cpp',
574 'src/WebTextRun.cpp',
575 'src/WebURLLoadTiming.cpp',
576 'src/WebScopedUserGesture.cpp',
577 'src/WebTextFieldDecoratorClient.cpp',
578 'src/WebUserMediaRequest.cpp',
579 'src/WebViewBenchmarkSupportImpl.cpp',
580 'src/WebViewBenchmarkSupportImpl.h',
581 'src/WebViewImpl.cpp',
583 'src/WebWorkerBase.cpp',
584 'src/WebWorkerBase.h',
585 'src/WebWorkerClientImpl.cpp',
586 'src/WebWorkerClientImpl.h',
587 'src/WebWorkerInfo.cpp',
588 'src/WebWorkerRunLoop.cpp',
589 'src/WorkerAsyncFileSystemChromium.cpp',
590 'src/WorkerAsyncFileSystemChromium.h',
591 'src/WorkerAsyncFileWriterChromium.cpp',
592 'src/WorkerAsyncFileWriterChromium.h',
593 'src/WorkerFileSystemCallbacksBridge.cpp',
594 'src/WorkerFileSystemCallbacksBridge.h',
595 'src/WorkerFileWriterCallbacksBridge.cpp',
596 'src/WorkerFileWriterCallbacksBridge.h',
597 'src/win/WebInputEventFactory.cpp',
598 'src/win/WebScreenInfoFactory.cpp',
601 ['inside_chromium_build==1', {
602 'type': '<(component)',
605 ['component=="shared_library"', {
608 'WEBKIT_IMPLEMENTATION=1',
611 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore_bindings',
612 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore_test_support',
613 '<(chromium_src_dir)/base/base.gyp:test_support_base',
614 '<(chromium_src_dir)/build/temp_gyp/googleurl.gyp:googleurl',
615 '<(chromium_src_dir)/testing/gtest.gyp:gtest',
616 '<(chromium_src_dir)/testing/gmock.gyp:gmock',
617 '<(chromium_src_dir)/third_party/icu/icu.gyp:*',
618 '<(chromium_src_dir)/third_party/libjpeg_turbo/libjpeg.gyp:libjpeg',
619 '<(chromium_src_dir)/third_party/libpng/libpng.gyp:libpng',
620 '<(chromium_src_dir)/third_party/libxml/libxml.gyp:libxml',
621 '<(chromium_src_dir)/third_party/libxslt/libxslt.gyp:libxslt',
622 '<(chromium_src_dir)/third_party/modp_b64/modp_b64.gyp:modp_b64',
623 '<(chromium_src_dir)/third_party/ots/ots.gyp:ots',
624 '<(chromium_src_dir)/third_party/zlib/zlib.gyp:zlib',
625 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
626 # We must not add webkit_support here because of cyclic dependency.
628 'direct_dependent_settings': {
633 'export_dependent_settings': [
634 '<(chromium_src_dir)/build/temp_gyp/googleurl.gyp:googleurl',
635 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
638 # WARNING: Do not view this particular case as a precedent for
639 # including WebCore headers in DumpRenderTree project.
640 '../../WebCore/testing/v8', # for WebCoreTestSupport.h, needed to link in window.internals code.
643 '<@(webkit_unittest_files)',
644 'src/WebTestingSupport.cpp',
645 'public/WebTestingSupport.h',
646 'tests/WebUnitTests.cpp', # Components test runner support.
649 # We should not include files depending on webkit_support.
650 # These tests depend on webkit_support and
651 # functions defined only in !WEBKIT_IMPLEMENTATION.
652 'tests/IDBCleanupOnIOErrorTest.cpp',
653 'tests/LevelDBTest.cpp',
656 ['OS=="win" or OS=="mac"', {
658 '<(chromium_src_dir)/third_party/nss/nss.gyp:*',
662 # FIXME: It would be nice to enable this in shared builds too,
663 # but the test files have global constructors from the GTEST macro
664 # and we pull in the test files into the webkit target in the
666 'cflags!': ['-Wglobal-constructors'],
668 'WARNING_CFLAGS!': ['-Wglobal-constructors'],
675 ['incremental_chrome_dll==1', {
676 'UseLibraryDependencyInputs': "true",
683 }, { # else: inside_chromium_build==0
684 'direct_dependent_settings': {
686 '<(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.
692 '<(chromium_src_dir)/build/linux/system.gyp:fontconfig',
693 '<(chromium_src_dir)/build/linux/system.gyp:x11',
699 }, { # else: use_x11 != 1
701 ['exclude', '/x11/'],
702 ['exclude', '/linux/'],
705 ['toolkit_uses_gtk == 1', {
707 '<(chromium_src_dir)/build/linux/system.gyp:gtk',
712 }, { # else: toolkit_uses_gtk != 1
714 ['exclude', '/gtk/'],
720 'public/linux', # We need linux/WebFontRendering.h on Android.
722 }, { # else: OS!="android"
724 ['exclude', '/android/'],
731 }, { # else: OS!="mac"
733 ['exclude', '/mac/'],
740 }, { # else: OS!="win"
741 'sources/': [['exclude', '/win/']],
743 # FIXME: Turn on warnings on Windows.
747 ['"ENABLE_WEBGL=1" in feature_defines', {
752 '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
753 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
759 ['use_default_render_theme==1', {
763 }, { # else use_default_render_theme==0
765 ['exclude', 'src/default/WebRenderTheme.cpp'],
766 ['exclude', 'public/default/WebRenderTheme.h'],
770 'direct_dependent_settings': {
772 '../../Platform/chromium/',
775 'target_conditions': [
778 ['include', '^src/linux/WebFontRendering\\.cpp$'],
779 ['include', '^src/linux/WebFontRenderStyle\\.cpp$'],
785 'target_name': 'webkit_wtf_support',
786 'type': 'static_library',
788 '../../WTF/WTF.gyp/WTF.gyp:wtf',
791 'WEBKIT_IMPLEMENTATION=1',
794 '../../Platform/chromium',
797 'src/ChromiumCurrentTime.cpp',
798 'src/ChromiumOSRandomSource.cpp',
799 'src/ChromiumThreading.cpp',
802 ['component=="shared_library"', {
810 'target_name': 'webkit_test_support',
812 ['inside_chromium_build==1 and component=="shared_library"', {
814 }, { # else: inside_chromium_build==0 or component!="shared_library"
815 'type': 'static_library',
817 '../../WTF/WTF.gyp/WTF.gyp:wtf',
818 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore_test_support',
822 '../../WebCore/testing/v8', # for WebCoreTestSupport.h, needed to link in window.internals code.
823 '../../Platform/chromium/',
826 'src/WebTestingSupport.cpp',
827 'public/WebTestingSupport.h',
833 'target_name': 'inspector_resources',
837 '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources',
840 ['debug_devtools==0', {
841 'dependencies': ['concatenated_devtools_js',
842 'concatenated_devtools_elements_js',
843 'concatenated_devtools_resources_js',
844 'concatenated_devtools_network_js',
845 'concatenated_devtools_scripts_js',
846 'concatenated_devtools_timeline_js',
847 'concatenated_devtools_profiles_js',
848 'concatenated_devtools_audits_js',
849 'concatenated_devtools_codemirror_js',
850 'concatenated_heap_snapshot_worker_js',
851 'concatenated_script_formatter_worker_js',
852 'concatenated_devtools_css'],
857 'destination': '<(PRODUCT_DIR)/resources/inspector',
859 '<@(devtools_files)',
860 '<@(webinspector_files)',
861 '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendCommands.js',
864 ['debug_devtools==0', {
865 'files/': [['exclude', '\\.(js|css|html)$']],
870 'destination': '<(PRODUCT_DIR)/resources/inspector/UglifyJS',
872 '<@(webinspector_uglifyjs_files)',
875 ['debug_devtools==0', {
876 'files/': [['exclude', '\\.(js|css|html)$']],
881 'destination': '<(PRODUCT_DIR)/resources/inspector/Images',
883 '<@(webinspector_image_files)',
884 '<@(devtools_image_files)',
890 'target_name': 'devtools_html',
892 'sources': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
894 'action_name': 'devtools_html',
895 'script_name': 'scripts/generate_devtools_html.py',
896 'input_page': '../../WebCore/inspector/front-end/inspector.html',
900 '<@(devtools_files)',
902 'outputs': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
903 'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_outputs)', '<@(debug_devtools)', '<@(devtools_files)'],
907 'target_name': 'devtools_extension_api',
910 'action_name': 'devtools_html',
911 'script_name': 'scripts/generate_devtools_extension_api.py',
914 '<@(devtools_extension_api_files)',
916 'outputs': ['<(PRODUCT_DIR)/resources/inspector/devtools_extension_api.js'],
917 'action': ['python', '<@(_script_name)', '<@(_outputs)', '<@(devtools_extension_api_files)'],
921 'target_name': 'generate_devtools_grd',
925 'devtools_extension_api'
928 ['debug_devtools==0', {
929 'dependencies': ['concatenated_devtools_js',
930 'concatenated_devtools_elements_js',
931 'concatenated_devtools_resources_js',
932 'concatenated_devtools_network_js',
933 'concatenated_devtools_scripts_js',
934 'concatenated_devtools_timeline_js',
935 'concatenated_devtools_profiles_js',
936 'concatenated_devtools_audits_js',
937 'concatenated_devtools_codemirror_js',
938 'concatenated_heap_snapshot_worker_js',
939 'concatenated_script_formatter_worker_js',
940 'concatenated_devtools_css'],
942 'action_name': 'generate_devtools_grd',
943 'script_name': 'scripts/generate_devtools_grd.py',
945 '<(PRODUCT_DIR)/resources/inspector/devtools.html',
946 '<(PRODUCT_DIR)/resources/inspector/DevTools.js',
947 '<(PRODUCT_DIR)/resources/inspector/ElementsPanel.js',
948 '<(PRODUCT_DIR)/resources/inspector/ResourcesPanel.js',
949 '<(PRODUCT_DIR)/resources/inspector/NetworkPanel.js',
950 '<(PRODUCT_DIR)/resources/inspector/ScriptsPanel.js',
951 '<(PRODUCT_DIR)/resources/inspector/TimelinePanel.js',
952 '<(PRODUCT_DIR)/resources/inspector/ProfilesPanel.js',
953 '<(PRODUCT_DIR)/resources/inspector/AuditsPanel.js',
954 '<(PRODUCT_DIR)/resources/inspector/CodeMirrorTextEditor.js',
955 '<(PRODUCT_DIR)/resources/inspector/HeapSnapshotWorker.js',
956 '<(PRODUCT_DIR)/resources/inspector/ScriptFormatterWorker.js',
957 '<(PRODUCT_DIR)/resources/inspector/devTools.css',
958 '<(PRODUCT_DIR)/resources/inspector/devtools_extension_api.js',
959 '<@(webinspector_standalone_css_files)',
962 '<@(webinspector_image_files)',
963 '<@(devtools_image_files)',
971 '../../WebCore/inspector/front-end/Images',
974 'outputs': ['<(SHARED_INTERMEDIATE_DIR)/devtools/devtools_resources.grd'],
975 'action': ['python', '<@(_script_name)', '<@(_input_pages)', '--images', '<@(_search_path)', '--output', '<@(_outputs)'],
979 # If we're not concatenating devtools files, we want to
980 # run after the original files have been copied to
981 # <(PRODUCT_DIR)/resources/inspector.
982 'dependencies': ['inspector_resources'],
984 'action_name': 'generate_devtools_grd',
985 'script_name': 'scripts/generate_devtools_grd.py',
987 '<@(webinspector_files)',
988 '<@(devtools_files)',
989 '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendCommands.js',
990 '<(PRODUCT_DIR)/resources/inspector/devtools.html',
993 '<@(webinspector_image_files)',
994 '<@(devtools_image_files)',
1002 '../../WebCore/inspector/front-end/Images',
1005 'outputs': ['<(SHARED_INTERMEDIATE_DIR)/devtools/devtools_resources.grd'],
1006 'action': ['python', '<@(_script_name)', '<@(_input_pages)', '--images', '<@(_search_path)', '--output', '<@(_outputs)'],
1013 ['os_posix==1 and OS!="mac" and OS!="ios" and gcc_version>=46', {
1014 'target_defaults': {
1015 # Disable warnings about c++0x compatibility, as some names (such
1016 # as nullptr) conflict with upcoming c++0x types.
1017 'cflags_cc': ['-Wno-c++0x-compat'],
1023 'target_name': 'copy_mesa',
1025 'dependencies': ['<(chromium_src_dir)/third_party/mesa/mesa.gyp:osmesa'],
1027 'destination': '<(PRODUCT_DIR)/DumpRenderTree.app/Contents/MacOS/',
1028 'files': ['<(PRODUCT_DIR)/osmesa.so'],
1033 ['debug_devtools==0', {
1036 'target_name': 'concatenated_devtools_js',
1040 '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources'
1043 'action_name': 'concatenate_devtools_js',
1044 'script_name': 'scripts/concatenate_js_files.py',
1045 'input_page': '../../WebCore/inspector/front-end/inspector.html',
1049 '<@(webinspector_files)',
1050 '<@(devtools_files)',
1051 '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendCommands.js'
1054 '../../WebCore/inspector/front-end',
1056 '<(SHARED_INTERMEDIATE_DIR)/webcore',
1058 'outputs': ['<(PRODUCT_DIR)/resources/inspector/DevTools.js'],
1059 'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_search_path)', '<@(_outputs)'],
1063 'target_name': 'concatenated_devtools_elements_js',
1066 'action_name': 'concatenate_devtools_elements_js',
1067 'script_name': 'scripts/inline_js_imports.py',
1068 'input_file': '../../WebCore/inspector/front-end/ElementsPanel.js',
1071 '<@(webinspector_elements_js_files)',
1073 'search_path': '../../WebCore/inspector/front-end',
1074 'outputs': ['<(PRODUCT_DIR)/resources/inspector/ElementsPanel.js'],
1075 'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1079 'target_name': 'concatenated_devtools_resources_js',
1082 'action_name': 'concatenate_devtools_resources_js',
1083 'script_name': 'scripts/inline_js_imports.py',
1084 'input_file': '../../WebCore/inspector/front-end/ResourcesPanel.js',
1087 '<@(webinspector_resources_js_files)',
1089 'search_path': '../../WebCore/inspector/front-end',
1090 'outputs': ['<(PRODUCT_DIR)/resources/inspector/ResourcesPanel.js'],
1091 'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1095 'target_name': 'concatenated_devtools_network_js',
1098 'action_name': 'concatenate_devtools_network_js',
1099 'script_name': 'scripts/inline_js_imports.py',
1100 'input_file': '../../WebCore/inspector/front-end/NetworkPanel.js',
1103 '<@(webinspector_network_js_files)',
1105 'search_path': '../../WebCore/inspector/front-end',
1106 'outputs': ['<(PRODUCT_DIR)/resources/inspector/NetworkPanel.js'],
1107 'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1111 'target_name': 'concatenated_devtools_scripts_js',
1114 'action_name': 'concatenate_devtools_scripts_js',
1115 'script_name': 'scripts/inline_js_imports.py',
1116 'input_file': '../../WebCore/inspector/front-end/ScriptsPanel.js',
1119 '<@(webinspector_scripts_js_files)',
1121 'search_path': '../../WebCore/inspector/front-end',
1122 'outputs': ['<(PRODUCT_DIR)/resources/inspector/ScriptsPanel.js'],
1123 'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1127 'target_name': 'concatenated_devtools_timeline_js',
1130 'action_name': 'concatenate_devtools_timeline_js',
1131 'script_name': 'scripts/inline_js_imports.py',
1132 'input_file': '../../WebCore/inspector/front-end/TimelinePanel.js',
1135 '<@(webinspector_timeline_js_files)',
1137 'search_path': '../../WebCore/inspector/front-end',
1138 'outputs': ['<(PRODUCT_DIR)/resources/inspector/TimelinePanel.js'],
1139 'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1143 'target_name': 'concatenated_devtools_profiles_js',
1146 'action_name': 'concatenate_devtools_profiles_js',
1147 'script_name': 'scripts/inline_js_imports.py',
1148 'input_file': '../../WebCore/inspector/front-end/ProfilesPanel.js',
1151 '<@(webinspector_profiles_js_files)',
1153 'search_path': '../../WebCore/inspector/front-end',
1154 'outputs': ['<(PRODUCT_DIR)/resources/inspector/ProfilesPanel.js'],
1155 'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1159 'target_name': 'concatenated_devtools_audits_js',
1162 'action_name': 'concatenate_devtools_audits_js',
1163 'script_name': 'scripts/inline_js_imports.py',
1164 'input_file': '../../WebCore/inspector/front-end/AuditsPanel.js',
1167 '<@(webinspector_audits_js_files)',
1169 'search_path': '../../WebCore/inspector/front-end',
1170 'outputs': ['<(PRODUCT_DIR)/resources/inspector/AuditsPanel.js'],
1171 'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1175 'target_name': 'concatenated_devtools_codemirror_js',
1178 'action_name': 'concatenate_devtools_codemirror_js',
1179 'script_name': 'scripts/inline_js_imports.py',
1180 'input_file': '../../WebCore/inspector/front-end/CodeMirrorTextEditor.js',
1183 '<@(webinspector_codemirror_js_files)',
1185 'search_path': '../../WebCore/inspector/front-end',
1186 'outputs': ['<(PRODUCT_DIR)/resources/inspector/CodeMirrorTextEditor.js'],
1187 'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)', 'true'],
1191 'target_name': 'concatenated_heap_snapshot_worker_js',
1194 'action_name': 'concatenate_heap_snapshot_worker_js',
1195 'script_name': 'scripts/inline_js_imports.py',
1196 'input_file': '../../WebCore/inspector/front-end/HeapSnapshotWorker.js',
1200 '../../WebCore/inspector/front-end/HeapSnapshot.js',
1201 '../../WebCore/inspector/front-end/HeapSnapshotLoader.js',
1202 '../../WebCore/inspector/front-end/HeapSnapshotWorkerDispatcher.js',
1203 '../../WebCore/inspector/front-end/JSHeapSnapshot.js',
1204 '../../WebCore/inspector/front-end/utilities.js',
1206 'search_path': '../../WebCore/inspector/front-end',
1207 'outputs': ['<(PRODUCT_DIR)/resources/inspector/HeapSnapshotWorker.js'],
1208 'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1212 'target_name': 'concatenated_script_formatter_worker_js',
1215 'action_name': 'concatenate_script_formatter_worker_js',
1216 'script_name': 'scripts/inline_js_imports.py',
1217 'input_file': '../../WebCore/inspector/front-end/ScriptFormatterWorker.js',
1221 '<@(webinspector_uglifyjs_files)'
1223 'search_path': '../../WebCore/inspector/front-end',
1224 'outputs': ['<(PRODUCT_DIR)/resources/inspector/ScriptFormatterWorker.js'],
1225 'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1229 'target_name': 'concatenated_devtools_css',
1235 'action_name': 'concatenate_devtools_css',
1236 'script_name': 'scripts/concatenate_css_files.py',
1237 'input_page': '../../WebCore/inspector/front-end/inspector.html',
1241 '<@(webinspector_files)',
1242 '<@(devtools_files)'
1245 '../../WebCore/inspector/front-end',
1248 'outputs': ['<(PRODUCT_DIR)/resources/inspector/devTools.css'],
1249 'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_search_path)', '<@(_outputs)'],
1252 'destination': '<(PRODUCT_DIR)/resources/inspector',
1254 '<@(webinspector_standalone_css_files)',
1261 'target_defaults': {
1262 'cflags': ['-Wglobal-constructors'],
1264 'WARNING_CFLAGS': ['-Wglobal-constructors'],