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