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