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