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