f95947fc38676828676090ee8e07c9113062ce81
[WebKit-https.git] / Source / WebKit / chromium / WebKit.gyp
1 #
2 # Copyright (C) 2011 Google Inc. All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
6 # met:
7 #
8 #         * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 #         * Redistributions in binary form must reproduce the above
11 # copyright notice, this list of conditions and the following disclaimer
12 # in the documentation and/or other materials provided with the
13 # distribution.
14 #         * Neither the name of Google Inc. nor the names of its
15 # contributors may be used to endorse or promote products derived from
16 # this software without specific prior written permission.
17 #
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 #
30
31 {
32     'includes': [
33         '../../WebCore/WebCore.gypi',
34         '../../../Tools/DumpRenderTree/DumpRenderTree.gypi',
35         '../../../Tools/TestWebKitAPI/TestWebKitAPI.gypi',
36         'WebKit.gypi',
37         'features.gypi',
38     ],
39     'variables': {
40         'conditions': [
41             # Location of the chromium src directory and target type is different
42             # if webkit is built inside chromium or as standalone project.
43             ['inside_chromium_build==0', {
44                 # Webkit is being built outside of the full chromium project.
45                 # e.g. via build-webkit --chromium
46                 'chromium_src_dir': '../../WebKit/chromium',
47             },{
48                 # WebKit is checked out in src/chromium/third_party/WebKit
49                 'chromium_src_dir': '../../../../..',
50             }],
51         ],
52         'ahem_path': '../../../Tools/DumpRenderTree/qt/fonts/AHEM____.TTF',
53
54         # If debug_devtools is set to 1, JavaScript files for DevTools are
55         # stored as is. Otherwise, a concatenated file is stored.
56         'debug_devtools%': 0,
57
58         # List of DevTools source files, ordered by dependencies. It is used both
59         # for copying them to resource dir, and for generating 'devtools.html' file.
60         'devtools_files': [
61             '<@(devtools_css_files)',
62             '<@(devtools_js_files)',
63         ],
64     },
65     'targets': [
66         {
67             'target_name': 'webkit',
68             'type': 'static_library',
69             'variables': { 'enable_wexit_time_destructors': 1, },
70             'msvs_guid': '5ECEC9E5-8F23-47B6-93E0-C3B328B3BE65',
71             'dependencies': [
72                 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
73                 '<(chromium_src_dir)/skia/skia.gyp:skia',
74                 '<(chromium_src_dir)/third_party/icu/icu.gyp:icuuc',
75                 '<(chromium_src_dir)/third_party/npapi/npapi.gyp:npapi',
76                 '<(chromium_src_dir)/third_party/angle/src/build_angle.gyp:translator_glsl',
77                 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
78             ],
79             'export_dependent_settings': [
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',
84             ],
85             'include_dirs': [
86                 'public',
87                 'src',
88                 '<(chromium_src_dir)/third_party/angle/include',
89                 '<(chromium_src_dir)/third_party/skia/include/utils',
90             ],
91             'defines': [
92                 'WEBKIT_IMPLEMENTATION=1',
93             ],
94             'sources': [
95                 'bridge/PeerConnectionHandler.cpp',
96                 'bridge/PeerConnectionHandlerInternal.cpp',
97                 'bridge/PeerConnectionHandlerInternal.h',
98                 'public/android/WebInputEventFactory.h',
99                 'public/android/WebSandboxSupport.h',
100                 'public/android/WebThemeEngine.h',
101                 'public/gtk/WebInputEventFactory.h',
102                 'public/linux/WebFontRendering.h',
103                 'public/linux/WebFontRenderStyle.h',
104                 'public/linux/WebRenderTheme.h',
105                 'public/linux/WebThemeEngine.h',
106                 'public/x11/WebScreenInfoFactory.h',
107                 'public/mac/WebInputEventFactory.h',
108                 'public/mac/WebSandboxSupport.h',
109                 'public/mac/WebScreenInfoFactory.h',
110                 'public/mac/WebSubstringUtil.h',
111                 'public/mac/WebThemeEngine.h',
112                 'public/WebAccessibilityNotification.h',
113                 'public/WebAccessibilityObject.h',
114                 'public/WebAccessibilityRole.h',
115                 'public/WebAnimationController.h',
116                 'public/WebApplicationCacheHost.h',
117                 'public/WebApplicationCacheHostClient.h',
118                 'public/WebArrayBufferView.h',
119                 'public/WebAttribute.h',
120                 'public/WebAudioBus.h',
121                 'public/WebAudioDevice.h',
122                 'public/WebAudioSourceProvider.h',
123                 'public/WebAudioSourceProviderClient.h',
124                 'public/WebAutofillClient.h',
125                 'public/WebBindings.h',
126                 'public/WebBlob.h',
127                 'public/WebBlobData.h',
128                 'public/WebBlobRegistry.h',
129                 'public/WebCache.h',
130                 'public/WebCanvas.h',
131                 'public/WebClipboard.h',
132                 'public/WebColor.h',
133                 'public/WebColorName.h',
134                 'public/WebCommon.h',
135                 'public/WebCommonWorkerClient.h',
136                 'public/WebCompositionUnderline.h',
137                 'public/WebCompositorClient.h',
138                 'public/WebCompositor.h',
139                 'public/WebCompositorInputHandlerClient.h',
140                 'public/WebCompositorInputHandler.h',
141                 'public/WebConsoleMessage.h',
142                 'public/WebContentLayer.h',
143                 'public/WebContentLayerClient.h',
144                 'public/WebContextMenuData.h',
145                 'public/WebCookie.h',
146                 'public/WebCookieJar.h',
147                 'public/WebCrossOriginPreflightResultCache.h',
148                 'public/WebCString.h',
149                 'public/WebCursorInfo.h',
150                 'public/WebDOMEvent.h',
151                 'public/WebDOMEventListener.h',
152                 'public/WebDOMMessageEvent.h',
153                 'public/WebDOMMouseEvent.h',
154                 'public/WebDOMMutationEvent.h',
155                 'public/WebDOMStringList.h',
156                 'public/WebData.h',
157                 'public/WebDatabase.h',
158                 'public/WebDatabaseObserver.h',
159                 'public/WebDataSource.h',
160                 'public/WebDevToolsAgent.h',
161                 'public/WebDevToolsAgentClient.h',
162                 'public/WebDevToolsFrontend.h',
163                 'public/WebDevToolsFrontendClient.h',
164                 'public/WebDeviceOrientation.h',
165                 'public/WebDeviceOrientationClient.h',
166                 'public/WebDeviceOrientationClientMock.h',
167                 'public/WebDeviceOrientationController.h',
168                 'public/WebDocument.h',
169                 'public/WebDocumentType.h',
170                 'public/WebDragData.h',
171                 'public/WebEditingAction.h',
172                 'public/WebElement.h',
173                 'public/WebExceptionCode.h',
174                 'public/WebExternalPopupMenu.h',
175                 'public/WebExternalPopupMenuClient.h',
176                 'public/WebExternalTextureLayer.h',
177                 'public/WebFileChooserCompletion.h',
178                 'public/WebFileChooserParams.h',
179                 'public/WebFileError.h',
180                 'public/WebFileInfo.h',
181                 'public/WebFileSystem.h',
182                 'public/WebFileSystemCallbacks.h',
183                 'public/WebFileSystemEntry.h',
184                 'public/WebFileUtilities.h',
185                 'public/WebFileWriter.h',
186                 'public/WebFileWriterClient.h',
187                 'public/WebFindOptions.h',
188                 'public/WebFloatPoint.h',
189                 'public/WebFloatQuad.h',
190                 'public/WebFloatRect.h',
191                 'public/WebFont.h',
192                 'public/WebFontDescription.h',
193                 'public/WebFrame.h',
194                 'public/WebFrameClient.h',
195                 'public/WebFontCache.h',
196                 'public/WebFormControlElement.h',
197                 'public/WebFormElement.h',
198                 'public/WebGamepad.h',
199                 'public/WebGamepads.h',
200                 'public/WebGeolocationClient.h',
201                 'public/WebGeolocationClientMock.h',
202                 'public/WebGeolocationController.h',
203                 'public/WebGeolocationError.h',
204                 'public/WebGeolocationPermissionRequest.h',
205                 'public/WebGeolocationPermissionRequestManager.h',
206                 'public/WebGeolocationPosition.h',
207                 'public/WebGlyphCache.h',
208                 'public/WebGraphicsContext3D.h',
209                 'public/WebHistoryItem.h',
210                 'public/WebHTTPBody.h',
211                 'public/WebHTTPLoadInfo.h',
212                 'public/WebIconLoadingCompletion.h',
213                 'public/WebIconURL.h',
214                 'public/WebImage.h',
215                 'public/WebImageDecoder.h',
216                 'public/WebIDBCallbacks.h',
217                 'public/WebIDBCursor.h',
218                 'public/WebIDBDatabase.h',
219                 'public/WebIDBDatabaseCallbacks.h',
220                 'public/WebIDBDatabaseError.h',
221                 'public/WebIDBFactory.h',
222                 'public/WebIDBKeyRange.h',
223                 'public/WebIDBIndex.h',
224                 'public/WebIDBKey.h',
225                 'public/WebIDBKeyPath.h',
226                 'public/WebIDBObjectStore.h',
227                 'public/WebIDBTransaction.h',
228                 'public/WebIDBTransactionCallbacks.h',
229                 'public/WebInputElement.h',
230                 'public/WebInputEvent.h',
231                 'public/WebIntent.h',
232                 'public/WebIntentServiceInfo.h',
233                 'public/WebKit.h',
234                 'public/WebKitPlatformSupport.h',
235                 'public/WebLabelElement.h',
236                 'public/WebLayer.h',
237                 'public/WebLayerClient.h',
238                 'public/WebLayerTreeView.h',
239                 'public/WebLayerTreeViewClient.h',
240                 'public/WebLocalizedString.h',
241                 'public/WebMediaElement.h',
242                 'public/WebMediaPlayer.h',
243                 'public/WebMediaPlayerAction.h',
244                 'public/WebMediaPlayerClient.h',
245                 'public/WebMediaStreamDescriptor.h',
246                 'public/WebMediaStreamRegistry.h',
247                 'public/WebMediaStreamSource.h',
248                 'public/WebMenuItemInfo.h',
249                 'public/WebMessagePortChannel.h',
250                 'public/WebMessagePortChannelClient.h',
251                 'public/WebMimeRegistry.h',
252                 'public/WebNamedNodeMap.h',
253                 'public/WebNavigationType.h',
254                 'public/WebNetworkStateNotifier.h',
255                 'public/WebNode.h',
256                 'public/WebNodeCollection.h',
257                 'public/WebNodeList.h',
258                 'public/WebNonCopyable.h',
259                 'public/WebNotification.h',
260                 'public/WebNotificationPresenter.h',
261                 'public/WebNotificationPermissionCallback.h',
262                 'public/WebOptionElement.h',
263                 'public/WebPageSerializer.h',
264                 'public/WebPageSerializerClient.h',
265                 'public/WebPageVisibilityState.h',
266                 'public/WebPasswordFormData.h',
267                 'public/WebPeerConnectionHandler.h',
268                 'public/WebPeerConnectionHandlerClient.h',
269                 'public/WebPerformance.h',
270                 'public/WebPermissionClient.h',
271                 'public/WebPlugin.h',
272                 'public/WebPluginContainer.h',
273                 'public/WebPluginDocument.h',
274                 'public/WebPluginListBuilder.h',
275                 'public/WebPoint.h',
276                 'public/WebPopupMenu.h',
277                 'public/WebPopupMenuInfo.h',
278                 'public/WebPopupType.h',
279                 'public/WebPrivatePtr.h',
280                 'public/WebPrivateOwnPtr.h',
281                 'public/WebRange.h',
282                 'public/WebRect.h',
283                 'public/WebReferrerPolicy.h',
284                 'public/WebRegularExpression.h',
285                 'public/WebRuntimeFeatures.h',
286                 'public/WebScrollbar.h',
287                 'public/WebScrollbarClient.h',
288                 'public/WebScreenInfo.h',
289                 'public/WebScriptController.h',
290                 'public/WebScriptSource.h',
291                 'public/WebSearchableFormData.h',
292                 'public/WebSecurityOrigin.h',
293                 'public/WebSecurityPolicy.h',
294                 'public/WebSelectElement.h',
295                 'public/WebSerializedScriptValue.h',
296                 'public/WebSettings.h',
297                 'public/WebSharedWorker.h',
298                 'public/WebSharedWorkerRepository.h',
299                 'public/WebSize.h',
300                 'public/WebSocket.h',
301                 'public/WebSocketClient.h',
302                 'public/WebSocketStreamError.h',
303                 'public/WebSocketStreamHandle.h',
304                 'public/WebSocketStreamHandleClient.h',
305                 'public/WebSpeechInputController.h',
306                 'public/WebSpeechInputControllerMock.h',
307                 'public/WebSpeechInputListener.h',
308                 'public/WebSpeechInputResult.h',
309                 'public/WebSpellCheckClient.h',
310                 'public/WebStorageArea.h',
311                 'public/WebStorageEventDispatcher.h',
312                 'public/WebStorageQuotaCallbacks.h',
313                 'public/WebStorageQuotaType.h',
314                 'public/WebStorageNamespace.h',
315                 'public/WebString.h',
316                 'public/WebTextAffinity.h',
317                 'public/WebTextCaseSensitivity.h',
318                 'public/WebTextCheckingResult.h',
319                 'public/WebTextCheckingCompletion.h',
320                 'public/WebTextDirection.h',
321                 'public/WebTextInputType.h',
322                 'public/WebTextRun.h',
323                 'public/WebThreadSafeData.h',
324                 'public/WebURL.h',
325                 'public/WebURLError.h',
326                 'public/WebURLLoader.h',
327                 'public/WebURLLoaderOptions.h',
328                 'public/WebURLLoadTiming.h',
329                 'public/WebURLLoaderClient.h',
330                 'public/WebURLRequest.h',
331                 'public/WebURLResponse.h',
332                 'public/WebUserMediaClient.h',
333                 'public/WebUserMediaRequest.h',
334                 'public/WebVector.h',
335                 'public/WebView.h',
336                 'public/WebViewClient.h',
337                 'public/WebWidget.h',
338                 'public/WebWidgetClient.h',
339                 'public/WebWorker.h',
340                 'public/WebWorkerClient.h',
341                 'public/WebWorkerRunLoop.h',
342                 'public/win/WebInputEventFactory.h',
343                 'public/win/WebSandboxSupport.h',
344                 'public/win/WebScreenInfoFactory.h',
345                 'public/win/WebThemeEngine.h',
346                 'src/ApplicationCacheHost.cpp',
347                 'src/ApplicationCacheHostInternal.h',
348                 'src/AssertMatchingEnums.cpp',
349                 'src/AssociatedURLLoader.cpp',
350                 'src/AssociatedURLLoader.h',
351                 'src/AsyncFileSystemChromium.cpp',
352                 'src/AsyncFileSystemChromium.h',
353                 'src/AsyncFileWriterChromium.cpp',
354                 'src/AsyncFileWriterChromium.h',
355                 'src/AudioDestinationChromium.cpp',
356                 'src/AudioDestinationChromium.h',
357                 'src/AutofillPopupMenuClient.cpp',
358                 'src/AutofillPopupMenuClient.h',
359                 'src/BackForwardListChromium.cpp',
360                 'src/BackForwardListChromium.h',
361                 'src/BlobRegistryProxy.cpp',
362                 'src/BlobRegistryProxy.h',
363                 'src/BoundObject.cpp',
364                 'src/BoundObject.h',
365                 'src/CCThreadImpl.cpp',
366                 'src/CCThreadImpl.h',
367                 'src/ChromeClientImpl.cpp',
368                 'src/ChromeClientImpl.h',
369                 'src/ChromiumCurrentTime.cpp',
370                 'src/ChromiumOSRandomSource.cpp',
371                 'src/ChromiumThreading.cpp',
372                 'src/CompositionUnderlineBuilder.h',
373                 'src/CompositionUnderlineVectorBuilder.cpp',
374                 'src/CompositionUnderlineVectorBuilder.h',
375                 'src/ContextMenuClientImpl.cpp',
376                 'src/ContextMenuClientImpl.h',
377                 'src/DatabaseObserver.cpp',
378                 'src/DeviceOrientationClientProxy.cpp',
379                 'src/DeviceOrientationClientProxy.h',
380                 'src/DOMUtilitiesPrivate.cpp',
381                 'src/DOMUtilitiesPrivate.h',
382                 'src/DragClientImpl.cpp',
383                 'src/DragClientImpl.h',
384                 'src/DragScrollTimer.cpp',
385                 'src/DragScrollTimer.h',
386                 'src/EditorClientImpl.cpp',
387                 'src/EditorClientImpl.h',
388                 'src/EventListenerWrapper.cpp',
389                 'src/EventListenerWrapper.h',
390                 'src/Extensions3DChromium.cpp',
391                 'src/ExternalPopupMenu.cpp',
392                 'src/ExternalPopupMenu.h',
393                 'src/FrameLoaderClientImpl.cpp',
394                 'src/FrameLoaderClientImpl.h',
395                 'src/FrameNetworkingContextImpl.h',
396                 'src/GeolocationClientProxy.cpp',
397                 'src/GeolocationClientProxy.h',
398                 'src/GraphicsContext3DChromium.cpp',
399                 'src/GraphicsContext3DPrivate.h',
400                 'src/gtk/WebInputEventFactory.cpp',
401                 'src/IDBCallbacksProxy.cpp',
402                 'src/IDBCallbacksProxy.h',
403                 'src/IDBCursorBackendProxy.cpp',
404                 'src/IDBCursorBackendProxy.h',
405                 'src/IDBDatabaseCallbacksProxy.cpp',
406                 'src/IDBDatabaseCallbacksProxy.h',
407                 'src/IDBDatabaseBackendProxy.cpp',
408                 'src/IDBDatabaseBackendProxy.h',
409                 'src/IDBFactoryBackendProxy.cpp',
410                 'src/IDBFactoryBackendProxy.h',
411                 'src/IDBIndexBackendProxy.cpp',
412                 'src/IDBIndexBackendProxy.h',
413                 'src/IDBObjectStoreBackendProxy.cpp',
414                 'src/IDBObjectStoreBackendProxy.h',
415                 'src/IDBTransactionBackendProxy.cpp',
416                 'src/IDBTransactionBackendProxy.h',
417                 'src/IDBTransactionCallbacksProxy.cpp',
418                 'src/IDBTransactionCallbacksProxy.h',
419                 'src/InspectorClientImpl.cpp',
420                 'src/InspectorClientImpl.h',
421                 'src/InspectorFrontendClientImpl.cpp',
422                 'src/InspectorFrontendClientImpl.h',
423                 'src/android/WebInputEventFactory.cpp',
424                 'src/linux/WebFontInfo.cpp',
425                 'src/linux/WebFontRendering.cpp',
426                 'src/linux/WebFontRenderStyle.cpp',
427                 'src/linux/WebRenderTheme.cpp',
428                 'src/x11/WebScreenInfoFactory.cpp',
429                 'src/mac/WebInputEventFactory.mm',
430                 'src/mac/WebScreenInfoFactory.mm',
431                 'src/mac/WebSubstringUtil.mm',
432                 'src/LocalFileSystemChromium.cpp',
433                 'src/LocalizedStrings.cpp',
434                 'src/MediaPlayerPrivateChromium.cpp',
435                 'src/NotificationPresenterImpl.h',
436                 'src/NotificationPresenterImpl.cpp',
437                 'src/painting/GraphicsContextBuilder.h',
438                 'src/PageOverlay.cpp',
439                 'src/PageOverlay.h',
440                 'src/PlatformMessagePortChannel.cpp',
441                 'src/PlatformMessagePortChannel.h',
442                 'src/PlatformSupport.cpp',
443                 'src/ResourceHandle.cpp',
444                 'src/ScrollbarGroup.cpp',
445                 'src/ScrollbarGroup.h',
446                 'src/SharedWorkerRepository.cpp',
447                 'src/SocketStreamHandle.cpp',
448                 'src/SpeechInputClientImpl.cpp',
449                 'src/SpeechInputClientImpl.h',
450                 'src/StorageAreaProxy.cpp',
451                 'src/StorageAreaProxy.h',
452                 'src/StorageEventDispatcherChromium.cpp',
453                 'src/StorageEventDispatcherImpl.cpp',
454                 'src/StorageEventDispatcherImpl.h',
455                 'src/StorageInfoChromium.cpp',
456                 'src/StorageNamespaceProxy.cpp',
457                 'src/StorageNamespaceProxy.h',
458                 'src/UserMediaClientImpl.h',
459                 'src/UserMediaClientImpl.cpp',
460                 'src/WebTextCheckingCompletionImpl.h',
461                 'src/WebTextCheckingCompletionImpl.cpp',
462                 'src/VideoFrameChromiumImpl.cpp',
463                 'src/VideoFrameChromiumImpl.h',
464                 'src/WebAccessibilityObject.cpp',
465                 'src/WebAnimationControllerImpl.cpp',
466                 'src/WebAnimationControllerImpl.h',
467                 'src/WebArrayBufferView.cpp',
468                 'src/WebAttribute.cpp',
469                 'src/WebAudioBus.cpp',
470                 'src/WebBindings.cpp',
471                 'src/WebBlob.cpp',
472                 'src/WebBlobData.cpp',
473                 'src/WebCache.cpp',
474                 'src/WebColor.cpp',
475                 'src/WebCommon.cpp',
476                 'src/WebCompositorImpl.cpp',
477                 'src/WebCompositorImpl.h',
478                 'src/WebCompositorInputHandlerImpl.cpp',
479                 'src/WebCompositorInputHandlerImpl.h',
480                 'src/WebContentLayer.cpp',
481                 'src/WebContentLayerImpl.cpp',
482                 'src/WebContentLayerImpl.h',
483                 'src/WebCrossOriginPreflightResultCache.cpp',
484                 'src/WebCString.cpp',
485                 'src/WebCursorInfo.cpp',
486                 'src/WebDOMEvent.cpp',
487                 'src/WebDOMEventListener.cpp',
488                 'src/WebDOMEventListenerPrivate.cpp',
489                 'src/WebDOMEventListenerPrivate.h',
490                 'src/WebDOMMessageEvent.cpp',
491                 'src/WebDOMMouseEvent.cpp',
492                 'src/WebDOMMutationEvent.cpp',
493                 'src/WebDOMStringList.cpp',
494                 'src/WebData.cpp',
495                 'src/WebDatabase.cpp',
496                 'src/WebDataSourceImpl.cpp',
497                 'src/WebDataSourceImpl.h',
498                 'src/WebDevToolsAgentImpl.cpp',
499                 'src/WebDevToolsAgentImpl.h',
500                 'src/WebDevToolsFrontendImpl.cpp',
501                 'src/WebDevToolsFrontendImpl.h',
502                 'src/WebDeviceOrientation.cpp',
503                 'src/WebDeviceOrientationClientMock.cpp',
504                 'src/WebDeviceOrientationController.cpp',
505                 'src/WebDocument.cpp',
506                 'src/WebDocumentType.cpp',
507                 'src/WebDragData.cpp',
508                 'src/WebElement.cpp',
509                 'src/WebEntities.cpp',
510                 'src/WebEntities.h',
511                 'src/WebExternalTextureLayer.cpp',
512                 'src/WebExternalTextureLayerImpl.cpp',
513                 'src/WebExternalTextureLayerImpl.h',
514                 'src/WebFileChooserCompletionImpl.cpp',
515                 'src/WebFileChooserCompletionImpl.h',
516                 'src/WebFileSystemCallbacksImpl.cpp',
517                 'src/WebFileSystemCallbacksImpl.h',
518                 'src/WebFloatQuad.cpp',
519                 'src/WebFontCache.cpp',
520                 'src/WebFontDescription.cpp',
521                 'src/WebFontImpl.cpp',
522                 'src/WebFontImpl.h',
523                 'src/WebFormControlElement.cpp',
524                 'src/WebFormElement.cpp',
525                 'src/WebFrameImpl.cpp',
526                 'src/WebFrameImpl.h',
527                 'src/WebGeolocationController.cpp',
528                 'src/WebGeolocationClientMock.cpp',
529                 'src/WebGeolocationError.cpp',
530                 'src/WebGeolocationPermissionRequest.cpp',
531                 'src/WebGeolocationPermissionRequestManager.cpp',
532                 'src/WebGeolocationPosition.cpp',
533                 'src/WebGlyphCache.cpp',
534                 'src/WebGraphicsContext3D.cpp',
535                 'src/WebHistoryItem.cpp',
536                 'src/WebHTTPBody.cpp',
537                 'src/WebHTTPLoadInfo.cpp',
538                 'src/WebIconLoadingCompletionImpl.cpp',
539                 'src/WebIconLoadingCompletionImpl.h',
540                 'src/WebIDBCallbacksImpl.cpp',
541                 'src/WebIDBCallbacksImpl.h',
542                 'src/WebIDBCursorImpl.cpp',
543                 'src/WebIDBCursorImpl.h',
544                 'src/WebIDBDatabaseCallbacksImpl.cpp',
545                 'src/WebIDBDatabaseCallbacksImpl.h',
546                 'src/WebIDBDatabaseError.cpp',
547                 'src/WebIDBDatabaseImpl.cpp',
548                 'src/WebIDBDatabaseImpl.h',
549                 'src/WebIDBFactoryImpl.cpp',
550                 'src/WebIDBFactoryImpl.h',
551                 'src/WebIDBIndexImpl.cpp',
552                 'src/WebIDBIndexImpl.h',
553                 'src/WebIDBKey.cpp',
554                 'src/WebIDBKeyPath.cpp',
555                 'src/WebIDBKeyRange.cpp',
556                 'src/WebIDBObjectStoreImpl.cpp',
557                 'src/WebIDBObjectStoreImpl.h',
558                 'src/WebIDBTransactionImpl.cpp',
559                 'src/WebIDBTransactionImpl.h',
560                 'src/WebIDBTransactionCallbacksImpl.cpp',
561                 'src/WebIDBTransactionCallbacksImpl.h',
562                 'src/WebImageCG.cpp',
563                 'src/WebImageDecoder.cpp',
564                 'src/WebImageSkia.cpp',
565                 'src/WebInputElement.cpp',
566                 'src/WebInputEvent.cpp',
567                 'src/WebInputEventConversion.cpp',
568                 'src/WebInputEventConversion.h',
569                 'src/WebIntent.cpp',
570                 'src/WebIntentServiceInfo.cpp',
571                 'src/WebKit.cpp',
572                 'src/WebLabelElement.cpp',
573                 'src/WebLayer.cpp',
574                 'src/WebLayerImpl.cpp',
575                 'src/WebLayerImpl.h',
576                 'src/WebLayerTreeView.cpp',
577                 'src/WebLayerTreeViewImpl.cpp',
578                 'src/WebLayerTreeViewImpl.h',
579                 'src/WebMediaElement.cpp',
580                 'src/WebMediaPlayerClientImpl.cpp',
581                 'src/WebMediaPlayerClientImpl.h',
582                 'src/WebMediaStreamDescriptor.cpp',
583                 'src/WebMediaStreamRegistry.cpp',
584                 'src/WebMediaStreamSource.cpp',
585                 'src/WebNamedNodeMap.cpp',
586                 'src/WebNetworkStateNotifier.cpp',
587                 'src/WebNode.cpp',
588                 'src/WebNodeCollection.cpp',
589                 'src/WebNodeList.cpp',
590                 'src/WebNotification.cpp',
591                 'src/WebOptionElement.cpp',
592                 'src/WebPageSerializer.cpp',
593                 'src/WebPageSerializerImpl.cpp',
594                 'src/WebPageSerializerImpl.h',
595                 'src/WebPasswordFormData.cpp',
596                 'src/WebPasswordFormUtils.cpp',
597                 'src/WebPasswordFormUtils.h',
598                 'src/WebPerformance.cpp',
599                 'src/WebPluginContainerImpl.h',
600                 'src/WebPluginContainerImpl.cpp',
601                 'src/WebPluginDocument.cpp',
602                 'src/WebPluginListBuilderImpl.cpp',
603                 'src/WebPluginListBuilderImpl.h',
604                 'src/WebPluginLoadObserver.cpp',
605                 'src/WebPluginLoadObserver.h',
606                 'src/WebPopupMenuImpl.cpp',
607                 'src/WebPopupMenuImpl.h',
608                 'src/WebRange.cpp',
609                 'src/WebRegularExpression.cpp',
610                 'src/WebRuntimeFeatures.cpp',
611                 'src/WebScriptController.cpp',
612                 'src/WebScrollbarImpl.cpp',
613                 'src/WebScrollbarImpl.h',
614                 'src/WebSearchableFormData.cpp',
615                 'src/WebSecurityOrigin.cpp',
616                 'src/WebSecurityPolicy.cpp',
617                 'src/WebSelectElement.cpp',
618                 'src/WebSerializedScriptValue.cpp',
619                 'src/WebSettingsImpl.cpp',
620                 'src/WebSettingsImpl.h',
621                 'src/WebSharedWorkerImpl.cpp',
622                 'src/WebSharedWorkerImpl.h',
623                 'src/WebSocket.cpp',
624                 'src/WebSocketImpl.cpp',
625                 'src/WebSocketImpl.h',
626                 'src/WebSpeechInputControllerMockImpl.cpp',
627                 'src/WebSpeechInputControllerMockImpl.h',
628                 'src/WebSpeechInputResult.cpp',
629                 'src/WebStorageAreaImpl.cpp',
630                 'src/WebStorageAreaImpl.h',
631                 'src/WebStorageEventDispatcherImpl.cpp',
632                 'src/WebStorageEventDispatcherImpl.h',
633                 'src/WebStorageNamespaceImpl.cpp',
634                 'src/WebStorageNamespaceImpl.h',
635                 'src/WebStorageQuotaCallbacksImpl.cpp',
636                 'src/WebStorageQuotaCallbacksImpl.h',
637                 'src/WebString.cpp',
638                 'src/WebTextRun.cpp',
639                 'src/WebThreadSafeData.cpp',
640                 'src/WebURL.cpp',
641                 'src/WebURLLoadTiming.cpp',
642                 'src/WebURLRequest.cpp',
643                 'src/WebURLRequestPrivate.h',
644                 'src/WebURLResponse.cpp',
645                 'src/WebURLResponsePrivate.h',
646                 'src/WebURLError.cpp',
647                 'src/WebUserMediaRequest.cpp',
648                 'src/WebViewImpl.cpp',
649                 'src/WebViewImpl.h',
650                 'src/WebWorkerBase.cpp',
651                 'src/WebWorkerBase.h',
652                 'src/WebWorkerClientImpl.cpp',
653                 'src/WebWorkerClientImpl.h',
654                 'src/WebWorkerImpl.cpp',
655                 'src/WebWorkerImpl.h',
656                 'src/WebWorkerRunLoop.cpp',
657                 'src/WorkerAsyncFileSystemChromium.cpp',
658                 'src/WorkerAsyncFileSystemChromium.h',
659                 'src/WorkerAsyncFileWriterChromium.cpp',
660                 'src/WorkerAsyncFileWriterChromium.h',
661                 'src/WorkerFileSystemCallbacksBridge.cpp',
662                 'src/WorkerFileSystemCallbacksBridge.h',
663                 'src/WorkerFileWriterCallbacksBridge.cpp',
664                 'src/WorkerFileWriterCallbacksBridge.h',
665                 'src/WrappedResourceRequest.h',
666                 'src/WrappedResourceResponse.h',
667                 'src/win/WebInputEventFactory.cpp',
668                 'src/win/WebScreenInfoFactory.cpp',
669             ],
670             'conditions': [
671                 ['inside_chromium_build==1', {
672                     'type': '<(component)',
673
674                     'conditions': [
675                         ['component=="shared_library"', {
676                             'defines': [
677                                 'WEBKIT_DLL',
678                             ],
679                             'dependencies': [
680                                 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore_bindings',
681                                 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore_test_support',
682                                 '<(chromium_src_dir)/base/base.gyp:test_support_base',
683                                 '<(chromium_src_dir)/build/temp_gyp/googleurl.gyp:googleurl',
684                                 '<(chromium_src_dir)/testing/gtest.gyp:gtest',
685                                 '<(chromium_src_dir)/testing/gmock.gyp:gmock',
686                                 '<(chromium_src_dir)/third_party/icu/icu.gyp:*',
687                                 '<(chromium_src_dir)/third_party/libjpeg_turbo/libjpeg.gyp:libjpeg',
688                                 '<(chromium_src_dir)/third_party/libpng/libpng.gyp:libpng',
689                                 '<(chromium_src_dir)/third_party/libxml/libxml.gyp:libxml',
690                                 '<(chromium_src_dir)/third_party/libxslt/libxslt.gyp:libxslt',
691                                 '<(chromium_src_dir)/third_party/modp_b64/modp_b64.gyp:modp_b64',
692                                 '<(chromium_src_dir)/third_party/ots/ots.gyp:ots',
693                                 '<(chromium_src_dir)/third_party/zlib/zlib.gyp:zlib',
694                                 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
695                                 # We must not add webkit_support here because of cyclic dependency.
696                             ],
697                             'direct_dependent_settings': {
698                                 'defines': [
699                                     'WEBKIT_DLL',
700                                 ],
701                             },
702                             'export_dependent_settings': [
703                                 '<(chromium_src_dir)/build/temp_gyp/googleurl.gyp:googleurl',
704                                 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
705                             ],
706                             'include_dirs': [
707                                 # WARNING: Do not view this particular case as a precedent for
708                                 # including WebCore headers in DumpRenderTree project.
709                                 '../../WebCore/testing/v8', # for WebCoreTestSupport.h, needed to link in window.internals code.
710                             ],
711                             'sources': [
712                                 '<@(webkit_unittest_files)',
713                                 'src/WebTestingSupport.cpp',
714                                 'public/WebTestingSupport.h',
715                                 'tests/WebUnitTests.cpp',   # Components test runner support.
716                             ],
717                             'sources!': [
718                                 # We should not include files depending on webkit_support.
719                                 # These tests depend on webkit_support and
720                                 # functions defined only in !WEBKIT_IMPLEMENTATION.
721                                 'tests/AssociatedURLLoaderTest.cpp',
722                                 'tests/CCLayerTreeHostTest.cpp',
723                                 'tests/FrameTestHelpers.cpp',
724                                 'tests/PopupMenuTest.cpp',
725                                 'tests/RenderTableCellTest.cpp',
726                                 'tests/WebFrameTest.cpp',
727                                 'tests/WebPageNewSerializerTest.cpp',
728                                 'tests/WebPageSerializerTest.cpp',
729                                 'tests/WebViewTest.cpp',
730                             ],
731                             'conditions': [
732                                 ['OS=="win" or OS=="mac"', {
733                                     'dependencies': [
734                                         '<(chromium_src_dir)/third_party/nss/nss.gyp:*',
735                                     ],
736                                 }],
737                             ],
738                             'msvs_settings': {
739                               'VCLinkerTool': {
740                                 'conditions': [
741                                   ['incremental_chrome_dll==1', {
742                                     'UseLibraryDependencyInputs': "true",
743                                   }],
744                                 ],
745                               },
746                             },
747                         }],
748                     ],
749                 }],
750                 ['use_x11 == 1', {
751                     'dependencies': [
752                         '<(chromium_src_dir)/build/linux/system.gyp:fontconfig',
753                         '<(chromium_src_dir)/build/linux/system.gyp:x11',
754                     ],
755                     'include_dirs': [
756                         'public/x11',
757                         'public/linux',
758                     ],
759                 }, { # else: use_x11 != 1
760                     'sources/': [
761                         ['exclude', '/x11/'],
762                         ['exclude', '/linux/'],
763                     ],
764                 }],
765                 ['toolkit_uses_gtk == 1', {
766                     'dependencies': [
767                         '<(chromium_src_dir)/build/linux/system.gyp:gtk',
768                     ],
769                     'include_dirs': [
770                         'public/gtk',
771                     ],
772                 }, { # else: toolkit_uses_gtk != 1
773                     'sources/': [
774                         ['exclude', '/gtk/'],
775                     ],
776                 }],
777                 ['OS=="android"', {
778                     'include_dirs': [
779                         'public/android',
780                     ],
781                 }],
782                 ['OS=="mac"', {
783                     'include_dirs': [
784                         'public/mac',
785                     ],
786                     'conditions': [
787                         ['use_skia==0', {
788                             'sources/': [
789                                 ['exclude', 'Skia\\.cpp$'],
790                             ],
791                         },{ # use_skia
792                             'sources/': [
793                                 ['exclude', 'CG\\.cpp$'],
794                             ],
795                         }],
796                     ],
797                 }, { # else: OS!="mac"
798                     'sources/': [
799                         ['exclude', '/mac/'],
800                         ['exclude', 'CG\\.cpp$'],
801                     ],
802                 }],
803                 ['OS=="win"', {
804                     'include_dirs': [
805                         'public/win',
806                     ],
807                 }, { # else: OS!="win"
808                     'sources/': [['exclude', '/win/']],
809                     'variables': {
810                         # FIXME: Turn on warnings on Windows.
811                         'chromium_code': 1,
812                     }
813                 }],
814                 ['"ENABLE_WEBGL=1" in feature_defines', {
815                     'conditions': [
816                         ['OS=="mac"', {
817                             'link_settings': {
818                                 'libraries': [
819                                     '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
820                                 ],
821                             },
822                         }],
823                     ],
824                 }],
825             ],
826         },
827         {
828             'target_name': 'inspector_resources',
829             'type': 'none',
830             'dependencies': [
831                 'devtools_html',
832                 '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources',
833             ],
834             'conditions': [
835                 ['debug_devtools==0', {
836                     'dependencies': ['concatenated_devtools_js',
837                                      'concatenated_heap_snapshot_worker_js',
838                                      'concatenated_script_formatter_worker_js',
839                                      'concatenated_devtools_css'],
840                 }],
841             ],
842             'copies': [
843                 {
844                     'destination': '<(PRODUCT_DIR)/resources/inspector',
845                     'files': [
846                         '<@(devtools_files)',
847                         '<@(webinspector_files)',
848                         '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js',
849                     ],
850                     'conditions': [
851                         ['debug_devtools==0', {
852                             'files/': [['exclude', '\\.(js|css|html)$']],
853                         }],
854                     ],
855                 },
856                 {
857                     'destination': '<(PRODUCT_DIR)/resources/inspector/UglifyJS',
858                     'files': [
859                         '<@(webinspector_uglifyjs_files)',
860                     ],
861                     'conditions': [
862                         ['debug_devtools==0', {
863                             'files/': [['exclude', '\\.(js|css|html)$']],
864                         }],
865                     ],
866                 },
867                 {
868                     'destination': '<(PRODUCT_DIR)/resources/inspector/Images',
869                     'files': [
870                         '<@(webinspector_image_files)',
871                         '<@(devtools_image_files)',
872                     ],
873                },
874             ],
875         },
876         {
877             'target_name': 'devtools_html',
878             'type': 'none',
879             'sources': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
880             'actions': [{
881                 'action_name': 'devtools_html',
882                 'script_name': 'scripts/generate_devtools_html.py',
883                 'input_page': '../../WebCore/inspector/front-end/inspector.html',
884                 'inputs': [
885                     '<@(_script_name)',
886                     '<@(_input_page)',
887                     '<@(devtools_files)',
888                 ],
889                 'outputs': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
890                 'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_outputs)', '<@(debug_devtools)', '<@(devtools_files)'],
891             }],
892         },
893         {
894             'target_name': 'devtools_extension_api',
895             'type': 'none',
896             'actions': [{
897                 'action_name': 'devtools_html',
898                 'script_name': 'scripts/generate_devtools_extension_api.py',
899                 'inputs': [
900                     '<@(_script_name)',
901                     '<@(webinspector_extension_api_files)',
902                 ],
903                 'outputs': ['<(PRODUCT_DIR)/resources/inspector/devtools_extension_api.js'],
904                 'action': ['python', '<@(_script_name)', '<@(_outputs)', '<@(webinspector_extension_api_files)'],
905             }],
906         },
907         {
908             'target_name': 'generate_devtools_grd',
909             'type': 'none',
910             'dependencies': [
911                 'devtools_html',
912                 'devtools_extension_api'
913             ],
914             'conditions': [
915                 ['debug_devtools==0', {
916                     'dependencies': ['concatenated_devtools_js',
917                                      'concatenated_heap_snapshot_worker_js',
918                                      'concatenated_script_formatter_worker_js',
919                                      'concatenated_devtools_css'],
920                 },{
921                     # If we're not concatenating devtools files, we want to
922                     # run after the original files have been copied to
923                     # <(PRODUCT_DIR)/resources/inspector.
924                     'dependencies': ['inspector_resources'],
925                 }],
926             ],
927             'actions': [{
928                 'action_name': 'generate_devtools_grd',
929                 'script_name': 'scripts/generate_devtools_grd.py',
930                 'input_pages': [
931                     '<(PRODUCT_DIR)/resources/inspector/devtools.html',
932                     '<(PRODUCT_DIR)/resources/inspector/DevTools.js',
933                     '<(PRODUCT_DIR)/resources/inspector/HeapSnapshotWorker.js',
934                     '<(PRODUCT_DIR)/resources/inspector/ScriptFormatterWorker.js',
935                     '<(PRODUCT_DIR)/resources/inspector/devTools.css',
936                     '<(PRODUCT_DIR)/resources/inspector/devtools_extension_api.js',
937                     '<@(webinspector_standalone_css_files)',
938                 ],
939                 'images': [
940                     '<@(webinspector_image_files)',
941                     '<@(devtools_image_files)',
942                 ],
943                 'inputs': [
944                     '<@(_script_name)',
945                     '<@(_input_pages)',
946                     '<@(_images)',
947                 ],
948                 'search_path': [
949                     '../../WebCore/inspector/front-end/Images',
950                     'src/js/Images',
951                 ],
952                 'outputs': ['<(SHARED_INTERMEDIATE_DIR)/devtools/devtools_resources.grd'],
953                 'action': ['python', '<@(_script_name)', '<@(_input_pages)', '--images', '<@(_search_path)', '--output', '<@(_outputs)'],
954             }],
955         },
956         {
957             'target_name': 'generate_devtools_zip',
958             'type': 'none',
959             'dependencies': [
960                 '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources',
961             ],
962             'actions': [{
963                 'action_name': 'generate_devtools_zip',
964                 'script_name': 'scripts/generate_devtools_zip.py',
965                 'inspector_html': '../../WebCore/inspector/front-end/inspector.html',
966                 'workers_files': [
967                     '../../WebCore/inspector/front-end/HeapSnapshotWorker.js',
968                     '../../WebCore/inspector/front-end/JavaScriptFormatter.js',
969                     '../../WebCore/inspector/front-end/ScriptFormatterWorker.js',
970                     '<@(webinspector_uglifyjs_files)'
971                 ],
972                 'inputs': [
973                     '<@(_script_name)',
974                     'scripts/generate_devtools_html.py',
975                     'scripts/generate_devtools_extension_api.py',
976                     '<@(_inspector_html)',
977                     '<@(devtools_files)',
978                     '<@(webinspector_files)',
979                     '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js',
980                     '<@(_workers_files)',
981                     '<@(webinspector_image_files)',
982                     '<@(devtools_image_files)',
983                     '<@(webinspector_extension_api_files)',
984                 ],
985                 'search_path': [
986                     '../../WebCore/inspector/front-end',
987                     'src/js',
988                 ],
989                 'js_search_path': [
990                     '<(SHARED_INTERMEDIATE_DIR)/webcore',
991                 ],
992                 'outputs': ['<(PRODUCT_DIR)/devtools_frontend.zip'],
993                 'action': ['python', '<@(_script_name)', '<@(_inspector_html)',
994                                      '--devtools-files', '<@(devtools_files)',
995                                      '--workers-files', '<@(_workers_files)',
996                                      '--extension-api-files', '<@(webinspector_extension_api_files)',
997                                      '--search-path', '<@(_search_path)',
998                                      '--js-search-path', '<@(_js_search_path)',
999                                      '--output', '<@(_outputs)'],
1000             }],
1001         },
1002         {
1003             'target_name': 'webkit_unit_tests',
1004             'type': 'executable',
1005             'msvs_guid': '7CEFE800-8403-418A-AD6A-2D52C6FC3EAD',
1006             'dependencies': [
1007                 'webkit',
1008                 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
1009                 '<(chromium_src_dir)/testing/gtest.gyp:gtest',
1010                 '<(chromium_src_dir)/testing/gmock.gyp:gmock',
1011                 '<(chromium_src_dir)/base/base.gyp:base',
1012                 '<(chromium_src_dir)/base/base.gyp:base_i18n',
1013                 '<(chromium_src_dir)/base/base.gyp:test_support_base',
1014                 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_support',
1015                 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_user_agent',
1016             ],
1017             'sources': [
1018                 'tests/RunAllTests.cpp',
1019             ],
1020             'include_dirs': [
1021                 'public',
1022                 'src',
1023             ],
1024             'conditions': [
1025                 ['inside_chromium_build==1 and component=="shared_library"', {
1026                     'defines': [
1027                         'WEBKIT_DLL_UNITTEST',
1028                     ],
1029                 }, {
1030                     'sources': [
1031                         '<@(webkit_unittest_files)',
1032                     ],
1033                     'conditions': [
1034                         ['toolkit_uses_gtk == 1', {
1035                             'include_dirs': [
1036                                 'public/gtk',
1037                             ],
1038                             'variables': {
1039                               # FIXME: Enable warnings on other platforms.
1040                               'chromium_code': 1,
1041                             },
1042                         }],
1043                     ],
1044                 }],
1045                 ['inside_chromium_build==1 and OS=="win" and component!="shared_library"', {
1046                     'configurations': {
1047                         'Debug_Base': {
1048                             'msvs_settings': {
1049                                 'VCLinkerTool': {
1050                                     'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
1051                                 },
1052                             },
1053                         },
1054                     },
1055                 }],
1056             ],
1057         },
1058         {
1059             'target_name': 'ImageDiff',
1060             'type': 'executable',
1061             'dependencies': [
1062                 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_support_gfx',
1063             ],
1064             'include_dirs': [
1065                 '../../JavaScriptCore',
1066                 '<(DEPTH)',
1067             ],
1068             'sources': [
1069                 '../../../Tools/DumpRenderTree/chromium/ImageDiff.cpp',
1070             ],
1071             'conditions': [
1072                 ['OS=="android"', {
1073                     'toolsets': ['host'],
1074                 }],
1075             ],
1076         },
1077         {
1078             'target_name': 'DumpRenderTree',
1079             'type': 'executable',
1080             'mac_bundle': 1,
1081             'dependencies': [
1082                 'inspector_resources',
1083                 'webkit',
1084                 '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf_config',
1085                 '<(chromium_src_dir)/build/temp_gyp/googleurl.gyp:googleurl',
1086                 '<(chromium_src_dir)/third_party/icu/icu.gyp:icuuc',
1087                 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
1088                 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:blob',
1089                 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_support',
1090                 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_user_agent',
1091             ],
1092             'include_dirs': [
1093                 '<(chromium_src_dir)',
1094                 'public',
1095                 '../../JavaScriptCore',
1096                 '../../JavaScriptCore/wtf', # wtf/text/*.h refers headers in wtf/ without wtf/.
1097                 '<(DEPTH)',
1098             ],
1099             'defines': [
1100                 # Technically not a unit test but require functions available only to
1101                 # unit tests.
1102                 'UNIT_TEST',
1103             ],
1104             'sources': [
1105                 '<@(drt_files)',
1106             ],
1107             'conditions': [
1108                 ['OS=="win"', {
1109                     'dependencies': [
1110                         'LayoutTestHelper',
1111                         '<(chromium_src_dir)/third_party/angle/src/build_angle.gyp:libEGL',
1112                         '<(chromium_src_dir)/third_party/angle/src/build_angle.gyp:libGLESv2',
1113                     ],
1114
1115                     'resource_include_dirs': ['<(SHARED_INTERMEDIATE_DIR)/webkit'],
1116                     'sources': [
1117                         '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
1118                         '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.rc',
1119                         '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc',
1120                         '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc',
1121                     ],
1122                     'conditions': [
1123                         ['inside_chromium_build==1', {
1124                             'configurations': {
1125                                 'Debug_Base': {
1126                                     'msvs_settings': {
1127                                         'VCLinkerTool': {
1128                                             'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
1129                                         },
1130                                     },
1131                                 },
1132                             },
1133                         }],
1134                     ],
1135                     'copies': [{
1136                         'destination': '<(PRODUCT_DIR)',
1137                         'files': ['<(ahem_path)'],
1138                     }],
1139                 },{ # OS!="win"
1140                     'sources/': [
1141                         ['exclude', 'Win\\.cpp$'],
1142                     ],
1143                     'actions': [
1144                         {
1145                             'action_name': 'repack_locale',
1146                             'variables': {
1147                                 'repack_path': '<(chromium_src_dir)/tools/grit/grit/format/repack.py',
1148                                 'pak_inputs': [
1149                                     '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
1150                                     '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.pak',
1151                                     '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.pak',
1152                                     '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
1153                                     '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak',
1154                             ]},
1155                             'inputs': [
1156                                 '<(repack_path)',
1157                                 '<@(pak_inputs)',
1158                             ],
1159                             'outputs': [
1160                                 '<(INTERMEDIATE_DIR)/repack/DumpRenderTree.pak',
1161                             ],
1162                             'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inputs)'],
1163                             'process_outputs_as_mac_bundle_resources': 1,
1164                         },
1165                     ], # actions
1166                 }],
1167                 ['OS=="mac"', {
1168                     'dependencies': [
1169                         'copy_mesa',
1170                         'LayoutTestHelper',
1171                     ],
1172                     'mac_bundle_resources': [
1173                         '<(ahem_path)',
1174                         '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher100.ttf',
1175                         '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher200.ttf',
1176                         '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher300.ttf',
1177                         '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher400.ttf',
1178                         '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher500.ttf',
1179                         '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher600.ttf',
1180                         '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher700.ttf',
1181                         '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher800.ttf',
1182                         '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher900.ttf',
1183                         '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
1184                     ],
1185                 },{ # OS!="mac"
1186                     'sources/': [
1187                         # .mm is already excluded by common.gypi
1188                         ['exclude', 'Mac\\.cpp$'],
1189                     ],
1190                 }],
1191                 ['use_x11 == 1', {
1192                     'dependencies': [
1193                         '<(chromium_src_dir)/build/linux/system.gyp:fontconfig',
1194                     ],
1195                     'copies': [{
1196                         'destination': '<(PRODUCT_DIR)',
1197                         'files': [
1198                             '<(ahem_path)',
1199                             '../../../Tools/DumpRenderTree/chromium/fonts.conf',
1200                             '<(INTERMEDIATE_DIR)/repack/DumpRenderTree.pak',
1201                         ]
1202                     }],
1203                     'variables': {
1204                         # FIXME: Enable warnings on other platforms.
1205                         'chromium_code': 1,
1206                     },
1207                     'conditions': [
1208                         ['linux_use_tcmalloc == 1', {
1209                             'dependencies': [
1210                                 '<(chromium_src_dir)/base/allocator/allocator.gyp:allocator',
1211                             ],
1212                         }],
1213                     ],
1214                 },{ # use_x11 != 1
1215                     'sources/': [
1216                         ['exclude', 'Linux\\.cpp$']
1217                     ]
1218                 }],
1219                 ['toolkit_uses_gtk == 1', {
1220                     'dependencies': [
1221                         '<(chromium_src_dir)/build/linux/system.gyp:gtk',
1222                     ],
1223                     'include_dirs': [
1224                         'public/gtk',
1225                     ],
1226                 },{ # toolkit_uses_gtk != 1
1227                     'sources/': [
1228                         ['exclude', 'Gtk\\.cpp$']
1229                     ]
1230                 }],
1231                 ['OS=="android"', {
1232                     'dependencies': [
1233                         'ImageDiff#host',
1234                     ],
1235                 },{ # OS!="android"
1236                     'sources/': [
1237                         ['exclude', '(Android)\\.cpp$']
1238                     ],
1239                     'dependencies': [
1240                         'ImageDiff',
1241                         'copy_TestNetscapePlugIn',
1242                         '<(chromium_src_dir)/third_party/mesa/mesa.gyp:osmesa',
1243                     ],
1244                 }],
1245                 ['inside_chromium_build==1 and component=="shared_library"', {
1246                     'sources': [
1247                         'src/ChromiumCurrentTime.cpp',
1248                         'src/ChromiumThreading.cpp',
1249                     ],
1250                     'include_dirs': [
1251                         'public',
1252                     ],
1253                     'dependencies': [
1254                         '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf',
1255                         '../../WTF/WTF.gyp/WTF.gyp:newwtf',
1256                     ],
1257                 }],
1258                 ['inside_chromium_build==0', {
1259                     'dependencies': [
1260                         '<(chromium_src_dir)/webkit/support/setup_third_party.gyp:third_party_headers',
1261                     ]
1262                 }],
1263                 ['inside_chromium_build==0 or component!="shared_library"', {
1264                     'dependencies': [
1265                         '../../WebCore/WebCore.gyp/WebCore.gyp:webcore_test_support',
1266                     ],
1267                     'include_dirs': [
1268                         # WARNING: Do not view this particular case as a precedent for
1269                         # including WebCore headers in DumpRenderTree project.
1270                         '../../WebCore/testing/v8', # for WebCoreTestSupport.h, needed to link in window.internals code.
1271                     ],
1272                     'sources': [
1273                         'src/WebTestingSupport.cpp',
1274                         'public/WebTestingSupport.h',
1275                     ],
1276                 }],
1277             ],
1278         },
1279         {
1280             'target_name': 'TestNetscapePlugIn',
1281             'type': 'loadable_module',
1282             'sources': [ '<@(test_plugin_files)' ],
1283             'dependencies': [
1284                 '<(chromium_src_dir)/third_party/npapi/npapi.gyp:npapi',
1285             ],
1286             'include_dirs': [
1287                 '<(chromium_src_dir)',
1288                 '../../../Tools/DumpRenderTree/TestNetscapePlugIn',
1289                 '../../../Tools/DumpRenderTree/chromium/TestNetscapePlugIn/ForwardingHeaders',
1290             ],
1291             'conditions': [
1292                 ['OS=="mac"', {
1293                     'mac_bundle': 1,
1294                     'product_extension': 'plugin',
1295                     'link_settings': {
1296                         'libraries': [
1297                             '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
1298                             '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
1299                             '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
1300                         ]
1301                     },
1302                     'xcode_settings': {
1303                         'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
1304                         'INFOPLIST_FILE': '../../../Tools/DumpRenderTree/TestNetscapePlugIn/mac/Info.plist',
1305                     },
1306                 }],
1307                 ['os_posix == 1 and OS != "mac"', {
1308                     'cflags': [
1309                         '-fvisibility=default',
1310                     ],
1311                 }],
1312                 ['OS=="win"', {
1313                     'defines': [
1314                         # This seems like a hack, but this is what Safari Win does.
1315                         'snprintf=_snprintf',
1316                     ],
1317                     'sources': [
1318                         '../../../Tools/DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.def',
1319                         '../../../Tools/DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.rc',
1320                     ],
1321                     # The .rc file requires that the name of the dll is npTestNetscapePlugin.dll.
1322                     'product_name': 'npTestNetscapePlugin',
1323                 }],
1324             ],
1325         },
1326         {
1327             'target_name': 'copy_TestNetscapePlugIn',
1328             'type': 'none',
1329             'dependencies': [
1330                 'TestNetscapePlugIn',
1331             ],
1332             'conditions': [
1333                 ['OS=="win"', {
1334                     'copies': [{
1335                         'destination': '<(PRODUCT_DIR)/plugins',
1336                         'files': ['<(PRODUCT_DIR)/npTestNetscapePlugIn.dll'],
1337                     }],
1338                 }],
1339                 ['OS=="mac"', {
1340                     'dependencies': ['TestNetscapePlugIn'],
1341                     'copies': [{
1342                         'destination': '<(PRODUCT_DIR)/plugins/',
1343                         'files': ['<(PRODUCT_DIR)/TestNetscapePlugIn.plugin/'],
1344                     }],
1345                 }],
1346                 ['os_posix == 1 and OS != "mac"', {
1347                     'copies': [{
1348                         'destination': '<(PRODUCT_DIR)/plugins',
1349                         'files': ['<(PRODUCT_DIR)/libTestNetscapePlugIn.so'],
1350                     }],
1351                 }],
1352             ],
1353         },
1354         {
1355             'target_name': 'TestWebKitAPI',
1356             'type': 'executable',
1357             'dependencies': [
1358                 'webkit',
1359                 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
1360                 '<(chromium_src_dir)/base/base.gyp:test_support_base',
1361                 '<(chromium_src_dir)/testing/gtest.gyp:gtest',
1362                 '<(chromium_src_dir)/testing/gmock.gyp:gmock',
1363                 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_support',
1364             ],
1365             'include_dirs': [
1366                 '../../../Tools/TestWebKitAPI',
1367                 # Needed by tests/RunAllTests.cpp, as well as ChromiumCurrentTime.cpp and
1368                 # ChromiumThreading.cpp in chromium shared library configuration.
1369                 'public',
1370             ],
1371             'sources': [
1372                 # Reuse the same testing driver of Chromium's webkit_unit_tests.
1373                 'tests/RunAllTests.cpp',
1374                 '<@(TestWebKitAPI_files)',
1375             ],
1376             'conditions': [
1377                 ['inside_chromium_build==1 and component=="shared_library"', {
1378                     'sources': [
1379                         # To satisfy linking of WTF::currentTime() etc. in shared library configuration,
1380                         # as the symbols are not exported from the DLLs.
1381                         'src/ChromiumCurrentTime.cpp',
1382                         'src/ChromiumThreading.cpp',
1383                     ],
1384                 }],
1385             ],
1386         },
1387     ], # targets
1388     'conditions': [
1389         ['OS=="win"', {
1390             'targets': [{
1391                 'target_name': 'LayoutTestHelper',
1392                 'type': 'executable',
1393                 'sources': ['../../../Tools/DumpRenderTree/chromium/LayoutTestHelperWin.cpp'],
1394             }],
1395         }],
1396         ['os_posix==1 and OS!="mac" and OS!="android" and gcc_version==46', {
1397             'target_defaults': {
1398                 # Disable warnings about c++0x compatibility, as some names (such
1399                 # as nullptr) conflict with upcoming c++0x types.
1400                 'cflags_cc': ['-Wno-c++0x-compat'],
1401             },
1402         }],
1403         ['OS=="mac"', {
1404             'targets': [
1405                 {
1406                     'target_name': 'LayoutTestHelper',
1407                     'type': 'executable',
1408                     'sources': ['../../../Tools/DumpRenderTree/chromium/LayoutTestHelper.mm'],
1409                     'link_settings': {
1410                         'libraries': [
1411                             '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
1412                         ],
1413                     },
1414                 },
1415                 {
1416                     'target_name': 'copy_mesa',
1417                     'type': 'none',
1418                     'dependencies': ['<(chromium_src_dir)/third_party/mesa/mesa.gyp:osmesa'],
1419                     'copies': [{
1420                         'destination': '<(PRODUCT_DIR)/DumpRenderTree.app/Contents/MacOS/',
1421                         'files': ['<(PRODUCT_DIR)/osmesa.so'],
1422                     }],
1423                 },
1424             ],
1425         }],
1426         ['debug_devtools==0', {
1427             'targets': [
1428                 {
1429                     'target_name': 'concatenated_devtools_js',
1430                     'type': 'none',
1431                     'dependencies': [
1432                         'devtools_html',
1433                         '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources'
1434                     ],
1435                     'actions': [{
1436                         'action_name': 'concatenate_devtools_js',
1437                         'script_name': 'scripts/concatenate_js_files.py',
1438                         'input_page': '../../WebCore/inspector/front-end/inspector.html',
1439                         'inputs': [
1440                             '<@(_script_name)',
1441                             '<@(_input_page)',
1442                             '<@(webinspector_files)',
1443                             '<@(devtools_files)',
1444                             '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js'
1445                         ],
1446                         'search_path': [
1447                             '../../WebCore/inspector/front-end',
1448                             'src/js',
1449                             '<(SHARED_INTERMEDIATE_DIR)/webcore',
1450                         ],
1451                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/DevTools.js'],
1452                         'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_search_path)', '<@(_outputs)'],
1453                     }],
1454                 },
1455                 {
1456                     'target_name': 'concatenated_heap_snapshot_worker_js',
1457                     'type': 'none',
1458                     'actions': [{
1459                         'action_name': 'concatenate_heap_snapshot_worker_js',
1460                         'script_name': 'scripts/inline_js_imports.py',
1461                         'input_file': '../../WebCore/inspector/front-end/HeapSnapshotWorker.js',
1462                         'inputs': [
1463                             '<@(_script_name)',
1464                             '<@(_input_file)',
1465                             '../../WebCore/inspector/front-end/BinarySearch.js',
1466                             '../../WebCore/inspector/front-end/HeapSnapshot.js',
1467                             '../../WebCore/inspector/front-end/HeapSnapshotWorkerDispatcher.js',
1468                             '../../WebCore/inspector/front-end/PartialQuickSort.js',
1469                         ],
1470                         'search_path': '../../WebCore/inspector/front-end',
1471                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/HeapSnapshotWorker.js'],
1472                         'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1473                     }],
1474                 },
1475                 {
1476                     'target_name': 'concatenated_script_formatter_worker_js',
1477                     'type': 'none',
1478                     'actions': [{
1479                         'action_name': 'concatenate_script_formatter_worker_js',
1480                         'script_name': 'scripts/inline_js_imports.py',
1481                         'input_file': '../../WebCore/inspector/front-end/ScriptFormatterWorker.js',
1482                         'inputs': [
1483                             '<@(_script_name)',
1484                             '<@(_input_file)',
1485                             '<@(webinspector_uglifyjs_files)'
1486                         ],
1487                         'search_path': '../../WebCore/inspector/front-end',
1488                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/ScriptFormatterWorker.js'],
1489                         'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1490                     }],
1491                 },
1492                 {
1493                     'target_name': 'concatenated_devtools_css',
1494                     'type': 'none',
1495                     'dependencies': [
1496                         'devtools_html'
1497                     ],
1498                     'actions': [{
1499                         'action_name': 'concatenate_devtools_css',
1500                         'script_name': 'scripts/concatenate_css_files.py',
1501                         'input_page': '../../WebCore/inspector/front-end/inspector.html',
1502                         'inputs': [
1503                             '<@(_script_name)',
1504                             '<@(_input_page)',
1505                             '<@(webinspector_files)',
1506                             '<@(devtools_files)'
1507                         ],
1508                         'search_path': [
1509                             '../../WebCore/inspector/front-end',
1510                             'src/js',
1511                         ],
1512                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/devTools.css'],
1513                         'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_search_path)', '<@(_outputs)'],
1514                     }],
1515                     'copies': [{
1516                         'destination': '<(PRODUCT_DIR)/resources/inspector',
1517                         'files': [
1518                             '<@(webinspector_standalone_css_files)',
1519                         ],
1520                     }],
1521                 },
1522             ],
1523         }],
1524     ], # conditions
1525 }
1526
1527 # Local Variables:
1528 # tab-width:2
1529 # indent-tabs-mode:nil
1530 # End:
1531 # vim: set expandtab tabstop=2 shiftwidth=2: