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