Unreviewed, rolling out r96108, r96111, r96113, and r96116.
[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                 ['toolkit_uses_gtk == 1', {
695                     'dependencies': [
696                         '<(chromium_src_dir)/build/linux/system.gyp:fontconfig',
697                         '<(chromium_src_dir)/build/linux/system.gyp:gtk',
698                         '<(chromium_src_dir)/build/linux/system.gyp:x11',
699                     ],
700                     'include_dirs': [
701                         'public/x11',
702                         'public/gtk',
703                         'public/linux',
704                     ],
705                 }, { # else: toolkit_uses_gtk != 1
706                     'sources/': [
707                         ['exclude', '/gtk/'],
708                         ['exclude', '/x11/'],
709                         ['exclude', '/linux/'],
710                     ],
711                 }],
712                 ['OS=="android"', {
713                     'include_dirs': [
714                         'public/android',
715                     ],
716                 }],
717                 ['OS=="mac"', {
718                     'include_dirs': [
719                         'public/mac',
720                     ],
721                     'conditions': [
722                         ['use_skia==0', {
723                             'sources/': [
724                                 ['exclude', 'Skia\\.cpp$'],
725                             ],
726                         },{ # use_skia
727                             'sources/': [
728                                 ['exclude', 'CG\\.cpp$'],
729                             ],
730                         }],
731                     ],
732                 }, { # else: OS!="mac"
733                     'sources/': [
734                         ['exclude', '/mac/'],
735                         ['exclude', 'CG\\.cpp$'],
736                     ],
737                 }],
738                 ['OS=="win"', {
739                     'include_dirs': [
740                         'public/win',
741                     ],
742                 }, { # else: OS!="win"
743                     'sources/': [['exclude', '/win/']],
744                     'variables': {
745                         # FIXME: Turn on warnings on Windows.
746                         'chromium_code': 1,
747                     }
748                 }],
749                 ['"ENABLE_WEBGL=1" in feature_defines', {
750                     'conditions': [
751                         ['OS=="mac"', {
752                             'link_settings': {
753                                 'libraries': [
754                                     '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
755                                 ],
756                             },
757                         }],
758                     ],
759                 }],
760             ],
761         },
762         {
763             'target_name': 'inspector_resources',
764             'type': 'none',
765             'dependencies': [
766                 'devtools_html',
767                 '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources',
768             ],
769             'conditions': [
770                 ['debug_devtools==0', {
771                     'dependencies': ['concatenated_devtools_js',
772                                      'concatenated_heap_snapshot_worker_js',
773                                      'concatenated_script_formatter_worker_js',
774                                      'concatenated_devtools_css'],
775                 }],
776             ],
777             'copies': [
778                 {
779                     'destination': '<(PRODUCT_DIR)/resources/inspector',
780                     'files': [
781                         '<@(devtools_files)',
782                         '<@(webinspector_files)',
783                         '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js',
784                     ],
785                     'conditions': [
786                         ['debug_devtools==0', {
787                             'files/': [['exclude', '\\.(js|css|html)$']],
788                         }],
789                     ],
790                 },
791                 {
792                     'destination': '<(PRODUCT_DIR)/resources/inspector/UglifyJS',
793                     'files': [
794                         '<@(webinspector_uglifyjs_files)',
795                     ],
796                     'conditions': [
797                         ['debug_devtools==0', {
798                             'files/': [['exclude', '\\.(js|css|html)$']],
799                         }],
800                     ],
801                 },
802                 {
803                     'destination': '<(PRODUCT_DIR)/resources/inspector/Images',
804                     'files': [
805                         '<@(webinspector_image_files)',
806                         '<@(devtools_image_files)',
807                     ],
808                },
809             ],
810         },
811         {
812             'target_name': 'devtools_html',
813             'type': 'none',
814             'sources': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
815             'actions': [{
816                 'action_name': 'devtools_html',
817                 'script_name': 'scripts/generate_devtools_html.py',
818                 'input_page': '../../WebCore/inspector/front-end/inspector.html',
819                 'inputs': [
820                     '<@(_script_name)',
821                     '<@(_input_page)',
822                     '<@(devtools_files)',
823                 ],
824                 'outputs': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
825                 'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_outputs)', '<@(debug_devtools)', '<@(devtools_files)'],
826             }],
827         },
828         {
829             'target_name': 'devtools_extension_api',
830             'type': 'none',
831             'actions': [{
832                 'action_name': 'devtools_html',
833                 'script_name': 'scripts/generate_devtools_extension_api.py',
834                 'inputs': [
835                     '<@(_script_name)',
836                     '<@(webinspector_extension_api_files)',
837                 ],
838                 'outputs': ['<(PRODUCT_DIR)/resources/inspector/devtools_extension_api.js'],
839                 'action': ['python', '<@(_script_name)', '<@(_outputs)', '<@(webinspector_extension_api_files)'],
840             }],
841         },
842         {
843             'target_name': 'generate_devtools_grd',
844             'type': 'none',
845             'dependencies': [
846                 'devtools_html',
847                 'devtools_extension_api'
848             ],
849             'conditions': [
850                 ['debug_devtools==0', {
851                     'dependencies': ['concatenated_devtools_js',
852                                      'concatenated_heap_snapshot_worker_js',
853                                      'concatenated_script_formatter_worker_js',
854                                      'concatenated_devtools_css'],
855                 },{
856                     # If we're not concatenating devtools files, we want to
857                     # run after the original files have been copied to
858                     # <(PRODUCT_DIR)/resources/inspector.
859                     'dependencies': ['inspector_resources'],
860                 }],
861             ],
862             'actions': [{
863                 'action_name': 'generate_devtools_grd',
864                 'script_name': 'scripts/generate_devtools_grd.py',
865                 'input_pages': [
866                     '<(PRODUCT_DIR)/resources/inspector/devtools.html',
867                     '<(PRODUCT_DIR)/resources/inspector/DevTools.js',
868                     '<(PRODUCT_DIR)/resources/inspector/HeapSnapshotWorker.js',
869                     '<(PRODUCT_DIR)/resources/inspector/ScriptFormatterWorker.js',
870                     '<(PRODUCT_DIR)/resources/inspector/devTools.css',
871                     '<(PRODUCT_DIR)/resources/inspector/devtools_extension_api.js',
872                     '<@(webinspector_standalone_css_files)',
873                 ],
874                 'images': [
875                     '<@(webinspector_image_files)',
876                     '<@(devtools_image_files)',
877                 ],
878                 'inputs': [
879                     '<@(_script_name)',
880                     '<@(_input_pages)',
881                     '<@(_images)',
882                 ],
883                 'search_path': [
884                     '../../WebCore/inspector/front-end/Images',
885                     'src/js/Images',
886                 ],
887                 'outputs': ['<(SHARED_INTERMEDIATE_DIR)/devtools/devtools_resources.grd'],
888                 'action': ['python', '<@(_script_name)', '<@(_input_pages)', '--images', '<@(_search_path)', '--output', '<@(_outputs)'],
889             }],
890         },
891         {
892             'target_name': 'generate_devtools_zip',
893             'type': 'none',
894             'dependencies': [
895                 '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources',
896             ],
897             'actions': [{
898                 'action_name': 'generate_devtools_zip',
899                 'script_name': 'scripts/generate_devtools_zip.py',
900                 'inspector_html': '../../WebCore/inspector/front-end/inspector.html',
901                 'workers_files': [
902                     '../../WebCore/inspector/front-end/HeapSnapshotWorker.js',
903                     '../../WebCore/inspector/front-end/JavaScriptFormatter.js',
904                     '../../WebCore/inspector/front-end/ScriptFormatterWorker.js',
905                     '<@(webinspector_uglifyjs_files)'
906                 ],
907                 'inputs': [
908                     '<@(_script_name)',
909                     'scripts/generate_devtools_html.py',
910                     'scripts/generate_devtools_extension_api.py',
911                     '<@(_inspector_html)',
912                     '<@(devtools_files)',
913                     '<@(webinspector_files)',
914                     '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js',
915                     '<@(_workers_files)',
916                     '<@(webinspector_image_files)',
917                     '<@(devtools_image_files)',
918                     '<@(webinspector_extension_api_files)',
919                 ],
920                 'search_path': [
921                     '../../WebCore/inspector/front-end',
922                     'src/js',
923                     '<(SHARED_INTERMEDIATE_DIR)/webcore',
924                 ],
925                 'image_search_path': [
926                     '../../WebCore/inspector/front-end/Images',
927                     'src/js/Images',
928                 ],
929                 'outputs': ['<(PRODUCT_DIR)/devtools_frontend.zip'],
930                 'action': ['python', '<@(_script_name)', '<@(_inspector_html)',
931                                      '--devtools-files', '<@(devtools_files)',
932                                      '--workers-files', '<@(_workers_files)',
933                                      '--extension-api-files', '<@(webinspector_extension_api_files)',
934                                      '--search-path', '<@(_search_path)',
935                                      '--image-search-path', '<@(_image_search_path)',
936                                      '--output', '<@(_outputs)'],
937             }],
938         },
939         {
940             'target_name': 'webkit_unit_tests',
941             'type': 'executable',
942             'msvs_guid': '7CEFE800-8403-418A-AD6A-2D52C6FC3EAD',
943             'dependencies': [
944                 'webkit',
945                 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
946                 '<(chromium_src_dir)/testing/gtest.gyp:gtest',
947                 '<(chromium_src_dir)/testing/gmock.gyp:gmock',
948                 '<(chromium_src_dir)/base/base.gyp:base',
949                 '<(chromium_src_dir)/base/base.gyp:base_i18n',
950                 '<(chromium_src_dir)/base/base.gyp:test_support_base',
951                 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_support',
952             ],
953             'sources': [
954                 'tests/RunAllTests.cpp',
955             ],
956             'include_dirs': [
957                 'public',
958                 'src',
959             ],
960             'conditions': [
961                 ['inside_chromium_build==1 and component=="shared_library"', {
962                     'defines': [
963                         'WEBKIT_DLL_UNITTEST',
964                     ],
965                 }, {
966                     'sources': [
967                         '<@(webkit_unittest_files)',
968                     ],
969                     'conditions': [
970                         ['toolkit_uses_gtk == 1', {
971                             'include_dirs': [
972                                 'public/gtk',
973                             ],
974                             'variables': {
975                               # FIXME: Enable warnings on other platforms.
976                               'chromium_code': 1,
977                             },
978                         }],
979                     ],
980                 }],
981                 ['inside_chromium_build==1 and OS=="win" and component!="shared_library"', {
982                     'configurations': {
983                         'Debug_Base': {
984                             'msvs_settings': {
985                                 'VCLinkerTool': {
986                                     'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
987                                 },
988                             },
989                         },
990                     },
991                 }],
992             ],
993         },
994         {
995             'target_name': 'ImageDiff',
996             'type': 'executable',
997             'dependencies': [
998                 'webkit',
999                 '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf',
1000                 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_support',
1001             ],
1002             'include_dirs': [
1003                 '../../JavaScriptCore',
1004                 '<(DEPTH)',
1005             ],
1006             'sources': [
1007                 '../../../Tools/DumpRenderTree/chromium/ImageDiff.cpp',
1008             ],
1009         },
1010         {
1011             'target_name': 'DumpRenderTree',
1012             'type': 'executable',
1013             'mac_bundle': 1,
1014             'dependencies': [
1015                 'ImageDiff',
1016                 'inspector_resources',
1017                 'webkit',
1018                 '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf_config',
1019                 '<(chromium_src_dir)/build/temp_gyp/googleurl.gyp:googleurl',
1020                 '<(chromium_src_dir)/third_party/icu/icu.gyp:icuuc',
1021                 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
1022                 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:blob',
1023                 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_support',
1024             ],
1025             'include_dirs': [
1026                 '<(chromium_src_dir)',
1027                 'public',
1028                 '../../JavaScriptCore',
1029                 '../../JavaScriptCore/wtf', # wtf/text/*.h refers headers in wtf/ without wtf/.
1030                 '<(DEPTH)',
1031             ],
1032             'defines': [
1033                 # Technically not a unit test but require functions available only to
1034                 # unit tests.
1035                 'UNIT_TEST',
1036             ],
1037             'sources': [
1038                 '<@(drt_files)',
1039             ],
1040             'conditions': [
1041                 ['OS=="win"', {
1042                     'dependencies': [
1043                         'LayoutTestHelper',
1044                         '<(chromium_src_dir)/third_party/angle/src/build_angle.gyp:libEGL',
1045                         '<(chromium_src_dir)/third_party/angle/src/build_angle.gyp:libGLESv2',
1046                     ],
1047
1048                     'resource_include_dirs': ['<(SHARED_INTERMEDIATE_DIR)/webkit'],
1049                     'sources': [
1050                         '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
1051                         '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.rc',
1052                         '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc',
1053                         '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc',
1054                     ],
1055                     'conditions': [
1056                         ['inside_chromium_build==1', {
1057                             'configurations': {
1058                                 'Debug_Base': {
1059                                     'msvs_settings': {
1060                                         'VCLinkerTool': {
1061                                             'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
1062                                         },
1063                                     },
1064                                 },
1065                             },
1066                         }],
1067                     ],
1068                     'copies': [{
1069                         'destination': '<(PRODUCT_DIR)',
1070                         'files': ['<(ahem_path)'],
1071                     }],
1072                 },{ # OS!="win"
1073                     'sources/': [
1074                         ['exclude', 'Win\\.cpp$'],
1075                     ],
1076                     'actions': [
1077                         {
1078                             'action_name': 'repack_locale',
1079                             'variables': {
1080                                 'repack_path': '<(chromium_src_dir)/tools/grit/grit/format/repack.py',
1081                                 'pak_inputs': [
1082                                     '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
1083                                     '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.pak',
1084                                     '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.pak',
1085                                     '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
1086                                     '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak',
1087                             ]},
1088                             'inputs': [
1089                                 '<(repack_path)',
1090                                 '<@(pak_inputs)',
1091                             ],
1092                             'outputs': [
1093                                 '<(INTERMEDIATE_DIR)/repack/DumpRenderTree.pak',
1094                             ],
1095                             'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inputs)'],
1096                             'process_outputs_as_mac_bundle_resources': 1,
1097                         },
1098                     ], # actions
1099                 }],
1100                 ['OS=="mac"', {
1101                     'dependencies': [
1102                         'copy_mesa',
1103                         'LayoutTestHelper',
1104                     ],
1105                     'mac_bundle_resources': [
1106                         '<(ahem_path)',
1107                         '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher100.ttf',
1108                         '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher200.ttf',
1109                         '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher300.ttf',
1110                         '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher400.ttf',
1111                         '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher500.ttf',
1112                         '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher600.ttf',
1113                         '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher700.ttf',
1114                         '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher800.ttf',
1115                         '../../../Tools/DumpRenderTree/fonts/WebKitWeightWatcher900.ttf',
1116                         '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
1117                     ],
1118                 },{ # OS!="mac"
1119                     'sources/': [
1120                         # .mm is already excluded by common.gypi
1121                         ['exclude', 'Mac\\.cpp$'],
1122                     ],
1123                 }],
1124                 ['toolkit_uses_gtk == 1', {
1125                     'dependencies': [
1126                         '<(chromium_src_dir)/build/linux/system.gyp:fontconfig',
1127                         '<(chromium_src_dir)/build/linux/system.gyp:gtk',
1128                     ],
1129                     'include_dirs': [
1130                         'public/gtk',
1131                     ],
1132                     'copies': [{
1133                         'destination': '<(PRODUCT_DIR)',
1134                         'files': [
1135                             '<(ahem_path)',
1136                             '../../../Tools/DumpRenderTree/chromium/fonts.conf',
1137                             '<(INTERMEDIATE_DIR)/repack/DumpRenderTree.pak',
1138                         ]
1139                     }],
1140                     'variables': {
1141                         # FIXME: Enable warnings on other platforms.
1142                         'chromium_code': 1,
1143                     },
1144                     'conditions': [
1145                         ['linux_use_tcmalloc == 1', {
1146                             'dependencies': [
1147                                 '<(chromium_src_dir)/base/allocator/allocator.gyp:allocator',
1148                             ],
1149                         }],
1150                     ],
1151                 },{ # toolkit_uses_gtk != 1
1152                     'sources/': [
1153                         ['exclude', '(Gtk|Linux)\\.cpp$']
1154                     ]
1155                 }],
1156                 ['OS!="android"', {
1157                     'sources/': [
1158                         ['exclude', '(Android)\\.cpp$']
1159                     ],
1160                     'dependencies': [
1161                         'copy_TestNetscapePlugIn',
1162                         '<(chromium_src_dir)/third_party/mesa/mesa.gyp:osmesa',
1163                     ],
1164                 }],
1165                 ['inside_chromium_build==1 and component=="shared_library"', {
1166                     'sources': [
1167                         'src/ChromiumCurrentTime.cpp',
1168                         'src/ChromiumThreading.cpp',
1169                     ],
1170                     'include_dirs': [
1171                         'public',
1172                     ],
1173                     'dependencies': [
1174                         '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf',
1175                     ],
1176                 }],
1177                 ['inside_chromium_build==0', {
1178                     'dependencies': [
1179                         '<(chromium_src_dir)/webkit/support/setup_third_party.gyp:third_party_headers',
1180                     ]
1181                 }],
1182                 ['inside_chromium_build==0 or component!="shared_library"', {
1183                     'dependencies': [
1184                         '../../WebCore/WebCore.gyp/WebCore.gyp:webcore_test_support',
1185                     ],
1186                     'include_dirs': [
1187                         # WARNING: Do not view this particular case as a precedent for
1188                         # including WebCore headers in DumpRenderTree project.
1189                         '../../WebCore/testing/v8', # for WebCoreTestSupport.h, needed to link in window.internals code.
1190                     ],
1191                     'sources': [
1192                         'src/WebTestingSupport.cpp',
1193                         'public/WebTestingSupport.h',
1194                     ],
1195                 }],
1196             ],
1197         },
1198         {
1199             'target_name': 'TestNetscapePlugIn',
1200             'type': 'loadable_module',
1201             'sources': [ '<@(test_plugin_files)' ],
1202             'dependencies': [
1203                 '<(chromium_src_dir)/third_party/npapi/npapi.gyp:npapi',
1204             ],
1205             'include_dirs': [
1206                 '<(chromium_src_dir)',
1207                 '../../../Tools/DumpRenderTree/TestNetscapePlugIn',
1208                 '../../../Tools/DumpRenderTree/chromium/TestNetscapePlugIn/ForwardingHeaders',
1209             ],
1210             'conditions': [
1211                 ['OS=="mac"', {
1212                     'mac_bundle': 1,
1213                     'product_extension': 'plugin',
1214                     'link_settings': {
1215                         'libraries': [
1216                             '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
1217                             '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
1218                             '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
1219                         ]
1220                     },
1221                     'xcode_settings': {
1222                         'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
1223                         'INFOPLIST_FILE': '../../../Tools/DumpRenderTree/TestNetscapePlugIn/mac/Info.plist',
1224                     },
1225                 }],
1226                 ['os_posix == 1 and OS != "mac"', {
1227                     'cflags': [
1228                         '-fvisibility=default',
1229                     ],
1230                 }],
1231                 ['OS=="win"', {
1232                     'defines': [
1233                         # This seems like a hack, but this is what Safari Win does.
1234                         'snprintf=_snprintf',
1235                     ],
1236                     'sources': [
1237                         '../../../Tools/DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.def',
1238                         '../../../Tools/DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.rc',
1239                     ],
1240                     # The .rc file requires that the name of the dll is npTestNetscapePlugin.dll.
1241                     'product_name': 'npTestNetscapePlugin',
1242                 }],
1243             ],
1244         },
1245         {
1246             'target_name': 'copy_TestNetscapePlugIn',
1247             'type': 'none',
1248             'dependencies': [
1249                 'TestNetscapePlugIn',
1250             ],
1251             'conditions': [
1252                 ['OS=="win"', {
1253                     'copies': [{
1254                         'destination': '<(PRODUCT_DIR)/plugins',
1255                         'files': ['<(PRODUCT_DIR)/npTestNetscapePlugIn.dll'],
1256                     }],
1257                 }],
1258                 ['OS=="mac"', {
1259                     'dependencies': ['TestNetscapePlugIn'],
1260                     'copies': [{
1261                         'destination': '<(PRODUCT_DIR)/plugins/',
1262                         'files': ['<(PRODUCT_DIR)/TestNetscapePlugIn.plugin/'],
1263                     }],
1264                 }],
1265                 ['os_posix == 1 and OS != "mac"', {
1266                     'copies': [{
1267                         'destination': '<(PRODUCT_DIR)/plugins',
1268                         'files': ['<(PRODUCT_DIR)/libTestNetscapePlugIn.so'],
1269                     }],
1270                 }],
1271             ],
1272         },
1273         {
1274             'target_name': 'TestWebKitAPI',
1275             'type': 'executable',
1276             'dependencies': [
1277                 'webkit',
1278                 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
1279                 '<(chromium_src_dir)/base/base.gyp:test_support_base',
1280                 '<(chromium_src_dir)/testing/gtest.gyp:gtest',
1281                 '<(chromium_src_dir)/testing/gmock.gyp:gmock',
1282                 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_support',
1283             ],
1284             'include_dirs': [
1285                 '../../../Tools/TestWebKitAPI',
1286                 # Needed by tests/RunAllTests.cpp, as well as ChromiumCurrentTime.cpp and
1287                 # ChromiumThreading.cpp in chromium shared library configuration.
1288                 'public',
1289             ],
1290             'sources': [
1291                 # Reuse the same testing driver of Chromium's webkit_unit_tests.
1292                 'tests/RunAllTests.cpp',
1293                 '<@(TestWebKitAPI_files)',
1294             ],
1295             'conditions': [
1296                 ['inside_chromium_build==1 and component=="shared_library"', {
1297                     'sources': [
1298                         # To satisfy linking of WTF::currentTime() etc. in shared library configuration,
1299                         # as the symbols are not exported from the DLLs.
1300                         'src/ChromiumCurrentTime.cpp',
1301                         'src/ChromiumThreading.cpp',
1302                     ],
1303                 }],
1304             ],
1305         },
1306     ], # targets
1307     'conditions': [
1308         ['OS=="win"', {
1309             'targets': [{
1310                 'target_name': 'LayoutTestHelper',
1311                 'type': 'executable',
1312                 'sources': ['../../../Tools/DumpRenderTree/chromium/LayoutTestHelperWin.cpp'],
1313             }],
1314         }],
1315         ['os_posix==1 and OS!="mac" and gcc_version==46', {
1316             'target_defaults': {
1317                 # Disable warnings about c++0x compatibility, as some names (such
1318                 # as nullptr) conflict with upcoming c++0x types.
1319                 'cflags_cc': ['-Wno-c++0x-compat'],
1320             },
1321         }],
1322         ['OS=="mac"', {
1323             'targets': [
1324                 {
1325                     'target_name': 'LayoutTestHelper',
1326                     'type': 'executable',
1327                     'sources': ['../../../Tools/DumpRenderTree/chromium/LayoutTestHelper.mm'],
1328                     'link_settings': {
1329                         'libraries': [
1330                             '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
1331                         ],
1332                     },
1333                 },
1334                 {
1335                     'target_name': 'copy_mesa',
1336                     'type': 'none',
1337                     'dependencies': ['<(chromium_src_dir)/third_party/mesa/mesa.gyp:osmesa'],
1338                     'copies': [{
1339                         'destination': '<(PRODUCT_DIR)/DumpRenderTree.app/Contents/MacOS/',
1340                         'files': ['<(PRODUCT_DIR)/osmesa.so'],
1341                     }],
1342                 },
1343             ],
1344         }],
1345         ['debug_devtools==0', {
1346             'targets': [
1347                 {
1348                     'target_name': 'concatenated_devtools_js',
1349                     'type': 'none',
1350                     'dependencies': [
1351                         'devtools_html',
1352                         '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources'
1353                     ],
1354                     'actions': [{
1355                         'action_name': 'concatenate_devtools_js',
1356                         'script_name': 'scripts/concatenate_js_files.py',
1357                         'input_page': '../../WebCore/inspector/front-end/inspector.html',
1358                         'inputs': [
1359                             '<@(_script_name)',
1360                             '<@(_input_page)',
1361                             '<@(webinspector_files)',
1362                             '<@(devtools_files)',
1363                             '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js'
1364                         ],
1365                         'search_path': [
1366                             '../../WebCore/inspector/front-end',
1367                             'src/js',
1368                             '<(SHARED_INTERMEDIATE_DIR)/webcore',
1369                         ],
1370                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/DevTools.js'],
1371                         'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_search_path)', '<@(_outputs)'],
1372                     }],
1373                 },
1374                 {
1375                     'target_name': 'concatenated_heap_snapshot_worker_js',
1376                     'type': 'none',
1377                     'actions': [{
1378                         'action_name': 'concatenate_heap_snapshot_worker_js',
1379                         'script_name': 'scripts/inline_js_imports.py',
1380                         'input_file': '../../WebCore/inspector/front-end/HeapSnapshotWorker.js',
1381                         'inputs': [
1382                             '<@(_script_name)',
1383                             '../../WebCore/inspector/front-end/BinarySearch.js',
1384                             '../../WebCore/inspector/front-end/HeapSnapshot.js',
1385                             '../../WebCore/inspector/front-end/HeapSnapshotWorkerDispatcher.js',
1386                             '../../WebCore/inspector/front-end/PartialQuickSort.js',
1387                         ],
1388                         'search_path': '../../WebCore/inspector/front-end',
1389                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/HeapSnapshotWorker.js'],
1390                         'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1391                     }],
1392                 },
1393                 {
1394                     'target_name': 'concatenated_script_formatter_worker_js',
1395                     'type': 'none',
1396                     'actions': [{
1397                         'action_name': 'concatenate_script_formatter_worker_js',
1398                         'script_name': 'scripts/inline_js_imports.py',
1399                         'input_file': '../../WebCore/inspector/front-end/ScriptFormatterWorker.js',
1400                         'inputs': [
1401                             '<@(_script_name)',
1402                             '<@(webinspector_uglifyjs_files)'
1403                         ],
1404                         'search_path': '../../WebCore/inspector/front-end',
1405                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/ScriptFormatterWorker.js'],
1406                         'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1407                     }],
1408                 },
1409                 {
1410                     'target_name': 'concatenated_devtools_css',
1411                     'type': 'none',
1412                     'dependencies': [
1413                         'devtools_html'
1414                     ],
1415                     'actions': [{
1416                         'action_name': 'concatenate_devtools_css',
1417                         'script_name': 'scripts/concatenate_css_files.py',
1418                         'input_page': '../../WebCore/inspector/front-end/inspector.html',
1419                         'inputs': [
1420                             '<@(_script_name)',
1421                             '<@(_input_page)',
1422                             '<@(webinspector_files)',
1423                             '<@(devtools_files)'
1424                         ],
1425                         'search_path': [
1426                             '../../WebCore/inspector/front-end',
1427                             'src/js',
1428                         ],
1429                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/devTools.css'],
1430                         'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_search_path)', '<@(_outputs)'],
1431                     }],
1432                     'copies': [{
1433                         'destination': '<(PRODUCT_DIR)/resources/inspector',
1434                         'files': [
1435                             '<@(webinspector_standalone_css_files)',
1436                         ],
1437                     }],
1438                 },
1439             ],
1440         }],
1441     ], # conditions
1442 }
1443
1444 # Local Variables:
1445 # tab-width:2
1446 # indent-tabs-mode:nil
1447 # End:
1448 # vim: set expandtab tabstop=2 shiftwidth=2: