f8e58b383b1b3c51475338c1f5f6399903f43c7e
[WebKit-https.git] / 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         'WinPrecompile.gypi',
34         '../../WebCore/WebCore.gypi',
35         'WebKit.gypi',
36         'features.gypi',
37     ],
38     'variables': {
39         'conditions': [
40             # Location of the chromium src directory and target type is different
41             # if webkit is built inside chromium or as standalone project.
42             ['inside_chromium_build==0', {
43                 # Webkit is being built outside of the full chromium project.
44                 # e.g. via build-webkit --chromium
45                 'chromium_src_dir': '../../WebKit/chromium',
46             },{
47                 # WebKit is checked out in src/chromium/third_party/WebKit
48                 'chromium_src_dir': '../../../../..',
49             }],
50         ],
51         'ahem_path': '../../../Tools/DumpRenderTree/qt/fonts/AHEM____.TTF',
52
53         # If debug_devtools is set to 1, JavaScript files for DevTools are
54         # stored as is. Otherwise, a concatenated file is stored.
55         'debug_devtools%': 0,
56
57         # List of DevTools source files, ordered by dependencies. It is used both
58         # for copying them to resource dir, and for generating 'devtools.html' file.
59         'devtools_files': [
60             '<@(devtools_css_files)',
61             '<@(devtools_js_files)',
62         ],
63     },
64     'targets': [
65         {
66             'target_name': 'webkit',
67             'type': 'static_library',
68             'variables': { 'enable_wexit_time_destructors': 1, },
69             'dependencies': [
70                 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
71                 '../../Platform/Platform.gyp/Platform.gyp:webkit_platform', # actually WebCore should depend on this
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                 '<(chromium_src_dir)/third_party/skia/include/utils',
89             ],
90             'defines': [
91                 'WEBKIT_IMPLEMENTATION=1',
92             ],
93             'sources': [
94                 'bridge/MediaStreamCenter.cpp',
95                 'bridge/MediaStreamCenterInternal.cpp',
96                 'bridge/MediaStreamCenterInternal.h',
97                 'bridge/PeerConnectionHandler.cpp',
98                 'bridge/PeerConnectionHandlerInternal.cpp',
99                 'bridge/PeerConnectionHandlerInternal.h',
100                 'public/WebAccessibilityNotification.h',
101                 'public/WebAccessibilityObject.h',
102                 'public/WebAccessibilityRole.h',
103                 'public/WebAnimationController.h',
104                 'public/WebApplicationCacheHostClient.h',
105                 'public/WebArrayBuffer.h',
106                 'public/WebAttribute.h',
107                 'public/WebAudioSourceProvider.h',
108                 'public/WebAudioSourceProviderClient.h',
109                 'public/WebAutofillClient.h',
110                 'public/WebBindings.h',
111                 'public/WebBlob.h',
112                 'public/WebCache.h',
113                 'public/WebColorChooser.h',
114                 'public/WebColorChooserClient.h',
115                 'public/WebCommonWorkerClient.h',
116                 'public/WebCompositionUnderline.h',
117                 'public/WebCompositor.h',
118                 'public/WebCompositorClient.h',
119                 'public/WebCompositorInputHandler.h',
120                 'public/WebCompositorInputHandlerClient.h',
121                 'public/WebConsoleMessage.h',
122                 'public/WebContextMenuData.h',
123                 'public/WebCrossOriginPreflightResultCache.h',
124                 'public/WebCursorInfo.h',
125                 'public/WebDOMEvent.h',
126                 'public/WebDOMEventListener.h',
127                 'public/WebDOMMessageEvent.h',
128                 'public/WebDOMMouseEvent.h',
129                 'public/WebDOMMutationEvent.h',
130                 'public/WebDOMStringList.h',
131                 'public/WebDataSource.h',
132                 'public/WebDatabase.h',
133                 'public/WebDatabaseObserver.h',
134                 'public/WebDevToolsAgent.h',
135                 'public/WebDevToolsAgentClient.h',
136                 'public/WebDevToolsFrontend.h',
137                 'public/WebDevToolsFrontendClient.h',
138                 'public/WebDeviceOrientation.h',
139                 'public/WebDeviceOrientationClient.h',
140                 'public/WebDeviceOrientationClientMock.h',
141                 'public/WebDeviceOrientationController.h',
142                 'public/WebDocument.h',
143                 'public/WebDocumentType.h',
144                 'public/WebEditingAction.h',
145                 'public/WebElement.h',
146                 'public/WebExceptionCode.h',
147                 'public/WebExternalPopupMenu.h',
148                 'public/WebExternalPopupMenuClient.h',
149                 'public/WebFileChooserCompletion.h',
150                 'public/WebFileChooserParams.h',
151                 'public/WebFileError.h',
152                 'public/WebFileInfo.h',
153                 'public/WebFileSystemCallbacks.h',
154                 'public/WebFileSystemEntry.h',
155                 'public/WebFileUtilities.h',
156                 'public/WebFileWriter.h',
157                 'public/WebFileWriterClient.h',
158                 'public/WebFindOptions.h',
159                 'public/WebFont.h',
160                 'public/WebFontCache.h',
161                 'public/WebFontDescription.h',
162                 'public/WebFormControlElement.h',
163                 'public/WebFormElement.h',
164                 'public/WebFrame.h',
165                 'public/WebFrameClient.h',
166                 'public/WebGeolocationClient.h',
167                 'public/WebGeolocationClientMock.h',
168                 'public/WebGeolocationController.h',
169                 'public/WebGeolocationError.h',
170                 'public/WebGeolocationPermissionRequest.h',
171                 'public/WebGeolocationPermissionRequestManager.h',
172                 'public/WebGeolocationPosition.h',
173                 'public/WebGlyphCache.h',
174                 'public/WebHistoryItem.h',
175                 'public/WebIDBCallbacks.h',
176                 'public/WebIDBCursor.h',
177                 'public/WebIDBDatabase.h',
178                 'public/WebIDBDatabaseCallbacks.h',
179                 'public/WebIDBDatabaseError.h',
180                 'public/WebIDBFactory.h',
181                 'public/WebIDBIndex.h',
182                 'public/WebIDBKey.h',
183                 'public/WebIDBKeyPath.h',
184                 'public/WebIDBKeyRange.h',
185                 'public/WebIDBObjectStore.h',
186                 'public/WebIDBTransaction.h',
187                 'public/WebIDBTransactionCallbacks.h',
188                 'public/WebIconLoadingCompletion.h',
189                 'public/WebIconURL.h',
190                 'public/WebImageDecoder.h',
191                 'public/WebInputElement.h',
192                 'public/WebInputEvent.h',
193                 'public/WebIntent.h',
194                 'public/WebIntentRequest.h',
195                 'public/WebIntentServiceInfo.h',
196                 'public/WebKit.h',
197                 'public/WebLabelElement.h',
198                 'public/WebMediaElement.h',
199                 'public/WebMediaPlayer.h',
200                 'public/WebMediaPlayerAction.h',
201                 'public/WebMediaPlayerClient.h',
202                 'public/WebMediaStreamRegistry.h',
203                 'public/WebMenuItemInfo.h',
204                 'public/WebMessagePortChannel.h',
205                 'public/WebMessagePortChannelClient.h',
206                 'public/WebNamedNodeMap.h',
207                 'public/WebNavigationType.h',
208                 'public/WebNetworkStateNotifier.h',
209                 'public/WebNode.h',
210                 'public/WebNodeCollection.h',
211                 'public/WebNodeList.h',
212                 'public/WebNotification.h',
213                 'public/WebNotificationPermissionCallback.h',
214                 'public/WebNotificationPresenter.h',
215                 'public/WebOptionElement.h',
216                 'public/WebPageOverlay.h',
217                 'public/WebPageSerializer.h',
218                 'public/WebPageSerializerClient.h',
219                 'public/WebPageVisibilityState.h',
220                 'public/WebPasswordFormData.h',
221                 'public/WebPerformance.h',
222                 'public/WebPermissionClient.h',
223                 'public/WebPlugin.h',
224                 'public/WebPluginAction.h',
225                 'public/WebPluginContainer.h',
226                 'public/WebPluginDocument.h',
227                 'public/WebPluginListBuilder.h',
228                 'public/WebPopupMenu.h',
229                 'public/WebPopupMenuInfo.h',
230                 'public/WebPopupType.h',
231                 'public/WebRange.h',
232                 'public/WebReferrerPolicy.h',
233                 'public/WebRegularExpression.h',
234                 'public/WebRuntimeFeatures.h',
235                 'public/WebScopedUserGesture.h',
236                 'public/WebScreenInfo.h',
237                 'public/WebScriptController.h',
238                 'public/WebScriptSource.h',
239                 'public/WebScrollbar.h',
240                 'public/WebScrollbarClient.h',
241                 'public/WebSearchableFormData.h',
242                 'public/WebSecurityOrigin.h',
243                 'public/WebSecurityPolicy.h',
244                 'public/WebSelectElement.h',
245                 'public/WebSettings.h',
246                 'public/WebSharedWorkerClient.h',
247                 'public/WebSharedWorker.h',
248                 'public/WebSharedWorkerRepository.h',
249                 'public/WebSocket.h',
250                 'public/WebSocketClient.h',
251                 'public/WebSpeechInputController.h',
252                 'public/WebSpeechInputListener.h',
253                 'public/WebSpeechInputResult.h',
254                 'public/WebSpellCheckClient.h',
255                 'public/WebStorageArea.h',
256                 'public/WebStorageEventDispatcher.h',
257                 'public/WebStorageNamespace.h',
258                 'public/WebStorageQuotaCallbacks.h',
259                 'public/WebStorageQuotaType.h',
260                 'public/WebStreamTextureClient.h',
261                 'public/WebTextAffinity.h',
262                 'public/WebTextCaseSensitivity.h',
263                 'public/WebTextCheckingCompletion.h',
264                 'public/WebTextCheckingResult.h',
265                 'public/WebTextDirection.h',
266                 'public/WebTextInputType.h',
267                 'public/WebTextRun.h',
268                 'public/WebURLLoaderOptions.h',
269                 'public/WebUserMediaClient.h',
270                 'public/WebUserMediaRequest.h',
271                 'public/WebView.h',
272                 'public/WebViewClient.h',
273                 'public/WebWidget.h',
274                 'public/WebWidgetClient.h',
275                 'public/WebWorkerInfo.h',
276                 'public/WebWorkerRunLoop.h',
277                 'public/android/WebInputEventFactory.h',
278                 'public/android/WebSandboxSupport.h',
279                 'public/gtk/WebInputEventFactory.h',
280                 'public/linux/WebFontRenderStyle.h',
281                 'public/linux/WebFontRendering.h',
282                 'public/linux/WebRenderTheme.h',
283                 'public/mac/WebInputEventFactory.h',
284                 'public/mac/WebSandboxSupport.h',
285                 'public/mac/WebScreenInfoFactory.h',
286                 'public/mac/WebSubstringUtil.h',
287                 'public/platform/WebArrayBufferView.h',
288                 'public/platform/WebAudioBus.h',
289                 'public/platform/WebAudioDevice.h',
290                 'public/platform/WebBlobData.h',
291                 'public/platform/WebBlobRegistry.h',
292                 'public/platform/WebCanvas.h',
293                 'public/platform/WebClipboard.h',
294                 'public/platform/WebColor.h',
295                 'public/platform/WebColorName.h',
296                 'public/platform/WebCommon.h',
297                 'public/platform/WebContentLayer.h',
298                 'public/platform/WebContentLayerClient.h',
299                 'public/platform/WebCookie.h',
300                 'public/platform/WebCookieJar.h',
301                 'public/platform/WebData.h',
302                 'public/platform/WebDragData.h',
303                 'public/platform/WebExternalTextureLayer.h',
304                 'public/platform/WebFileSystem.h',
305                 'public/platform/WebFloatPoint.h',
306                 'public/platform/WebFloatQuad.h',
307                 'public/platform/WebFloatRect.h',
308                 'public/platform/WebGamepad.h',
309                 'public/platform/WebGamepads.h',
310                 'public/platform/WebGraphicsContext3D.h',
311                 'public/platform/WebHTTPBody.h',
312                 'public/platform/WebHTTPHeaderVisitor.h',
313                 'public/platform/WebHTTPLoadInfo.h',
314                 'public/platform/WebImage.h',
315                 'public/platform/WebKitPlatformSupport.h',
316                 'public/platform/WebLayer.h',
317                 'public/platform/WebLayerTreeView.h',
318                 'public/platform/WebLayerTreeViewClient.h',
319                 'public/platform/WebLocalizedString.h',
320                 'public/platform/WebMediaStreamCenter.h',
321                 'public/platform/WebMediaStreamComponent.h',
322                 'public/platform/WebMediaStreamDescriptor.h',
323                 'public/platform/WebMediaStreamSource.h',
324                 'public/platform/WebMediaStreamSourcesRequest.h',
325                 'public/platform/WebNonCopyable.h',
326                 'public/platform/WebPeerConnectionHandler.h',
327                 'public/platform/WebPeerConnectionHandlerClient.h',
328                 'public/platform/WebPoint.h',
329                 'public/platform/WebPrivateOwnPtr.h',
330                 'public/platform/WebPrivatePtr.h',
331                 'public/platform/WebRect.h',
332                 'public/platform/WebSerializedScriptValue.h',
333                 'public/platform/WebSize.h',
334                 'public/platform/WebSocketStreamError.h',
335                 'public/platform/WebSocketStreamHandle.h',
336                 'public/platform/WebSocketStreamHandleClient.h',
337                 'public/platform/WebSolidColorLayer.h',
338                 'public/platform/WebString.h',
339                 'public/platform/WebThread.h',
340                 'public/platform/WebThreadSafeData.h',
341                 'public/platform/WebURL.h',
342                 'public/platform/WebURLError.h',
343                 'public/platform/WebURLLoadTiming.h',
344                 'public/platform/WebURLLoader.h',
345                 'public/platform/WebURLLoaderClient.h',
346                 'public/platform/WebURLRequest.h',
347                 'public/platform/WebURLResponse.h',
348                 'public/platform/WebVector.h',
349                 'public/platform/android/WebSandboxSupport.h',
350                 'public/platform/android/WebThemeEngine.h',
351                 'public/platform/linux/WebThemeEngine.h',
352                 'public/platform/mac/WebSandboxSupport.h',
353                 'public/platform/mac/WebThemeEngine.h',
354                 'public/platform/win/WebSandboxSupport.h',
355                 'public/platform/win/WebThemeEngine.h',
356                 'public/win/WebInputEventFactory.h',
357                 'public/win/WebSandboxSupport.h',
358                 'public/win/WebScreenInfoFactory.h',
359                 'public/x11/WebScreenInfoFactory.h',
360                 'src/ApplicationCacheHost.cpp',
361                 'src/ApplicationCacheHostInternal.h',
362                 'src/AssertMatchingEnums.cpp',
363                 'src/AssociatedURLLoader.cpp',
364                 'src/AssociatedURLLoader.h',
365                 'src/AsyncFileSystemChromium.cpp',
366                 'src/AsyncFileSystemChromium.h',
367                 'src/AsyncFileWriterChromium.cpp',
368                 'src/AsyncFileWriterChromium.h',
369                 'src/AudioDestinationChromium.cpp',
370                 'src/AudioDestinationChromium.h',
371                 'src/AutofillPopupMenuClient.cpp',
372                 'src/AutofillPopupMenuClient.h',
373                 'src/BackForwardListChromium.cpp',
374                 'src/BackForwardListChromium.h',
375                 'src/BlobRegistryProxy.cpp',
376                 'src/BlobRegistryProxy.h',
377                 'src/CCThreadImpl.cpp',
378                 'src/CCThreadImpl.h',
379                 'src/ChromeClientImpl.cpp',
380                 'src/ChromeClientImpl.h',
381                 'src/ColorChooserProxy.cpp',
382                 'src/ColorChooserProxy.h',
383                 'src/ChromiumCurrentTime.cpp',
384                 'src/ChromiumOSRandomSource.cpp',
385                 'src/ChromiumThreading.cpp',
386                 'src/CompositionUnderlineBuilder.h',
387                 'src/CompositionUnderlineVectorBuilder.cpp',
388                 'src/CompositionUnderlineVectorBuilder.h',
389                 'src/ContextMenuClientImpl.cpp',
390                 'src/ContextMenuClientImpl.h',
391                 'src/DatabaseObserver.cpp',
392                 'src/DeviceOrientationClientProxy.cpp',
393                 'src/DeviceOrientationClientProxy.h',
394                 'src/DOMUtilitiesPrivate.cpp',
395                 'src/DOMUtilitiesPrivate.h',
396                 'src/DragClientImpl.cpp',
397                 'src/DragClientImpl.h',
398                 'src/DragScrollTimer.cpp',
399                 'src/DragScrollTimer.h',
400                 'src/EditorClientImpl.cpp',
401                 'src/EditorClientImpl.h',
402                 'src/EventListenerWrapper.cpp',
403                 'src/EventListenerWrapper.h',
404                 'src/Extensions3DChromium.cpp',
405                 'src/ExternalPopupMenu.cpp',
406                 'src/ExternalPopupMenu.h',
407                 'src/FrameLoaderClientImpl.cpp',
408                 'src/FrameLoaderClientImpl.h',
409                 'src/FrameNetworkingContextImpl.h',
410                 'src/GeolocationClientProxy.cpp',
411                 'src/GeolocationClientProxy.h',
412                 'src/GraphicsContext3DChromium.cpp',
413                 'src/GraphicsContext3DPrivate.h',
414                 'src/gtk/WebInputEventFactory.cpp',
415                 'src/IDBCallbacksProxy.cpp',
416                 'src/IDBCallbacksProxy.h',
417                 'src/IDBCursorBackendProxy.cpp',
418                 'src/IDBCursorBackendProxy.h',
419                 'src/IDBDatabaseCallbacksProxy.cpp',
420                 'src/IDBDatabaseCallbacksProxy.h',
421                 'src/IDBDatabaseBackendProxy.cpp',
422                 'src/IDBDatabaseBackendProxy.h',
423                 'src/IDBFactoryBackendProxy.cpp',
424                 'src/IDBFactoryBackendProxy.h',
425                 'src/IDBIndexBackendProxy.cpp',
426                 'src/IDBIndexBackendProxy.h',
427                 'src/IDBObjectStoreBackendProxy.cpp',
428                 'src/IDBObjectStoreBackendProxy.h',
429                 'src/IDBTransactionBackendProxy.cpp',
430                 'src/IDBTransactionBackendProxy.h',
431                 'src/IDBTransactionCallbacksProxy.cpp',
432                 'src/IDBTransactionCallbacksProxy.h',
433                 'src/InspectorClientImpl.cpp',
434                 'src/InspectorClientImpl.h',
435                 'src/InspectorFrontendClientImpl.cpp',
436                 'src/InspectorFrontendClientImpl.h',
437                 'src/NonCompositedContentHost.cpp',
438                 'src/NonCompositedContentHost.h',
439                 'src/android/WebInputEventFactory.cpp',
440                 'src/linux/WebFontInfo.cpp',
441                 'src/linux/WebFontRendering.cpp',
442                 'src/linux/WebFontRenderStyle.cpp',
443                 'src/linux/WebRenderTheme.cpp',
444                 'src/x11/WebScreenInfoFactory.cpp',
445                 'src/mac/WebInputEventFactory.mm',
446                 'src/mac/WebScreenInfoFactory.mm',
447                 'src/mac/WebSubstringUtil.mm',
448                 'src/LocalFileSystemChromium.cpp',
449                 'src/LocalizedStrings.cpp',
450                 'src/MediaPlayerPrivateChromium.cpp',
451                 'src/NotificationPresenterImpl.h',
452                 'src/NotificationPresenterImpl.cpp',
453                 'src/painting/GraphicsContextBuilder.h',
454                 'src/painting/PaintAggregator.h',
455                 'src/painting/PaintAggregator.cpp',
456                 'src/PageOverlay.cpp',
457                 'src/PageOverlay.h',
458                 'src/PageOverlayList.cpp',
459                 'src/PageOverlayList.h',
460                 'src/PlatformMessagePortChannel.cpp',
461                 'src/PlatformMessagePortChannel.h',
462                 'src/PlatformSupport.cpp',
463                 'src/ResourceHandle.cpp',
464                 'src/ScrollbarGroup.cpp',
465                 'src/ScrollbarGroup.h',
466                 'src/SharedWorkerRepository.cpp',
467                 'src/SocketStreamHandle.cpp',
468                 'src/SocketStreamHandleInternal.h',
469                 'src/SpeechInputClientImpl.cpp',
470                 'src/SpeechInputClientImpl.h',
471                 'src/StorageAreaProxy.cpp',
472                 'src/StorageAreaProxy.h',
473                 'src/StorageEventDispatcherChromium.cpp',
474                 'src/StorageEventDispatcherImpl.cpp',
475                 'src/StorageEventDispatcherImpl.h',
476                 'src/StorageInfoChromium.cpp',
477                 'src/StorageNamespaceProxy.cpp',
478                 'src/StorageNamespaceProxy.h',
479                 'src/UserMediaClientImpl.h',
480                 'src/UserMediaClientImpl.cpp',
481                 'src/WebTextCheckingCompletionImpl.h',
482                 'src/WebTextCheckingCompletionImpl.cpp',
483                 'src/WebTextCheckingResult.cpp',
484                 'src/VideoFrameChromiumImpl.cpp',
485                 'src/VideoFrameChromiumImpl.h',
486                 'src/WebAccessibilityObject.cpp',
487                 'src/WebAnimationControllerImpl.cpp',
488                 'src/WebAnimationControllerImpl.h',
489                 'src/WebArrayBuffer.cpp',
490                 'src/WebArrayBufferView.cpp',
491                 'src/WebAttribute.cpp',
492                 'src/WebAudioBus.cpp',
493                 'src/WebBindings.cpp',
494                 'src/WebBlob.cpp',
495                 'src/WebBlobData.cpp',
496                 'src/WebCache.cpp',
497                 'src/WebColor.cpp',
498                 'src/WebColorChooserClientImpl.cpp',
499                 'src/WebColorChooserClientImpl.h',
500                 'src/WebCommon.cpp',
501                 'src/WebCompositorImpl.cpp',
502                 'src/WebCompositorImpl.h',
503                 'src/WebCompositorInputHandlerImpl.cpp',
504                 'src/WebCompositorInputHandlerImpl.h',
505                 'src/WebContentLayer.cpp',
506                 'src/WebContentLayerImpl.cpp',
507                 'src/WebContentLayerImpl.h',
508                 'src/WebCrossOriginPreflightResultCache.cpp',
509                 'src/WebCursorInfo.cpp',
510                 'src/WebDOMEvent.cpp',
511                 'src/WebDOMEventListener.cpp',
512                 'src/WebDOMEventListenerPrivate.cpp',
513                 'src/WebDOMEventListenerPrivate.h',
514                 'src/WebDOMMessageEvent.cpp',
515                 'src/WebDOMMouseEvent.cpp',
516                 'src/WebDOMMutationEvent.cpp',
517                 'src/WebDOMStringList.cpp',
518                 'src/WebData.cpp',
519                 'src/WebDatabase.cpp',
520                 'src/WebDataSourceImpl.cpp',
521                 'src/WebDataSourceImpl.h',
522                 'src/WebDevToolsAgentImpl.cpp',
523                 'src/WebDevToolsAgentImpl.h',
524                 'src/WebDevToolsFrontendImpl.cpp',
525                 'src/WebDevToolsFrontendImpl.h',
526                 'src/WebDeviceOrientation.cpp',
527                 'src/WebDeviceOrientationClientMock.cpp',
528                 'src/WebDeviceOrientationController.cpp',
529                 'src/WebDocument.cpp',
530                 'src/WebDocumentType.cpp',
531                 'src/WebDragData.cpp',
532                 'src/WebElement.cpp',
533                 'src/WebEntities.cpp',
534                 'src/WebEntities.h',
535                 'src/WebExternalTextureLayer.cpp',
536                 'src/WebExternalTextureLayerImpl.cpp',
537                 'src/WebExternalTextureLayerImpl.h',
538                 'src/WebFileChooserCompletionImpl.cpp',
539                 'src/WebFileChooserCompletionImpl.h',
540                 'src/WebFileSystemCallbacksImpl.cpp',
541                 'src/WebFileSystemCallbacksImpl.h',
542                 'src/WebFontCache.cpp',
543                 'src/WebFontDescription.cpp',
544                 'src/WebFontImpl.cpp',
545                 'src/WebFontImpl.h',
546                 'src/WebFormControlElement.cpp',
547                 'src/WebFormElement.cpp',
548                 'src/WebFrameImpl.cpp',
549                 'src/WebFrameImpl.h',
550                 'src/WebGeolocationController.cpp',
551                 'src/WebGeolocationClientMock.cpp',
552                 'src/WebGeolocationError.cpp',
553                 'src/WebGeolocationPermissionRequest.cpp',
554                 'src/WebGeolocationPermissionRequestManager.cpp',
555                 'src/WebGeolocationPosition.cpp',
556                 'src/WebGlyphCache.cpp',
557                 'src/WebGraphicsContext3D.cpp',
558                 'src/WebHistoryItem.cpp',
559                 'src/WebHTTPBody.cpp',
560                 'src/WebHTTPLoadInfo.cpp',
561                 'src/WebIconLoadingCompletionImpl.cpp',
562                 'src/WebIconLoadingCompletionImpl.h',
563                 'src/WebIDBCallbacksImpl.cpp',
564                 'src/WebIDBCallbacksImpl.h',
565                 'src/WebIDBCursorImpl.cpp',
566                 'src/WebIDBCursorImpl.h',
567                 'src/WebIDBDatabaseCallbacksImpl.cpp',
568                 'src/WebIDBDatabaseCallbacksImpl.h',
569                 'src/WebIDBDatabaseError.cpp',
570                 'src/WebIDBDatabaseImpl.cpp',
571                 'src/WebIDBDatabaseImpl.h',
572                 'src/WebIDBFactoryImpl.cpp',
573                 'src/WebIDBFactoryImpl.h',
574                 'src/WebIDBIndexImpl.cpp',
575                 'src/WebIDBIndexImpl.h',
576                 'src/WebIDBKey.cpp',
577                 'src/WebIDBKeyPath.cpp',
578                 'src/WebIDBKeyRange.cpp',
579                 'src/WebIDBObjectStoreImpl.cpp',
580                 'src/WebIDBObjectStoreImpl.h',
581                 'src/WebIDBTransactionImpl.cpp',
582                 'src/WebIDBTransactionImpl.h',
583                 'src/WebIDBTransactionCallbacksImpl.cpp',
584                 'src/WebIDBTransactionCallbacksImpl.h',
585                 'src/WebImageCG.cpp',
586                 'src/WebImageDecoder.cpp',
587                 'src/WebImageSkia.cpp',
588                 'src/WebInputElement.cpp',
589                 'src/WebInputEvent.cpp',
590                 'src/WebInputEventConversion.cpp',
591                 'src/WebInputEventConversion.h',
592                 'src/WebIntent.cpp',
593                 'src/WebIntentRequest.cpp',
594                 'src/WebIntentServiceInfo.cpp',
595                 'src/WebKit.cpp',
596                 'src/WebLabelElement.cpp',
597                 'src/WebLayer.cpp',
598                 'src/WebLayerImpl.cpp',
599                 'src/WebLayerImpl.h',
600                 'src/WebLayerTreeView.cpp',
601                 'src/WebLayerTreeViewImpl.cpp',
602                 'src/WebLayerTreeViewImpl.h',
603                 'src/WebMediaElement.cpp',
604                 'src/WebMediaPlayerClientImpl.cpp',
605                 'src/WebMediaPlayerClientImpl.h',
606                 'src/WebMediaStreamComponent.cpp',
607                 'src/WebMediaStreamDescriptor.cpp',
608                 'src/WebMediaStreamRegistry.cpp',
609                 'src/WebMediaStreamSource.cpp',
610                 'src/WebMediaStreamSourcesRequest.cpp',
611                 'src/WebNamedNodeMap.cpp',
612                 'src/WebNetworkStateNotifier.cpp',
613                 'src/WebNode.cpp',
614                 'src/WebNodeCollection.cpp',
615                 'src/WebNodeList.cpp',
616                 'src/WebNotification.cpp',
617                 'src/WebOptionElement.cpp',
618                 'src/WebPageSerializer.cpp',
619                 'src/WebPageSerializerImpl.cpp',
620                 'src/WebPageSerializerImpl.h',
621                 'src/WebPasswordFormData.cpp',
622                 'src/WebPasswordFormUtils.cpp',
623                 'src/WebPasswordFormUtils.h',
624                 'src/WebPerformance.cpp',
625                 'src/WebPluginContainerImpl.h',
626                 'src/WebPluginContainerImpl.cpp',
627                 'src/WebPluginDocument.cpp',
628                 'src/WebPluginListBuilderImpl.cpp',
629                 'src/WebPluginListBuilderImpl.h',
630                 'src/WebPluginLoadObserver.cpp',
631                 'src/WebPluginLoadObserver.h',
632                 'src/WebPopupMenuImpl.cpp',
633                 'src/WebPopupMenuImpl.h',
634                 'src/WebRange.cpp',
635                 'src/WebRegularExpression.cpp',
636                 'src/WebRuntimeFeatures.cpp',
637                 'src/WebScopedUserGesture.cpp',
638                 'src/WebScriptController.cpp',
639                 'src/WebScrollbarImpl.cpp',
640                 'src/WebScrollbarImpl.h',
641                 'src/WebSearchableFormData.cpp',
642                 'src/WebSecurityOrigin.cpp',
643                 'src/WebSecurityPolicy.cpp',
644                 'src/WebSelectElement.cpp',
645                 'src/WebSerializedScriptValue.cpp',
646                 'src/WebSettingsImpl.cpp',
647                 'src/WebSettingsImpl.h',
648                 'src/WebSharedWorkerImpl.cpp',
649                 'src/WebSharedWorkerImpl.h',
650                 'src/WebSocket.cpp',
651                 'src/WebSocketImpl.cpp',
652                 'src/WebSocketImpl.h',
653                 'src/WebSolidColorLayer.cpp',
654                 'src/WebSolidColorLayerImpl.cpp',
655                 'src/WebSpeechInputResult.cpp',
656                 'src/WebStorageAreaImpl.cpp',
657                 'src/WebStorageAreaImpl.h',
658                 'src/WebStorageEventDispatcherImpl.cpp',
659                 'src/WebStorageEventDispatcherImpl.h',
660                 'src/WebStorageNamespaceImpl.cpp',
661                 'src/WebStorageNamespaceImpl.h',
662                 'src/WebStorageQuotaCallbacksImpl.cpp',
663                 'src/WebStorageQuotaCallbacksImpl.h',
664                 'src/WebTextRun.cpp',
665                 'src/WebThreadSafeData.cpp',
666                 'src/WebURL.cpp',
667                 'src/WebURLLoadTiming.cpp',
668                 'src/WebURLRequest.cpp',
669                 'src/WebURLRequestPrivate.h',
670                 'src/WebURLResponse.cpp',
671                 'src/WebURLResponsePrivate.h',
672                 'src/WebURLError.cpp',
673                 'src/WebScopedUserGesture.cpp',
674                 'src/WebUserMediaRequest.cpp',
675                 'src/WebViewImpl.cpp',
676                 'src/WebViewImpl.h',
677                 'src/WebWorkerBase.cpp',
678                 'src/WebWorkerBase.h',
679                 'src/WebWorkerClientImpl.cpp',
680                 'src/WebWorkerClientImpl.h',
681                 'src/WebWorkerInfo.cpp',
682                 'src/WebWorkerRunLoop.cpp',
683                 'src/WorkerAsyncFileSystemChromium.cpp',
684                 'src/WorkerAsyncFileSystemChromium.h',
685                 'src/WorkerAsyncFileWriterChromium.cpp',
686                 'src/WorkerAsyncFileWriterChromium.h',
687                 'src/WorkerFileSystemCallbacksBridge.cpp',
688                 'src/WorkerFileSystemCallbacksBridge.h',
689                 'src/WorkerFileWriterCallbacksBridge.cpp',
690                 'src/WorkerFileWriterCallbacksBridge.h',
691                 'src/WrappedResourceRequest.h',
692                 'src/WrappedResourceResponse.h',
693                 'src/win/WebInputEventFactory.cpp',
694                 'src/win/WebScreenInfoFactory.cpp',
695             ],
696             'conditions': [
697                 ['inside_chromium_build==1', {
698                     'type': '<(component)',
699
700                     'conditions': [
701                         ['component=="shared_library"', {
702                             'defines': [
703                                 'WEBKIT_DLL',
704                             ],
705                             'dependencies': [
706                                 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore_bindings',
707                                 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore_test_support',
708                                 '<(chromium_src_dir)/base/base.gyp:test_support_base',
709                                 '<(chromium_src_dir)/build/temp_gyp/googleurl.gyp:googleurl',
710                                 '<(chromium_src_dir)/testing/gtest.gyp:gtest',
711                                 '<(chromium_src_dir)/testing/gmock.gyp:gmock',
712                                 '<(chromium_src_dir)/third_party/icu/icu.gyp:*',
713                                 '<(chromium_src_dir)/third_party/libjpeg_turbo/libjpeg.gyp:libjpeg',
714                                 '<(chromium_src_dir)/third_party/libpng/libpng.gyp:libpng',
715                                 '<(chromium_src_dir)/third_party/libxml/libxml.gyp:libxml',
716                                 '<(chromium_src_dir)/third_party/libxslt/libxslt.gyp:libxslt',
717                                 '<(chromium_src_dir)/third_party/modp_b64/modp_b64.gyp:modp_b64',
718                                 '<(chromium_src_dir)/third_party/ots/ots.gyp:ots',
719                                 '<(chromium_src_dir)/third_party/zlib/zlib.gyp:zlib',
720                                 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
721                                 # We must not add webkit_support here because of cyclic dependency.
722                             ],
723                             'direct_dependent_settings': {
724                                 'defines': [
725                                     'WEBKIT_DLL',
726                                 ],
727                             },
728                             'export_dependent_settings': [
729                                 '<(chromium_src_dir)/build/temp_gyp/googleurl.gyp:googleurl',
730                                 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
731                             ],
732                             'include_dirs': [
733                                 # WARNING: Do not view this particular case as a precedent for
734                                 # including WebCore headers in DumpRenderTree project.
735                                 '../../WebCore/testing/v8', # for WebCoreTestSupport.h, needed to link in window.internals code.
736                             ],
737                             'sources': [
738                                 '<@(webkit_unittest_files)',
739                                 'src/WebTestingSupport.cpp',
740                                 'public/WebTestingSupport.h',
741                                 'tests/WebUnitTests.cpp',   # Components test runner support.
742                             ],
743                             'sources!': [
744                                 # We should not include files depending on webkit_support.
745                                 # These tests depend on webkit_support and
746                                 # functions defined only in !WEBKIT_IMPLEMENTATION.
747                                 'tests/AssociatedURLLoaderTest.cpp',
748                                 'tests/FrameTestHelpers.cpp',
749                                 'tests/PopupMenuTest.cpp',
750                                 'tests/RenderTableCellTest.cpp',
751                                 'tests/WebFrameTest.cpp',
752                                 'tests/WebPageNewSerializerTest.cpp',
753                                 'tests/WebPageSerializerTest.cpp',
754                                 'tests/WebViewTest.cpp',
755                             ],
756                             'conditions': [
757                                 ['OS=="win" or OS=="mac"', {
758                                     'dependencies': [
759                                         '<(chromium_src_dir)/third_party/nss/nss.gyp:*',
760                                     ],
761                                 }],
762                                 ['clang==1', {
763                                     # FIXME: It would be nice to enable this in shared builds too,
764                                     # but the test files have global constructors from the GTEST macro
765                                     # and we pull in the test files into the webkit target in the
766                                     # shared build.
767                                     'cflags!': ['-Wglobal-constructors'],
768                                     'xcode_settings': {
769                                       'WARNING_CFLAGS!': ['-Wglobal-constructors'],
770                                     },
771                                 }],
772                             ],
773                             'msvs_settings': {
774                               'VCLinkerTool': {
775                                 'conditions': [
776                                   ['incremental_chrome_dll==1', {
777                                     'UseLibraryDependencyInputs': "true",
778                                   }],
779                                 ],
780                               },
781                             },
782                         }],
783                     ],
784                 }, { # else: inside_chromium_build==0
785                     'direct_dependent_settings': {
786                         'include_dirs': [
787                             '<(SHARED_INTERMEDIATE_DIR)/webkit', # in a chromium-inside-WebKit build, headers in the public WebKit API are copied beneath this directory so includes referencing third_party/WebKit work.
788                         ],
789                     },
790                 }],
791                 ['use_x11 == 1', {
792                     'dependencies': [
793                         '<(chromium_src_dir)/build/linux/system.gyp:fontconfig',
794                         '<(chromium_src_dir)/build/linux/system.gyp:x11',
795                     ],
796                     'include_dirs': [
797                         'public/x11',
798                         'public/linux',
799                     ],
800                 }, { # else: use_x11 != 1
801                     'sources/': [
802                         ['exclude', '/x11/'],
803                         ['exclude', '/linux/'],
804                     ],
805                 }],
806                 ['toolkit_uses_gtk == 1', {
807                     'dependencies': [
808                         '<(chromium_src_dir)/build/linux/system.gyp:gtk',
809                     ],
810                     'include_dirs': [
811                         'public/gtk',
812                     ],
813                 }, { # else: toolkit_uses_gtk != 1
814                     'sources/': [
815                         ['exclude', '/gtk/'],
816                     ],
817                 }],
818                 ['OS=="android"', {
819                     'include_dirs': [
820                         'public/android',
821                     ],
822                 }, { # else: OS!="android"
823                     'sources/': [
824                         ['exclude', '/android/'],
825                     ],
826                 }],
827                 ['OS=="mac"', {
828                     'include_dirs': [
829                         'public/mac',
830                     ],
831                     'conditions': [
832                         ['use_skia==0', {
833                             'sources/': [
834                                 ['exclude', 'Skia\\.cpp$'],
835                             ],
836                         },{ # use_skia
837                             'sources/': [
838                                 ['exclude', 'CG\\.cpp$'],
839                             ],
840                         }],
841                     ],
842                 }, { # else: OS!="mac"
843                     'sources/': [
844                         ['exclude', '/mac/'],
845                         ['exclude', 'CG\\.cpp$'],
846                     ],
847                 }],
848                 ['OS=="win"', {
849                     'include_dirs': [
850                         'public/win',
851                     ],
852                 }, { # else: OS!="win"
853                     'sources/': [['exclude', '/win/']],
854                     'variables': {
855                         # FIXME: Turn on warnings on Windows.
856                         'chromium_code': 1,
857                     }
858                 }],
859                 ['"ENABLE_WEBGL=1" in feature_defines', {
860                     'conditions': [
861                         ['OS=="mac"', {
862                             'link_settings': {
863                                 'libraries': [
864                                     '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
865                                     '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
866                                 ],
867                             },
868                         }],
869                     ],
870                 }],
871                 ['clang==1', {
872                     'cflags': ['-Wglobal-constructors'],
873                     'xcode_settings': {
874                         'WARNING_CFLAGS': ['-Wglobal-constructors'],
875                     },
876                 }],
877             ],
878         },
879         {
880             'target_name': 'inspector_resources',
881             'type': 'none',
882             'dependencies': [
883                 'devtools_html',
884                 '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources',
885             ],
886             'conditions': [
887                 ['debug_devtools==0', {
888                     'dependencies': ['concatenated_devtools_js',
889                                      'concatenated_heap_snapshot_worker_js',
890                                      'concatenated_script_formatter_worker_js',
891                                      'concatenated_devtools_css'],
892                 }],
893             ],
894             'copies': [
895                 {
896                     'destination': '<(PRODUCT_DIR)/resources/inspector',
897                     'files': [
898                         '<@(devtools_files)',
899                         '<@(webinspector_files)',
900                         '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js',
901                     ],
902                     'conditions': [
903                         ['debug_devtools==0', {
904                             'files/': [['exclude', '\\.(js|css|html)$']],
905                         }],
906                     ],
907                 },
908                 {
909                     'destination': '<(PRODUCT_DIR)/resources/inspector/UglifyJS',
910                     'files': [
911                         '<@(webinspector_uglifyjs_files)',
912                     ],
913                     'conditions': [
914                         ['debug_devtools==0', {
915                             'files/': [['exclude', '\\.(js|css|html)$']],
916                         }],
917                     ],
918                 },
919                 {
920                     'destination': '<(PRODUCT_DIR)/resources/inspector/Images',
921                     'files': [
922                         '<@(webinspector_image_files)',
923                         '<@(devtools_image_files)',
924                     ],
925                },
926             ],
927         },
928         {
929             'target_name': 'devtools_html',
930             'type': 'none',
931             'sources': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
932             'actions': [{
933                 'action_name': 'devtools_html',
934                 'script_name': 'scripts/generate_devtools_html.py',
935                 'input_page': '../../WebCore/inspector/front-end/inspector.html',
936                 'inputs': [
937                     '<@(_script_name)',
938                     '<@(_input_page)',
939                     '<@(devtools_files)',
940                 ],
941                 'outputs': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
942                 'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_outputs)', '<@(debug_devtools)', '<@(devtools_files)'],
943             }],
944         },
945         {
946             'target_name': 'devtools_extension_api',
947             'type': 'none',
948             'actions': [{
949                 'action_name': 'devtools_html',
950                 'script_name': 'scripts/generate_devtools_extension_api.py',
951                 'inputs': [
952                     '<@(_script_name)',
953                     '<@(devtools_extension_api_files)',
954                 ],
955                 'outputs': ['<(PRODUCT_DIR)/resources/inspector/devtools_extension_api.js'],
956                 'action': ['python', '<@(_script_name)', '<@(_outputs)', '<@(devtools_extension_api_files)'],
957             }],
958         },
959         {
960             'target_name': 'generate_devtools_grd',
961             'type': 'none',
962             'dependencies': [
963                 'devtools_html',
964                 'devtools_extension_api'
965             ],
966             'conditions': [
967                 ['debug_devtools==0', {
968                     'dependencies': ['concatenated_devtools_js',
969                                      'concatenated_heap_snapshot_worker_js',
970                                      'concatenated_script_formatter_worker_js',
971                                      'concatenated_devtools_css'],
972                 },{
973                     # If we're not concatenating devtools files, we want to
974                     # run after the original files have been copied to
975                     # <(PRODUCT_DIR)/resources/inspector.
976                     'dependencies': ['inspector_resources'],
977                 }],
978             ],
979             'actions': [{
980                 'action_name': 'generate_devtools_grd',
981                 'script_name': 'scripts/generate_devtools_grd.py',
982                 'input_pages': [
983                     '<(PRODUCT_DIR)/resources/inspector/devtools.html',
984                     '<(PRODUCT_DIR)/resources/inspector/DevTools.js',
985                     '<(PRODUCT_DIR)/resources/inspector/HeapSnapshotWorker.js',
986                     '<(PRODUCT_DIR)/resources/inspector/ScriptFormatterWorker.js',
987                     '<(PRODUCT_DIR)/resources/inspector/devTools.css',
988                     '<(PRODUCT_DIR)/resources/inspector/devtools_extension_api.js',
989                     '<@(webinspector_standalone_css_files)',
990                 ],
991                 'images': [
992                     '<@(webinspector_image_files)',
993                     '<@(devtools_image_files)',
994                 ],
995                 'inputs': [
996                     '<@(_script_name)',
997                     '<@(_input_pages)',
998                     '<@(_images)',
999                 ],
1000                 'search_path': [
1001                     '../../WebCore/inspector/front-end/Images',
1002                     'src/js/Images',
1003                 ],
1004                 'outputs': ['<(SHARED_INTERMEDIATE_DIR)/devtools/devtools_resources.grd'],
1005                 'action': ['python', '<@(_script_name)', '<@(_input_pages)', '--images', '<@(_search_path)', '--output', '<@(_outputs)'],
1006             }],
1007         },
1008         {
1009             'target_name': 'generate_devtools_zip',
1010             'type': 'none',
1011             'dependencies': [
1012                 '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources',
1013             ],
1014             'actions': [{
1015                 'action_name': 'generate_devtools_zip',
1016                 'script_name': 'scripts/generate_devtools_zip.py',
1017                 'inspector_html': '../../WebCore/inspector/front-end/inspector.html',
1018                 'workers_files': [
1019                     '../../WebCore/inspector/front-end/HeapSnapshotWorker.js',
1020                     '../../WebCore/inspector/front-end/JavaScriptFormatter.js',
1021                     '../../WebCore/inspector/front-end/ScriptFormatterWorker.js',
1022                     '<@(webinspector_uglifyjs_files)'
1023                 ],
1024                 'inputs': [
1025                     '<@(_script_name)',
1026                     'scripts/generate_devtools_html.py',
1027                     'scripts/generate_devtools_extension_api.py',
1028                     '<@(_inspector_html)',
1029                     '<@(devtools_files)',
1030                     '<@(webinspector_files)',
1031                     '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js',
1032                     '<@(_workers_files)',
1033                     '<@(webinspector_image_files)',
1034                     '<@(devtools_image_files)',
1035                     '<@(devtools_extension_api_files)',
1036                 ],
1037                 'search_path': [
1038                     '../../WebCore/inspector/front-end',
1039                     'src/js',
1040                 ],
1041                 'js_search_path': [
1042                     '<(SHARED_INTERMEDIATE_DIR)/webcore',
1043                 ],
1044                 'outputs': ['<(PRODUCT_DIR)/devtools_frontend.zip'],
1045                 'action': ['python', '<@(_script_name)', '<@(_inspector_html)',
1046                                      '--devtools-files', '<@(devtools_files)',
1047                                      '--workers-files', '<@(_workers_files)',
1048                                      '--extension-api-files', '<@(devtools_extension_api_files)',
1049                                      '--search-path', '<@(_search_path)',
1050                                      '--js-search-path', '<@(_js_search_path)',
1051                                      '--output', '<@(_outputs)'],
1052             }],
1053         },
1054     ], # targets
1055     'conditions': [
1056         ['os_posix==1 and OS!="mac" and OS!="android" and gcc_version==46', {
1057             'target_defaults': {
1058                 # Disable warnings about c++0x compatibility, as some names (such
1059                 # as nullptr) conflict with upcoming c++0x types.
1060                 'cflags_cc': ['-Wno-c++0x-compat'],
1061             },
1062         }],
1063         ['OS=="mac"', {
1064             'targets': [
1065                 {
1066                     'target_name': 'copy_mesa',
1067                     'type': 'none',
1068                     'dependencies': ['<(chromium_src_dir)/third_party/mesa/mesa.gyp:osmesa'],
1069                     'copies': [{
1070                         'destination': '<(PRODUCT_DIR)/DumpRenderTree.app/Contents/MacOS/',
1071                         'files': ['<(PRODUCT_DIR)/osmesa.so'],
1072                     }],
1073                 },
1074             ],
1075         }],
1076         ['debug_devtools==0', {
1077             'targets': [
1078                 {
1079                     'target_name': 'concatenated_devtools_js',
1080                     'type': 'none',
1081                     'dependencies': [
1082                         'devtools_html',
1083                         '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources'
1084                     ],
1085                     'actions': [{
1086                         'action_name': 'concatenate_devtools_js',
1087                         'script_name': 'scripts/concatenate_js_files.py',
1088                         'input_page': '../../WebCore/inspector/front-end/inspector.html',
1089                         'inputs': [
1090                             '<@(_script_name)',
1091                             '<@(_input_page)',
1092                             '<@(webinspector_files)',
1093                             '<@(devtools_files)',
1094                             '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js'
1095                         ],
1096                         'search_path': [
1097                             '../../WebCore/inspector/front-end',
1098                             'src/js',
1099                             '<(SHARED_INTERMEDIATE_DIR)/webcore',
1100                         ],
1101                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/DevTools.js'],
1102                         'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_search_path)', '<@(_outputs)'],
1103                     }],
1104                 },
1105                 {
1106                     'target_name': 'concatenated_heap_snapshot_worker_js',
1107                     'type': 'none',
1108                     'actions': [{
1109                         'action_name': 'concatenate_heap_snapshot_worker_js',
1110                         'script_name': 'scripts/inline_js_imports.py',
1111                         'input_file': '../../WebCore/inspector/front-end/HeapSnapshotWorker.js',
1112                         'inputs': [
1113                             '<@(_script_name)',
1114                             '<@(_input_file)',
1115                             '../../WebCore/inspector/front-end/BinarySearch.js',
1116                             '../../WebCore/inspector/front-end/HeapSnapshot.js',
1117                             '../../WebCore/inspector/front-end/HeapSnapshotWorkerDispatcher.js',
1118                             '../../WebCore/inspector/front-end/PartialQuickSort.js',
1119                         ],
1120                         'search_path': '../../WebCore/inspector/front-end',
1121                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/HeapSnapshotWorker.js'],
1122                         'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1123                     }],
1124                 },
1125                 {
1126                     'target_name': 'concatenated_script_formatter_worker_js',
1127                     'type': 'none',
1128                     'actions': [{
1129                         'action_name': 'concatenate_script_formatter_worker_js',
1130                         'script_name': 'scripts/inline_js_imports.py',
1131                         'input_file': '../../WebCore/inspector/front-end/ScriptFormatterWorker.js',
1132                         'inputs': [
1133                             '<@(_script_name)',
1134                             '<@(_input_file)',
1135                             '<@(webinspector_uglifyjs_files)'
1136                         ],
1137                         'search_path': '../../WebCore/inspector/front-end',
1138                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/ScriptFormatterWorker.js'],
1139                         'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1140                     }],
1141                 },
1142                 {
1143                     'target_name': 'concatenated_devtools_css',
1144                     'type': 'none',
1145                     'dependencies': [
1146                         'devtools_html'
1147                     ],
1148                     'actions': [{
1149                         'action_name': 'concatenate_devtools_css',
1150                         'script_name': 'scripts/concatenate_css_files.py',
1151                         'input_page': '../../WebCore/inspector/front-end/inspector.html',
1152                         'inputs': [
1153                             '<@(_script_name)',
1154                             '<@(_input_page)',
1155                             '<@(webinspector_files)',
1156                             '<@(devtools_files)'
1157                         ],
1158                         'search_path': [
1159                             '../../WebCore/inspector/front-end',
1160                             'src/js',
1161                         ],
1162                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/devTools.css'],
1163                         'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_search_path)', '<@(_outputs)'],
1164                     }],
1165                     'copies': [{
1166                         'destination': '<(PRODUCT_DIR)/resources/inspector',
1167                         'files': [
1168                             '<@(webinspector_standalone_css_files)',
1169                         ],
1170                     }],
1171                 },
1172             ],
1173         }],
1174     ], # conditions
1175 }