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