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