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