2 # Copyright (C) 2010 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.
33 '../../WebCore/WebCore.gypi',
34 '../../../Tools/DumpRenderTree/DumpRenderTree.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',
46 'webkit_target_type': 'static_library',
48 # WebKit is checked out in src/chromium/third_party/WebKit
49 'chromium_src_dir': '../../../../..',
50 'webkit_target_type': '<(library)',
53 'ahem_path': '../../../Tools/DumpRenderTree/qt/fonts/AHEM____.TTF',
55 # If debug_devtools is set to 1, JavaScript files for DevTools are
56 # stored as is. Otherwise, a concatenated file is stored.
59 # List of DevTools source files, ordered by dependencies. It is used both
60 # for copying them to resource dir, and for generating 'devtools.html' file.
62 '<@(devtools_css_files)',
63 '<@(devtools_js_files)',
68 'target_name': 'webkit',
69 'msvs_guid': '5ECEC9E5-8F23-47B6-93E0-C3B328B3BE65',
71 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
72 '<(chromium_src_dir)/app/app.gyp:app_base', # For GLContext
73 '<(chromium_src_dir)/skia/skia.gyp:skia',
74 '<(chromium_src_dir)/third_party/npapi/npapi.gyp:npapi',
75 '<(chromium_src_dir)/third_party/angle/src/build_angle.gyp:translator_glsl',
77 'export_dependent_settings': [
78 '<(chromium_src_dir)/skia/skia.gyp:skia',
79 '<(chromium_src_dir)/third_party/npapi/npapi.gyp:npapi',
84 '<(chromium_src_dir)/third_party/angle/include',
87 'WEBKIT_IMPLEMENTATION=1',
90 'public/gtk/WebInputEventFactory.h',
91 'public/linux/WebFontRendering.h',
92 'public/linux/WebFontRenderStyle.h',
93 'public/linux/WebRenderTheme.h',
94 'public/linux/WebThemeEngine.h',
95 'public/x11/WebScreenInfoFactory.h',
96 'public/mac/WebInputEventFactory.h',
97 'public/mac/WebSandboxSupport.h',
98 'public/mac/WebScreenInfoFactory.h',
99 'public/mac/WebSubstringUtil.h',
100 'public/mac/WebThemeEngine.h',
101 'public/WebAccessibilityCache.h',
102 'public/WebAccessibilityNotification.h',
103 'public/WebAccessibilityObject.h',
104 'public/WebAccessibilityRole.h',
105 'public/WebAnimationController.h',
106 'public/WebApplicationCacheHost.h',
107 'public/WebApplicationCacheHostClient.h',
108 'public/WebAttribute.h',
109 'public/WebAudioBus.h',
110 'public/WebAudioDevice.h',
111 'public/WebAutoFillClient.h',
112 'public/WebBindings.h',
113 'public/WebBlobData.h',
114 'public/WebBlobRegistry.h',
116 'public/WebCanvas.h',
117 'public/WebClipboard.h',
119 'public/WebColorName.h',
120 'public/WebCommon.h',
121 'public/WebCommonWorkerClient.h',
122 'public/WebCompositionUnderline.h',
123 'public/WebConsoleMessage.h',
124 'public/WebContextMenuData.h',
125 'public/WebCookie.h',
126 'public/WebCookieJar.h',
127 'public/WebCrossOriginPreflightResultCache.h',
128 'public/WebCString.h',
129 'public/WebCursorInfo.h',
130 'public/WebDOMEvent.h',
131 'public/WebDOMEventListener.h',
132 'public/WebDOMMouseEvent.h',
133 'public/WebDOMMutationEvent.h',
134 'public/WebDOMStringList.h',
136 'public/WebDatabase.h',
137 'public/WebDatabaseObserver.h',
138 'public/WebDataSource.h',
139 'public/WebDevToolsAgent.h',
140 'public/WebDevToolsAgentClient.h',
141 'public/WebDevToolsFrontend.h',
142 'public/WebDevToolsFrontendClient.h',
143 'public/WebDeviceOrientation.h',
144 'public/WebDeviceOrientationClient.h',
145 'public/WebDeviceOrientationClientMock.h',
146 'public/WebDeviceOrientationController.h',
147 'public/WebDocument.h',
148 'public/WebDocumentType.h',
149 'public/WebDragData.h',
150 'public/WebEditingAction.h',
151 'public/WebElement.h',
152 'public/WebExceptionCode.h',
153 'public/WebExternalPopupMenu.h',
154 'public/WebExternalPopupMenuClient.h',
155 'public/WebFileChooserCompletion.h',
156 'public/WebFileChooserParams.h',
157 'public/WebFileError.h',
158 'public/WebFileInfo.h',
159 'public/WebFileSystem.h',
160 'public/WebFileSystemCallbacks.h',
161 'public/WebFileSystemEntry.h',
162 'public/WebFileUtilities.h',
163 'public/WebFileWriter.h',
164 'public/WebFileWriterClient.h',
165 'public/WebFindOptions.h',
166 'public/WebFloatPoint.h',
167 'public/WebFloatRect.h',
169 'public/WebFontDescription.h',
171 'public/WebFrameClient.h',
172 'public/WebFontCache.h',
173 'public/WebFormControlElement.h',
174 'public/WebFormElement.h',
175 'public/WebGeolocationClient.h',
176 'public/WebGeolocationClientMock.h',
177 'public/WebGeolocationController.h',
178 'public/WebGeolocationError.h',
179 'public/WebGeolocationPermissionRequest.h',
180 'public/WebGeolocationPermissionRequestManager.h',
181 'public/WebGeolocationPosition.h',
182 'public/WebGlyphCache.h',
183 'public/WebGraphicsContext3D.h',
184 'public/WebHistoryItem.h',
185 'public/WebHTTPBody.h',
186 'public/WebHTTPLoadInfo.h',
187 'public/WebIconLoadingCompletion.h',
189 'public/WebImageDecoder.h',
190 'public/WebIDBCallbacks.h',
191 'public/WebIDBCursor.h',
192 'public/WebIDBDatabase.h',
193 'public/WebIDBDatabaseCallbacks.h',
194 'public/WebIDBDatabaseError.h',
195 'public/WebIDBFactory.h',
196 'public/WebIDBKeyRange.h',
197 'public/WebIDBIndex.h',
198 'public/WebIDBKey.h',
199 'public/WebIDBKeyPath.h',
200 'public/WebIDBObjectStore.h',
201 'public/WebIDBTransaction.h',
202 'public/WebIDBTransactionCallbacks.h',
203 'public/WebInputElement.h',
204 'public/WebInputEvent.h',
206 'public/WebKitClient.h',
207 'public/WebLabelElement.h',
208 'public/WebLocalizedString.h',
209 'public/WebMediaElement.h',
210 'public/WebMediaPlayer.h',
211 'public/WebMediaPlayerAction.h',
212 'public/WebMediaPlayerClient.h',
213 'public/WebMenuItemInfo.h',
214 'public/WebMessagePortChannel.h',
215 'public/WebMessagePortChannelClient.h',
216 'public/WebMimeRegistry.h',
217 'public/WebNamedNodeMap.h',
218 'public/WebNavigationType.h',
219 'public/WebNetworkStateNotifier.h',
221 'public/WebNodeCollection.h',
222 'public/WebNodeList.h',
223 'public/WebNonCopyable.h',
224 'public/WebNotification.h',
225 'public/WebNotificationPresenter.h',
226 'public/WebNotificationPermissionCallback.h',
227 'public/WebOptionElement.h',
228 'public/WebPageSerializer.h',
229 'public/WebPageSerializerClient.h',
230 'public/WebPageVisibilityState.h',
231 'public/WebPasswordAutocompleteListener.h',
232 'public/WebPasswordFormData.h',
233 'public/WebPerformance.h',
234 'public/WebPlugin.h',
235 'public/WebPluginContainer.h',
236 'public/WebPluginDocument.h',
237 'public/WebPluginListBuilder.h',
239 'public/WebPopupMenu.h',
240 'public/WebPopupMenuInfo.h',
241 'public/WebPopupType.h',
242 'public/WebPrivatePtr.h',
243 'public/WebPrivateOwnPtr.h',
246 'public/WebRegularExpression.h',
247 'public/WebRuntimeFeatures.h',
248 'public/WebScrollbar.h',
249 'public/WebScrollbarClient.h',
250 'public/WebScreenInfo.h',
251 'public/WebScriptController.h',
252 'public/WebScriptSource.h',
253 'public/WebSearchableFormData.h',
254 'public/WebSecurityOrigin.h',
255 'public/WebSecurityPolicy.h',
256 'public/WebSelectElement.h',
257 'public/WebSerializedScriptValue.h',
258 'public/WebSettings.h',
259 'public/WebSharedWorker.h',
260 'public/WebSharedWorkerRepository.h',
262 'public/WebSocketStreamError.h',
263 'public/WebSocketStreamHandle.h',
264 'public/WebSocketStreamHandleClient.h',
265 'public/WebSpeechInputController.h',
266 'public/WebSpeechInputControllerMock.h',
267 'public/WebSpeechInputListener.h',
268 'public/WebSpeechInputResult.h',
269 'public/WebStorageArea.h',
270 'public/WebStorageEventDispatcher.h',
271 'public/WebStorageQuotaCallbacks.h',
272 'public/WebStorageQuotaType.h',
273 'public/WebStorageNamespace.h',
274 'public/WebString.h',
275 'public/WebTextAffinity.h',
276 'public/WebTextCaseSensitivity.h',
277 'public/WebTextCheckingResult.h',
278 'public/WebTextCheckingCompletion.h',
279 'public/WebTextDirection.h',
280 'public/WebTextInputType.h',
281 'public/WebTextRun.h',
282 'public/WebThreadSafeData.h',
284 'public/WebURLError.h',
285 'public/WebURLLoader.h',
286 'public/WebURLLoaderOptions.h',
287 'public/WebURLLoadTiming.h',
288 'public/WebURLLoaderClient.h',
289 'public/WebURLRequest.h',
290 'public/WebURLResponse.h',
291 'public/WebVector.h',
293 'public/WebViewClient.h',
294 'public/WebWidget.h',
295 'public/WebWidgetClient.h',
296 'public/WebWorker.h',
297 'public/WebWorkerClient.h',
298 'public/win/WebInputEventFactory.h',
299 'public/win/WebSandboxSupport.h',
300 'public/win/WebScreenInfoFactory.h',
301 'public/win/WebThemeEngine.h',
302 'src/ApplicationCacheHost.cpp',
303 'src/ApplicationCacheHostInternal.h',
304 'src/AssertMatchingEnums.cpp',
305 'src/AssociatedURLLoader.cpp',
306 'src/AssociatedURLLoader.h',
307 'src/AsyncFileSystemChromium.cpp',
308 'src/AsyncFileSystemChromium.h',
309 'src/AsyncFileWriterChromium.cpp',
310 'src/AsyncFileWriterChromium.h',
311 'src/AudioDestinationChromium.cpp',
312 'src/AudioDestinationChromium.h',
313 'src/AutoFillPopupMenuClient.cpp',
314 'src/AutoFillPopupMenuClient.h',
315 'src/BackForwardListChromium.cpp',
316 'src/BackForwardListChromium.h',
317 'src/BlobRegistryProxy.cpp',
318 'src/BlobRegistryProxy.h',
319 'src/BoundObject.cpp',
321 'src/ChromeClientImpl.cpp',
322 'src/ChromeClientImpl.h',
323 'src/ChromiumCurrentTime.cpp',
324 'src/ChromiumOSRandomSource.cpp',
325 'src/ChromiumThreading.cpp',
326 'src/CompositionUnderlineBuilder.h',
327 'src/CompositionUnderlineVectorBuilder.cpp',
328 'src/CompositionUnderlineVectorBuilder.h',
329 'src/ContextMenuClientImpl.cpp',
330 'src/ContextMenuClientImpl.h',
331 'src/DatabaseObserver.cpp',
332 'src/DebuggerAgentImpl.cpp',
333 'src/DebuggerAgentImpl.h',
334 'src/DebuggerAgentManager.cpp',
335 'src/DebuggerAgentManager.h',
336 'src/DeviceOrientationClientProxy.cpp',
337 'src/DeviceOrientationClientProxy.h',
338 'src/DOMUtilitiesPrivate.cpp',
339 'src/DOMUtilitiesPrivate.h',
340 'src/DragClientImpl.cpp',
341 'src/DragClientImpl.h',
342 'src/DragScrollTimer.cpp',
343 'src/DragScrollTimer.h',
344 'src/EditorClientImpl.cpp',
345 'src/EditorClientImpl.h',
346 'src/EventListenerWrapper.cpp',
347 'src/EventListenerWrapper.h',
348 'src/Extensions3DChromium.cpp',
349 'src/ExternalPopupMenu.cpp',
350 'src/ExternalPopupMenu.h',
351 'src/FrameLoaderClientImpl.cpp',
352 'src/FrameLoaderClientImpl.h',
353 'src/FrameNetworkingContextImpl.h',
354 'src/GeolocationClientProxy.cpp',
355 'src/GeolocationClientProxy.h',
356 'src/GraphicsContext3DChromium.cpp',
357 'src/GraphicsContext3DInternal.h',
358 'src/gtk/WebFontInfo.cpp',
359 'src/gtk/WebFontInfo.h',
360 'src/gtk/WebInputEventFactory.cpp',
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/IDBIndexBackendProxy.cpp',
372 'src/IDBIndexBackendProxy.h',
373 'src/IDBObjectStoreBackendProxy.cpp',
374 'src/IDBObjectStoreBackendProxy.h',
375 'src/IDBTransactionBackendProxy.cpp',
376 'src/IDBTransactionBackendProxy.h',
377 'src/IDBTransactionCallbacksProxy.cpp',
378 'src/IDBTransactionCallbacksProxy.h',
379 'src/InspectorClientImpl.cpp',
380 'src/InspectorClientImpl.h',
381 'src/InspectorFrontendClientImpl.cpp',
382 'src/InspectorFrontendClientImpl.h',
383 'src/linux/WebFontRendering.cpp',
384 'src/linux/WebFontRenderStyle.cpp',
385 'src/linux/WebRenderTheme.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/LocalizedStrings.cpp',
392 'src/MediaPlayerPrivateChromium.cpp',
393 'src/NotificationPresenterImpl.h',
394 'src/NotificationPresenterImpl.cpp',
395 'src/painting/GraphicsContextBuilder.h',
396 'src/PlatformBridge.cpp',
397 'src/PlatformMessagePortChannel.cpp',
398 'src/PlatformMessagePortChannel.h',
399 'src/ResourceHandle.cpp',
400 'src/SharedWorkerRepository.cpp',
401 'src/SocketStreamHandle.cpp',
402 'src/SpeechInputClientImpl.cpp',
403 'src/SpeechInputClientImpl.h',
404 'src/StorageAreaProxy.cpp',
405 'src/StorageAreaProxy.h',
406 'src/StorageEventDispatcherChromium.cpp',
407 'src/StorageEventDispatcherImpl.cpp',
408 'src/StorageEventDispatcherImpl.h',
409 'src/StorageInfoChromium.cpp',
410 'src/StorageNamespaceProxy.cpp',
411 'src/StorageNamespaceProxy.h',
412 'src/TemporaryGlue.h',
413 'src/WebTextCheckingCompletionImpl.h',
414 'src/WebTextCheckingCompletionImpl.cpp',
415 'src/VideoFrameChromiumImpl.cpp',
416 'src/VideoFrameChromiumImpl.h',
417 'src/WebAccessibilityCache.cpp',
418 'src/WebAccessibilityCacheImpl.cpp',
419 'src/WebAccessibilityCacheImpl.h',
420 'src/WebAccessibilityObject.cpp',
421 'src/WebAnimationControllerImpl.cpp',
422 'src/WebAnimationControllerImpl.h',
423 'src/WebAttribute.cpp',
424 'src/WebAudioBus.cpp',
425 'src/WebBindings.cpp',
426 'src/WebBlobData.cpp',
430 'src/WebCrossOriginPreflightResultCache.cpp',
431 'src/WebCString.cpp',
432 'src/WebCursorInfo.cpp',
433 'src/WebDOMEvent.cpp',
434 'src/WebDOMEventListener.cpp',
435 'src/WebDOMEventListenerPrivate.cpp',
436 'src/WebDOMEventListenerPrivate.h',
437 'src/WebDOMMouseEvent.cpp',
438 'src/WebDOMMutationEvent.cpp',
439 'src/WebDOMStringList.cpp',
441 'src/WebDatabase.cpp',
442 'src/WebDataSourceImpl.cpp',
443 'src/WebDataSourceImpl.h',
444 'src/WebDevToolsAgentImpl.cpp',
445 'src/WebDevToolsAgentImpl.h',
446 'src/WebDevToolsFrontendImpl.cpp',
447 'src/WebDevToolsFrontendImpl.h',
448 'src/WebDeviceOrientation.cpp',
449 'src/WebDeviceOrientationClientMock.cpp',
450 'src/WebDeviceOrientationController.cpp',
451 'src/WebDocument.cpp',
452 'src/WebDocumentType.cpp',
453 'src/WebDragData.cpp',
454 'src/WebElement.cpp',
455 'src/WebEntities.cpp',
457 'src/WebFileChooserCompletionImpl.cpp',
458 'src/WebFileChooserCompletionImpl.h',
459 'src/WebFileSystemCallbacksImpl.cpp',
460 'src/WebFileSystemCallbacksImpl.h',
461 'src/WebFontCache.cpp',
462 'src/WebFontDescription.cpp',
463 'src/WebFontImpl.cpp',
465 'src/WebFormControlElement.cpp',
466 'src/WebFormElement.cpp',
467 'src/WebFrameImpl.cpp',
468 'src/WebFrameImpl.h',
469 'src/WebGeolocationController.cpp',
470 'src/WebGeolocationClientMock.cpp',
471 'src/WebGeolocationError.cpp',
472 'src/WebGeolocationPermissionRequest.cpp',
473 'src/WebGeolocationPermissionRequestManager.cpp',
474 'src/WebGeolocationPosition.cpp',
475 'src/WebGlyphCache.cpp',
476 'src/WebHistoryItem.cpp',
477 'src/WebHTTPBody.cpp',
478 'src/WebHTTPLoadInfo.cpp',
479 'src/WebIconLoadingCompletionImpl.cpp',
480 'src/WebIconLoadingCompletionImpl.h',
481 'src/WebIDBCallbacksImpl.cpp',
482 'src/WebIDBCallbacksImpl.h',
483 'src/WebIDBCursorImpl.cpp',
484 'src/WebIDBCursorImpl.h',
485 'src/WebIDBDatabaseCallbacksImpl.cpp',
486 'src/WebIDBDatabaseCallbacksImpl.h',
487 'src/WebIDBDatabaseError.cpp',
488 'src/WebIDBDatabaseImpl.cpp',
489 'src/WebIDBDatabaseImpl.h',
490 'src/WebIDBFactoryImpl.cpp',
491 'src/WebIDBFactoryImpl.h',
492 'src/WebIDBIndexImpl.cpp',
493 'src/WebIDBIndexImpl.h',
495 'src/WebIDBKeyPath.cpp',
496 'src/WebIDBKeyRange.cpp',
497 'src/WebIDBObjectStoreImpl.cpp',
498 'src/WebIDBObjectStoreImpl.h',
499 'src/WebIDBTransactionImpl.cpp',
500 'src/WebIDBTransactionImpl.h',
501 'src/WebIDBTransactionCallbacksImpl.cpp',
502 'src/WebIDBTransactionCallbacksImpl.h',
503 'src/WebImageCG.cpp',
504 'src/WebImageDecoder.cpp',
505 'src/WebImageSkia.cpp',
506 'src/WebInputElement.cpp',
507 'src/WebInputEvent.cpp',
508 'src/WebInputEventConversion.cpp',
509 'src/WebInputEventConversion.h',
511 'src/WebLabelElement.cpp',
512 'src/WebMediaElement.cpp',
513 'src/WebMediaPlayerClientImpl.cpp',
514 'src/WebMediaPlayerClientImpl.h',
515 'src/WebNamedNodeMap.cpp',
516 'src/WebNetworkStateNotifier.cpp',
518 'src/WebNodeCollection.cpp',
519 'src/WebNodeList.cpp',
520 'src/WebNotification.cpp',
521 'src/WebOptionElement.cpp',
522 'src/WebPageSerializer.cpp',
523 'src/WebPageSerializerImpl.cpp',
524 'src/WebPageSerializerImpl.h',
525 'src/WebPasswordFormData.cpp',
526 'src/WebPasswordFormUtils.cpp',
527 'src/WebPasswordFormUtils.h',
528 'src/WebPerformance.cpp',
529 'src/WebPluginContainerImpl.h',
530 'src/WebPluginContainerImpl.cpp',
531 'src/WebPluginDocument.cpp',
532 'src/WebPluginListBuilderImpl.cpp',
533 'src/WebPluginListBuilderImpl.h',
534 'src/WebPluginLoadObserver.cpp',
535 'src/WebPluginLoadObserver.h',
536 'src/WebPopupMenuImpl.cpp',
537 'src/WebPopupMenuImpl.h',
539 'src/WebRegularExpression.cpp',
540 'src/WebRuntimeFeatures.cpp',
541 'src/WebScriptController.cpp',
542 'src/WebScrollbarImpl.cpp',
543 'src/WebScrollbarImpl.h',
544 'src/WebSearchableFormData.cpp',
545 'src/WebSecurityOrigin.cpp',
546 'src/WebSecurityPolicy.cpp',
547 'src/WebSelectElement.cpp',
548 'src/WebSerializedScriptValue.cpp',
549 'src/WebSettingsImpl.cpp',
550 'src/WebSettingsImpl.h',
551 'src/WebSharedWorkerImpl.cpp',
552 'src/WebSharedWorkerImpl.h',
553 'src/WebSpeechInputControllerMockImpl.cpp',
554 'src/WebSpeechInputControllerMockImpl.h',
555 'src/WebSpeechInputResult.cpp',
556 'src/WebStorageAreaImpl.cpp',
557 'src/WebStorageAreaImpl.h',
558 'src/WebStorageEventDispatcherImpl.cpp',
559 'src/WebStorageEventDispatcherImpl.h',
560 'src/WebStorageNamespaceImpl.cpp',
561 'src/WebStorageNamespaceImpl.h',
562 'src/WebStorageQuotaCallbacksImpl.cpp',
563 'src/WebStorageQuotaCallbacksImpl.h',
565 'src/WebTextRun.cpp',
566 'src/WebThreadSafeData.cpp',
568 'src/WebURLLoadTiming.cpp',
569 'src/WebURLRequest.cpp',
570 'src/WebURLRequestPrivate.h',
571 'src/WebURLResponse.cpp',
572 'src/WebURLResponsePrivate.h',
573 'src/WebURLError.cpp',
574 'src/WebViewImpl.cpp',
576 'src/WebWorkerBase.cpp',
577 'src/WebWorkerBase.h',
578 'src/WebWorkerClientImpl.cpp',
579 'src/WebWorkerClientImpl.h',
580 'src/WebWorkerImpl.cpp',
581 'src/WebWorkerImpl.h',
582 'src/WorkerAsyncFileSystemChromium.cpp',
583 'src/WorkerAsyncFileSystemChromium.h',
584 'src/WorkerAsyncFileWriterChromium.cpp',
585 'src/WorkerAsyncFileWriterChromium.h',
586 'src/WorkerFileSystemCallbacksBridge.cpp',
587 'src/WorkerFileSystemCallbacksBridge.h',
588 'src/WorkerFileWriterCallbacksBridge.cpp',
589 'src/WorkerFileWriterCallbacksBridge.h',
590 'src/WrappedResourceRequest.h',
591 'src/WrappedResourceResponse.h',
592 'src/win/WebInputEventFactory.cpp',
593 'src/win/WebScreenInfoFactory.cpp',
596 ['inside_chromium_build==1', {
597 'type': '<(component)',
600 ['component=="shared_library"', {
605 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore_bindings',
606 '<(chromium_src_dir)/base/base.gyp:test_support_base',
607 '<(chromium_src_dir)/build/temp_gyp/googleurl.gyp:googleurl',
608 '<(chromium_src_dir)/testing/gtest.gyp:gtest',
609 '<(chromium_src_dir)/testing/gmock.gyp:gmock',
610 '<(chromium_src_dir)/third_party/icu/icu.gyp:*',
611 '<(chromium_src_dir)/third_party/libjpeg/libjpeg.gyp:libjpeg',
612 '<(chromium_src_dir)/third_party/libpng/libpng.gyp:libpng',
613 '<(chromium_src_dir)/third_party/libxml/libxml.gyp:libxml',
614 '<(chromium_src_dir)/third_party/libxslt/libxslt.gyp:libxslt',
615 '<(chromium_src_dir)/third_party/modp_b64/modp_b64.gyp:modp_b64',
616 '<(chromium_src_dir)/third_party/ots/ots.gyp:ots',
617 '<(chromium_src_dir)/third_party/zlib/zlib.gyp:zlib',
618 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
619 # We must not add webkit_support here because of cyclic dependency.
621 'direct_dependent_settings': {
626 'export_dependent_settings': [
627 '<(chromium_src_dir)/build/temp_gyp/googleurl.gyp:googleurl',
628 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
631 '<@(webkit_unittest_files)',
632 'tests/WebUnitTests.cpp', # Components test runner support.
635 # We should not include files depending on webkit_support.
636 'tests/CCThreadTest.cpp',
637 # These tests depend on webkit_support and
638 # functions defined only in !WEBKIT_IMPLEMENTATION.
639 'tests/WebFrameTest.cpp',
640 'tests/WebPageNewSerializerTest.cpp',
641 'tests/WebPageSerializerTest.cpp',
644 ['OS=="win" or OS=="mac"', {
646 '<(chromium_src_dir)/third_party/nss/nss.gyp:*',
653 'type': '<(webkit_target_type)'
655 ['OS=="linux" or OS=="freebsd"', {
657 '<(chromium_src_dir)/build/linux/system.gyp:fontconfig',
658 '<(chromium_src_dir)/build/linux/system.gyp:gtk',
659 '<(chromium_src_dir)/build/linux/system.gyp:x11',
666 }, { # else: OS!="linux" and OS!="freebsd"
668 ['exclude', '/gtk/'],
669 ['exclude', '/x11/'],
670 ['exclude', '/linux/'],
678 ['exclude', 'Skia\\.cpp$'],
680 }, { # else: OS!="mac"
682 ['exclude', '/mac/'],
683 ['exclude', 'CG\\.cpp$'],
690 }, { # else: OS!="win"
691 'sources/': [['exclude', '/win/']],
693 # FIXME: Turn on warnings on Windows.
697 ['"ENABLE_WEBGL=1" in feature_defines', {
702 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
712 'target_name': 'inspector_resources',
716 '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources',
719 ['debug_devtools==0', {
720 'dependencies': ['concatenated_devtools_js',
721 'concatenated_script_formatter_worker_js',
722 'concatenated_devtools_css'],
727 'destination': '<(PRODUCT_DIR)/resources/inspector',
729 '<@(devtools_files)',
730 '<@(webinspector_files)',
731 '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js',
734 ['debug_devtools==0', {
735 'files/': [['exclude', '\\.(js|css|html)$']],
740 'destination': '<(PRODUCT_DIR)/resources/inspector/UglifyJS',
742 '<@(webinspector_uglifyjs_files)',
745 ['debug_devtools==0', {
746 'files/': [['exclude', '\\.(js|css|html)$']],
751 'destination': '<(PRODUCT_DIR)/resources/inspector/Images',
753 '<@(webinspector_image_files)',
754 '<@(devtools_image_files)',
760 'target_name': 'devtools_html',
762 'sources': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
764 'action_name': 'devtools_html',
765 'script_name': 'scripts/generate_devtools_html.py',
766 'input_page': '../../WebCore/inspector/front-end/inspector.html',
770 '<@(devtools_files)',
772 'outputs': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
773 'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_outputs)', '<@(debug_devtools)', '<@(devtools_files)'],
777 'target_name': 'generate_devtools_grd',
783 ['debug_devtools==0', {
784 'dependencies': ['concatenated_devtools_js',
785 'concatenated_heap_snapshot_worker_js',
786 'concatenated_script_formatter_worker_js',
787 'concatenated_devtools_css'],
789 # If we're not concatenating devtools files, we want to
790 # run after the original files have been copied to
791 # <(PRODUCT_DIR)/resources/inspector.
792 'dependencies': ['inspector_resources'],
796 'action_name': 'generate_devtools_grd',
797 'script_name': 'scripts/generate_devtools_grd.py',
799 '<(PRODUCT_DIR)/resources/inspector/devtools.html',
800 '<(PRODUCT_DIR)/resources/inspector/DevTools.js',
801 '<(PRODUCT_DIR)/resources/inspector/HeapSnapshotWorker.js',
802 '<(PRODUCT_DIR)/resources/inspector/ScriptFormatterWorker.js',
803 '<(PRODUCT_DIR)/resources/inspector/devTools.css',
806 '<@(webinspector_image_files)',
807 '<@(devtools_image_files)',
815 '../../WebCore/inspector/front-end/Images',
818 'outputs': ['<(SHARED_INTERMEDIATE_DIR)/devtools/devtools_resources.grd'],
819 'action': ['python', '<@(_script_name)', '<@(_input_pages)', '--images', '<@(_search_path)', '--output', '<@(_outputs)'],
823 'target_name': 'generate_devtools_zip',
826 '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources',
829 'action_name': 'generate_devtools_zip',
830 'script_name': 'scripts/generate_devtools_zip.py',
831 'inspector_html': '../../WebCore/inspector/front-end/inspector.html',
834 'scripts/generate_devtools_html.py',
835 '<@(_inspector_html)',
836 '<@(devtools_files)',
837 '<@(webinspector_files)',
838 '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js',
839 '<@(webinspector_image_files)',
840 '<@(devtools_image_files)',
843 '../../WebCore/inspector/front-end',
845 '<(SHARED_INTERMEDIATE_DIR)/webcore',
847 'image_search_path': [
848 '../../WebCore/inspector/front-end/Images',
851 'outputs': ['<(PRODUCT_DIR)/devtools_frontend.zip'],
852 'action': ['python', '<@(_script_name)', '<@(_inspector_html)',
853 '--devtools-files', '<@(devtools_files)',
854 '--search-path', '<@(_search_path)',
855 '--image-search-path', '<@(_image_search_path)',
856 '--output', '<@(_outputs)'],
860 'target_name': 'webkit_unit_tests',
861 'type': 'executable',
862 'msvs_guid': '7CEFE800-8403-418A-AD6A-2D52C6FC3EAD',
865 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
866 '<(chromium_src_dir)/testing/gtest.gyp:gtest',
867 '<(chromium_src_dir)/testing/gmock.gyp:gmock',
868 '<(chromium_src_dir)/base/base.gyp:base',
869 '<(chromium_src_dir)/base/base.gyp:base_i18n',
870 '<(chromium_src_dir)/base/base.gyp:test_support_base',
871 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_support',
874 'tests/RunAllTests.cpp',
881 ['inside_chromium_build==1 and component=="shared_library"', {
883 'WEBKIT_DLL_UNITTEST',
887 '<@(webkit_unittest_files)',
890 ['OS=="linux" or OS=="freebsd"', {
895 # FIXME: Enable warnings on other platforms.
901 ['inside_chromium_build==1 and OS=="win" and component!="shared_library"', {
906 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
915 'target_name': 'ImageDiff',
916 'type': 'executable',
919 '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf',
920 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_support',
923 '../../JavaScriptCore',
927 '../../../Tools/DumpRenderTree/chromium/ImageDiff.cpp',
931 'target_name': 'DumpRenderTree',
932 'type': 'executable',
936 'inspector_resources',
937 'TestNetscapePlugIn',
938 'copy_TestNetscapePlugIn',
940 '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf_config',
941 '<(chromium_src_dir)/third_party/icu/icu.gyp:icuuc',
942 '<(chromium_src_dir)/third_party/mesa/mesa.gyp:osmesa',
943 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:blob',
944 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_support',
947 '<(chromium_src_dir)',
949 '../../JavaScriptCore',
950 '../../JavaScriptCore/wtf', # wtf/text/*.h refers headers in wtf/ without wtf/.
954 # Technically not a unit test but require functions available only to
965 '<(chromium_src_dir)/third_party/angle/src/build_angle.gyp:libEGL',
966 '<(chromium_src_dir)/third_party/angle/src/build_angle.gyp:libGLESv2',
969 'resource_include_dirs': ['<(SHARED_INTERMEDIATE_DIR)/webkit'],
971 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
972 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.rc',
973 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc',
974 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc',
977 ['inside_chromium_build==1 and component=="shared_library"', {
979 'src/ChromiumCurrentTime.cpp',
980 'src/ChromiumThreading.cpp',
986 '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf',
989 ['inside_chromium_build==1', {
994 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
1002 'destination': '<(PRODUCT_DIR)',
1003 'files': ['<(ahem_path)'],
1007 ['exclude', 'Win\\.cpp$'],
1011 'action_name': 'repack_locale',
1013 'repack_path': '<(chromium_src_dir)/tools/data_pack/repack.py',
1015 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
1016 '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.pak',
1017 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.pak',
1018 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
1019 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak',
1026 '<(INTERMEDIATE_DIR)/repack/DumpRenderTree.pak',
1028 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inputs)'],
1029 'process_outputs_as_mac_bundle_resources': 1,
1038 'mac_bundle_resources': [
1040 '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher100.ttf',
1041 '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher200.ttf',
1042 '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher300.ttf',
1043 '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher400.ttf',
1044 '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher500.ttf',
1045 '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher600.ttf',
1046 '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher700.ttf',
1047 '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher800.ttf',
1048 '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher900.ttf',
1049 '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
1053 # .mm is already excluded by common.gypi
1054 ['exclude', 'Mac\\.cpp$'],
1057 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
1059 '<(chromium_src_dir)/build/linux/system.gyp:fontconfig',
1060 '<(chromium_src_dir)/build/linux/system.gyp:gtk',
1066 'destination': '<(PRODUCT_DIR)',
1069 '../../../Tools/DumpRenderTree/chromium/fonts.conf',
1070 '<(INTERMEDIATE_DIR)/repack/DumpRenderTree.pak',
1074 # FIXME: Enable warnings on other platforms.
1077 },{ # OS!="linux" and OS!="freebsd" and OS!="openbsd" and OS!="solaris"
1079 ['exclude', '(Gtk|Linux)\\.cpp$']
1082 ['inside_chromium_build==0', {
1084 '<(chromium_src_dir)/webkit/support/setup_third_party.gyp:third_party_headers',
1090 'target_name': 'TestNetscapePlugIn',
1091 'type': 'loadable_module',
1092 'sources': [ '<@(test_plugin_files)' ],
1094 '<(chromium_src_dir)/third_party/npapi/npapi.gyp:npapi',
1097 '<(chromium_src_dir)',
1098 '../../../Tools/DumpRenderTree/TestNetscapePlugIn',
1099 '../../../Tools/DumpRenderTree/chromium/TestNetscapePlugIn/ForwardingHeaders',
1104 'product_name': 'TestNetscapePlugIn',
1105 'product_extension': 'plugin',
1108 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
1109 '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
1110 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
1114 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
1115 'INFOPLIST_FILE': '../../../Tools/DumpRenderTree/TestNetscapePlugIn/mac/Info.plist',
1118 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
1120 '-fvisibility=default',
1125 # This seems like a hack, but this is what Safari Win does.
1126 'snprintf=_snprintf',
1129 '../../../Tools/DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.def',
1130 '../../../Tools/DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.rc',
1132 # The .rc file requires that the name of the dll is npTestNetscapePlugin.dll.
1133 # This adds the 'np' to the dll name.
1134 'product_prefix': 'np',
1139 'target_name': 'copy_TestNetscapePlugIn',
1142 'TestNetscapePlugIn',
1147 'destination': '<(PRODUCT_DIR)/plugins',
1148 'files': ['<(PRODUCT_DIR)/npTestNetscapePlugIn.dll'],
1152 'dependencies': ['TestNetscapePlugIn'],
1154 'destination': '<(PRODUCT_DIR)/plugins/',
1155 'files': ['<(PRODUCT_DIR)/TestNetscapePlugIn.plugin/'],
1158 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
1160 'destination': '<(PRODUCT_DIR)/plugins',
1161 'files': ['<(PRODUCT_DIR)/libTestNetscapePlugIn.so'],
1170 'target_name': 'LayoutTestHelper',
1171 'type': 'executable',
1172 'sources': ['../../../Tools/DumpRenderTree/chromium/LayoutTestHelperWin.cpp'],
1178 'target_name': 'LayoutTestHelper',
1179 'type': 'executable',
1180 'sources': ['../../../Tools/DumpRenderTree/chromium/LayoutTestHelper.mm'],
1183 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
1188 'target_name': 'copy_mesa',
1190 'dependencies': ['<(chromium_src_dir)/third_party/mesa/mesa.gyp:osmesa'],
1192 'destination': '<(PRODUCT_DIR)/DumpRenderTree.app/Contents/MacOS/',
1193 'files': ['<(PRODUCT_DIR)/osmesa.so'],
1198 ['debug_devtools==0', {
1201 'target_name': 'concatenated_devtools_js',
1205 '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources'
1208 'action_name': 'concatenate_devtools_js',
1209 'script_name': 'scripts/concatenate_js_files.py',
1210 'input_page': '../../WebCore/inspector/front-end/inspector.html',
1214 '<@(webinspector_files)',
1215 '<@(devtools_files)',
1216 '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js'
1219 '../../WebCore/inspector/front-end',
1221 '<(SHARED_INTERMEDIATE_DIR)/webcore',
1223 'outputs': ['<(PRODUCT_DIR)/resources/inspector/DevTools.js'],
1224 'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_search_path)', '<@(_outputs)'],
1228 'target_name': 'concatenated_heap_snapshot_worker_js',
1231 'action_name': 'concatenate_heap_snapshot_worker_js',
1232 'script_name': 'scripts/inline_js_imports.py',
1233 'input_file': '../../WebCore/inspector/front-end/HeapSnapshotWorker.js',
1236 '../../WebCore/inspector/front-end/BinarySearch.js',
1237 '../../WebCore/inspector/front-end/HeapSnapshot.js',
1238 '../../WebCore/inspector/front-end/HeapSnapshotWorkerDispatcher.js',
1240 'search_path': '../../WebCore/inspector/front-end',
1241 'outputs': ['<(PRODUCT_DIR)/resources/inspector/HeapSnapshotWorker.js'],
1242 'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1246 'target_name': 'concatenated_script_formatter_worker_js',
1249 'action_name': 'concatenate_script_formatter_worker_js',
1250 'script_name': 'scripts/inline_js_imports.py',
1251 'input_file': '../../WebCore/inspector/front-end/ScriptFormatterWorker.js',
1254 '<@(webinspector_uglifyjs_files)'
1256 'search_path': '../../WebCore/inspector/front-end',
1257 'outputs': ['<(PRODUCT_DIR)/resources/inspector/ScriptFormatterWorker.js'],
1258 'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1262 'target_name': 'concatenated_devtools_css',
1268 'action_name': 'concatenate_devtools_css',
1269 'script_name': 'scripts/concatenate_css_files.py',
1270 'input_page': '../../WebCore/inspector/front-end/inspector.html',
1274 '<@(webinspector_files)',
1275 '<@(devtools_files)'
1278 '../../WebCore/inspector/front-end',
1281 'outputs': ['<(PRODUCT_DIR)/resources/inspector/devTools.css'],
1282 'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_search_path)', '<@(_outputs)'],
1292 # indent-tabs-mode:nil
1294 # vim: set expandtab tabstop=2 shiftwidth=2: