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