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