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