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