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