7a1825d38e2184617d61714f22979438c8e0c48c
[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/GIFImageDecoderTest.cpp',
647                                 'tests/LevelDBTest.cpp',
648                             ],
649                             'conditions': [
650                                 ['OS=="win" or OS=="mac"', {
651                                     'dependencies': [
652                                         '<(chromium_src_dir)/third_party/nss/nss.gyp:*',
653                                     ],
654                                 }],
655                                 ['clang==1', {
656                                     # FIXME: It would be nice to enable this in shared builds too,
657                                     # but the test files have global constructors from the GTEST macro
658                                     # and we pull in the test files into the webkit target in the
659                                     # shared build.
660                                     'cflags!': ['-Wglobal-constructors'],
661                                     'xcode_settings': {
662                                       'WARNING_CFLAGS!': ['-Wglobal-constructors'],
663                                     },
664                                 }],
665                             ],
666                             'msvs_settings': {
667                               'VCLinkerTool': {
668                                 'conditions': [
669                                   ['incremental_chrome_dll==1', {
670                                     'UseLibraryDependencyInputs': "true",
671                                   }],
672                                 ],
673                               },
674                             },
675                         }],
676                     ],
677                 }, { # else: inside_chromium_build==0
678                     'direct_dependent_settings': {
679                         'include_dirs': [
680                             '<(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.
681                         ],
682                     },
683                 }],
684                 ['use_x11 == 1', {
685                     'dependencies': [
686                         '<(chromium_src_dir)/build/linux/system.gyp:fontconfig',
687                         '<(chromium_src_dir)/build/linux/system.gyp:x11',
688                     ],
689                     'include_dirs': [
690                         'public/x11',
691                         'public/linux',
692                     ],
693                 }, { # else: use_x11 != 1
694                     'sources/': [
695                         ['exclude', '/x11/'],
696                         ['exclude', '/linux/'],
697                     ],
698                 }],
699                 ['toolkit_uses_gtk == 1', {
700                     'dependencies': [
701                         '<(chromium_src_dir)/build/linux/system.gyp:gtk',
702                     ],
703                     'include_dirs': [
704                         'public/gtk',
705                     ],
706                 }, { # else: toolkit_uses_gtk != 1
707                     'sources/': [
708                         ['exclude', '/gtk/'],
709                     ],
710                 }],
711                 ['OS=="android"', {
712                     'include_dirs': [
713                         'public/android',
714                         'public/linux', # We need linux/WebFontRendering.h on Android.
715                     ],
716                 }, { # else: OS!="android"
717                     'sources/': [
718                         ['exclude', '/android/'],
719                     ],
720                 }],
721                 ['OS=="mac"', {
722                     'include_dirs': [
723                         'public/mac',
724                     ],
725                 }, { # else: OS!="mac"
726                     'sources/': [
727                         ['exclude', '/mac/'],
728                     ],
729                 }],
730                 ['OS=="win"', {
731                     'include_dirs': [
732                         'public/win',
733                     ],
734                 }, { # else: OS!="win"
735                     'sources/': [['exclude', '/win/']],
736                     'variables': {
737                         # FIXME: Turn on warnings on Windows.
738                         'chromium_code': 1,
739                     }
740                 }],
741                 ['"ENABLE_WEBGL=1" in feature_defines', {
742                     'conditions': [
743                         ['OS=="mac"', {
744                             'link_settings': {
745                                 'libraries': [
746                                     '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
747                                     '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
748                                 ],
749                             },
750                         }],
751                     ],
752                 }],
753                 ['use_default_render_theme==1', {
754                     'include_dirs': [
755                         'public/default',
756                     ],
757                 }, { # else use_default_render_theme==0
758                     'sources/': [
759                         ['exclude', 'src/default/WebRenderTheme.cpp'],
760                         ['exclude', 'public/default/WebRenderTheme.h'],
761                     ],
762                 }],
763             ],
764             'direct_dependent_settings': {
765                 'include_dirs': [
766                     '../../Platform/chromium/',
767                 ],
768             },
769             'target_conditions': [
770                 ['OS=="android"', {
771                     'sources/': [
772                         ['include', '^src/linux/WebFontRendering\\.cpp$'],
773                         ['include', '^src/linux/WebFontRenderStyle\\.cpp$'],
774                     ],
775                 }],
776             ],
777         },
778         {
779             'target_name': 'webkit_wtf_support',
780             'type': 'static_library',
781             'dependencies': [
782                 '../../WTF/WTF.gyp/WTF.gyp:wtf',
783             ],
784             'defines': [
785                 'WEBKIT_IMPLEMENTATION=1',
786             ],
787             'include_dirs': [
788                 '../../Platform/chromium',
789             ],
790             'sources': [
791                 'src/ChromiumCurrentTime.cpp',
792                 'src/ChromiumOSRandomSource.cpp',
793                 'src/ChromiumThreading.cpp',
794             ],
795             'conditions': [
796                 ['component=="shared_library"', {
797                     'defines': [
798                         'WEBKIT_DLL',
799                     ],
800                 }],
801             ],
802         },
803         {
804             'target_name': 'webkit_test_support',
805             'conditions': [
806                 ['inside_chromium_build==1 and component=="shared_library"', {
807                     'type': 'none',
808                 }, { # else: inside_chromium_build==0 or component!="shared_library"
809                     'type': 'static_library',
810                     'dependencies': [
811                         '../../WTF/WTF.gyp/WTF.gyp:wtf',
812                         '../../WebCore/WebCore.gyp/WebCore.gyp:webcore_test_support',
813                     ],
814                     'include_dirs': [
815                         'public',
816                         '../../WebCore/testing/v8', # for WebCoreTestSupport.h, needed to link in window.internals code.
817                         '../../Platform/chromium/',
818                     ],
819                     'sources': [
820                         'src/WebTestingSupport.cpp',
821                         'public/WebTestingSupport.h',
822                     ],
823                 }],
824             ],
825         },
826         {
827             'target_name': 'inspector_resources',
828             'type': 'none',
829             'dependencies': [
830                 'devtools_html',
831                 '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources',
832             ],
833             'conditions': [
834                 ['debug_devtools==0', {
835                     'dependencies': ['concatenated_devtools_js',
836                                      'concatenated_devtools_elements_js',
837                                      'concatenated_devtools_resources_js',
838                                      'concatenated_devtools_network_js',
839                                      'concatenated_devtools_scripts_js',
840                                      'concatenated_devtools_timeline_js',
841                                      'concatenated_devtools_profiles_js',
842                                      'concatenated_devtools_audits_js',
843                                      'concatenated_devtools_codemirror_js',
844                                      'concatenated_heap_snapshot_worker_js',
845                                      'concatenated_script_formatter_worker_js',
846                                      'concatenated_devtools_css'],
847                 }],
848             ],
849             'copies': [
850                 {
851                     'destination': '<(PRODUCT_DIR)/resources/inspector',
852                     'files': [
853                         '<@(devtools_files)',
854                         '<@(webinspector_files)',
855                         '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendCommands.js',
856                     ],
857                     'conditions': [
858                         ['debug_devtools==0', {
859                             'files/': [['exclude', '\\.(js|css|html)$']],
860                         }],
861                     ],
862                 },
863                 {
864                     'destination': '<(PRODUCT_DIR)/resources/inspector/UglifyJS',
865                     'files': [
866                         '<@(webinspector_uglifyjs_files)',
867                     ],
868                     'conditions': [
869                         ['debug_devtools==0', {
870                             'files/': [['exclude', '\\.(js|css|html)$']],
871                         }],
872                     ],
873                 },
874                 {
875                     'destination': '<(PRODUCT_DIR)/resources/inspector/Images',
876                     'files': [
877                         '<@(webinspector_image_files)',
878                         '<@(devtools_image_files)',
879                     ],
880                 },
881             ],
882         },
883         {
884             'target_name': 'devtools_html',
885             'type': 'none',
886             'sources': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
887             'actions': [{
888                 'action_name': 'devtools_html',
889                 'script_name': 'scripts/generate_devtools_html.py',
890                 'input_page': '../../WebCore/inspector/front-end/inspector.html',
891                 'inputs': [
892                     '<@(_script_name)',
893                     '<@(_input_page)',
894                     '<@(devtools_files)',
895                 ],
896                 'outputs': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
897                 'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_outputs)', '<@(debug_devtools)', '<@(devtools_files)'],
898             }],
899         },
900         {
901             'target_name': 'devtools_extension_api',
902             'type': 'none',
903             'actions': [{
904                 'action_name': 'devtools_html',
905                 'script_name': 'scripts/generate_devtools_extension_api.py',
906                 'inputs': [
907                     '<@(_script_name)',
908                     '<@(devtools_extension_api_files)',
909                 ],
910                 'outputs': ['<(PRODUCT_DIR)/resources/inspector/devtools_extension_api.js'],
911                 'action': ['python', '<@(_script_name)', '<@(_outputs)', '<@(devtools_extension_api_files)'],
912             }],
913         },
914         {
915             'target_name': 'generate_devtools_grd',
916             'type': 'none',
917             'dependencies': [
918                 'devtools_html',
919                 'devtools_extension_api'
920             ],
921             'conditions': [
922                 ['debug_devtools==0', {
923                     'dependencies': ['concatenated_devtools_js',
924                                      'concatenated_devtools_elements_js',
925                                      'concatenated_devtools_resources_js',
926                                      'concatenated_devtools_network_js',
927                                      'concatenated_devtools_scripts_js',
928                                      'concatenated_devtools_timeline_js',
929                                      'concatenated_devtools_profiles_js',
930                                      'concatenated_devtools_audits_js',
931                                      'concatenated_devtools_codemirror_js',
932                                      'concatenated_heap_snapshot_worker_js',
933                                      'concatenated_script_formatter_worker_js',
934                                      'concatenated_devtools_css'],
935                     'actions': [{
936                         'action_name': 'generate_devtools_grd',
937                         'script_name': 'scripts/generate_devtools_grd.py',
938                         'input_pages': [
939                             '<(PRODUCT_DIR)/resources/inspector/devtools.html',
940                             '<(PRODUCT_DIR)/resources/inspector/DevTools.js',
941                             '<(PRODUCT_DIR)/resources/inspector/ElementsPanel.js',
942                             '<(PRODUCT_DIR)/resources/inspector/ResourcesPanel.js',
943                             '<(PRODUCT_DIR)/resources/inspector/NetworkPanel.js',
944                             '<(PRODUCT_DIR)/resources/inspector/ScriptsPanel.js',
945                             '<(PRODUCT_DIR)/resources/inspector/TimelinePanel.js',
946                             '<(PRODUCT_DIR)/resources/inspector/ProfilesPanel.js',
947                             '<(PRODUCT_DIR)/resources/inspector/AuditsPanel.js',
948                             '<(PRODUCT_DIR)/resources/inspector/CodeMirrorTextEditor.js',
949                             '<(PRODUCT_DIR)/resources/inspector/HeapSnapshotWorker.js',
950                             '<(PRODUCT_DIR)/resources/inspector/ScriptFormatterWorker.js',
951                             '<(PRODUCT_DIR)/resources/inspector/devTools.css',
952                             '<(PRODUCT_DIR)/resources/inspector/devtools_extension_api.js',
953                             '<@(webinspector_standalone_css_files)',
954                         ],
955                         'images': [
956                             '<@(webinspector_image_files)',
957                             '<@(devtools_image_files)',
958                         ],
959                         'inputs': [
960                             '<@(_script_name)',
961                             '<@(_input_pages)',
962                             '<@(_images)',
963                         ],
964                         'search_path': [
965                             '../../WebCore/inspector/front-end/Images',
966                             'src/js/Images',
967                         ],
968                         'outputs': ['<(SHARED_INTERMEDIATE_DIR)/devtools/devtools_resources.grd'],
969                         'action': ['python', '<@(_script_name)', '<@(_input_pages)', '--images', '<@(_search_path)', '--output', '<@(_outputs)'],
970                     }],
971                 },
972                 {
973                     # If we're not concatenating devtools files, we want to
974                     # run after the original files have been copied to
975                     # <(PRODUCT_DIR)/resources/inspector.
976                     'dependencies': ['inspector_resources'],
977                     'actions': [{
978                         'action_name': 'generate_devtools_grd',
979                         'script_name': 'scripts/generate_devtools_grd.py',
980                         'input_pages': [
981                             '<@(webinspector_files)',
982                             '<@(devtools_files)',
983                             '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendCommands.js',
984                             '<(PRODUCT_DIR)/resources/inspector/devtools.html',
985                         ],
986                         'images': [
987                             '<@(webinspector_image_files)',
988                             '<@(devtools_image_files)',
989                         ],
990                         'inputs': [
991                             '<@(_script_name)',
992                             '<@(_input_pages)',
993                             '<@(_images)',
994                         ],
995                         'search_path': [
996                             '../../WebCore/inspector/front-end/Images',
997                             'src/js/Images',
998                         ],
999                         'outputs': ['<(SHARED_INTERMEDIATE_DIR)/devtools/devtools_resources.grd'],
1000                         'action': ['python', '<@(_script_name)', '<@(_input_pages)', '--images', '<@(_search_path)', '--output', '<@(_outputs)'],
1001                     }],
1002                 }],
1003             ],
1004         },
1005     ], # targets
1006     'conditions': [
1007         ['os_posix==1 and OS!="mac" and OS!="ios" and gcc_version>=46', {
1008             'target_defaults': {
1009                 # Disable warnings about c++0x compatibility, as some names (such
1010                 # as nullptr) conflict with upcoming c++0x types.
1011                 'cflags_cc': ['-Wno-c++0x-compat'],
1012             },
1013         }],
1014         ['OS=="mac"', {
1015             'targets': [
1016                 {
1017                     'target_name': 'copy_mesa',
1018                     'type': 'none',
1019                     'dependencies': ['<(chromium_src_dir)/third_party/mesa/mesa.gyp:osmesa'],
1020                     'copies': [{
1021                         'destination': '<(PRODUCT_DIR)/DumpRenderTree.app/Contents/MacOS/',
1022                         'files': ['<(PRODUCT_DIR)/osmesa.so'],
1023                     }],
1024                 },
1025             ],
1026         }],
1027         ['debug_devtools==0', {
1028             'targets': [
1029                 {
1030                     'target_name': 'concatenated_devtools_js',
1031                     'type': 'none',
1032                     'dependencies': [
1033                         'devtools_html',
1034                         '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources'
1035                     ],
1036                     'actions': [{
1037                         'action_name': 'concatenate_devtools_js',
1038                         'script_name': 'scripts/concatenate_js_files.py',
1039                         'input_page': '../../WebCore/inspector/front-end/inspector.html',
1040                         'inputs': [
1041                             '<@(_script_name)',
1042                             '<@(_input_page)',
1043                             '<@(webinspector_files)',
1044                             '<@(devtools_files)',
1045                             '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendCommands.js'
1046                         ],
1047                         'search_path': [
1048                             '../../WebCore/inspector/front-end',
1049                             'src/js',
1050                             '<(SHARED_INTERMEDIATE_DIR)/webcore',
1051                         ],
1052                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/DevTools.js'],
1053                         'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_search_path)', '<@(_outputs)'],
1054                     }],
1055                 },
1056                 {
1057                     'target_name': 'concatenated_devtools_elements_js',
1058                     'type': 'none',
1059                     'actions': [{
1060                         'action_name': 'concatenate_devtools_elements_js',
1061                         'script_name': 'scripts/inline_js_imports.py',
1062                         'input_file': '../../WebCore/inspector/front-end/ElementsPanel.js',
1063                         'inputs': [
1064                             '<@(_script_name)',
1065                             '<@(webinspector_elements_js_files)',
1066                         ],
1067                         'search_path': '../../WebCore/inspector/front-end',
1068                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/ElementsPanel.js'],
1069                         'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1070                     }],
1071                 },
1072                 {
1073                     'target_name': 'concatenated_devtools_resources_js',
1074                     'type': 'none',
1075                     'actions': [{
1076                         'action_name': 'concatenate_devtools_resources_js',
1077                         'script_name': 'scripts/inline_js_imports.py',
1078                         'input_file': '../../WebCore/inspector/front-end/ResourcesPanel.js',
1079                         'inputs': [
1080                             '<@(_script_name)',
1081                             '<@(webinspector_resources_js_files)',
1082                         ],
1083                         'search_path': '../../WebCore/inspector/front-end',
1084                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/ResourcesPanel.js'],
1085                         'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1086                     }],
1087                 },
1088                 {
1089                     'target_name': 'concatenated_devtools_network_js',
1090                     'type': 'none',
1091                     'actions': [{
1092                         'action_name': 'concatenate_devtools_network_js',
1093                         'script_name': 'scripts/inline_js_imports.py',
1094                         'input_file': '../../WebCore/inspector/front-end/NetworkPanel.js',
1095                         'inputs': [
1096                             '<@(_script_name)',
1097                             '<@(webinspector_network_js_files)',
1098                         ],
1099                         'search_path': '../../WebCore/inspector/front-end',
1100                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/NetworkPanel.js'],
1101                         'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1102                     }],
1103                 },
1104                 {
1105                     'target_name': 'concatenated_devtools_scripts_js',
1106                     'type': 'none',
1107                     'actions': [{
1108                         'action_name': 'concatenate_devtools_scripts_js',
1109                         'script_name': 'scripts/inline_js_imports.py',
1110                         'input_file': '../../WebCore/inspector/front-end/ScriptsPanel.js',
1111                         'inputs': [
1112                             '<@(_script_name)',
1113                             '<@(webinspector_scripts_js_files)',
1114                         ],
1115                         'search_path': '../../WebCore/inspector/front-end',
1116                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/ScriptsPanel.js'],
1117                         'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1118                     }],
1119                 },
1120                 {
1121                     'target_name': 'concatenated_devtools_timeline_js',
1122                     'type': 'none',
1123                     'actions': [{
1124                         'action_name': 'concatenate_devtools_timeline_js',
1125                         'script_name': 'scripts/inline_js_imports.py',
1126                         'input_file': '../../WebCore/inspector/front-end/TimelinePanel.js',
1127                         'inputs': [
1128                             '<@(_script_name)',
1129                             '<@(webinspector_timeline_js_files)',
1130                         ],
1131                         'search_path': '../../WebCore/inspector/front-end',
1132                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/TimelinePanel.js'],
1133                         'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1134                     }],
1135                 },
1136                 {
1137                     'target_name': 'concatenated_devtools_profiles_js',
1138                     'type': 'none',
1139                     'actions': [{
1140                         'action_name': 'concatenate_devtools_profiles_js',
1141                         'script_name': 'scripts/inline_js_imports.py',
1142                         'input_file': '../../WebCore/inspector/front-end/ProfilesPanel.js',
1143                         'inputs': [
1144                             '<@(_script_name)',
1145                             '<@(webinspector_profiles_js_files)',
1146                         ],
1147                         'search_path': '../../WebCore/inspector/front-end',
1148                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/ProfilesPanel.js'],
1149                         'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1150                     }],
1151                 },
1152                 {
1153                     'target_name': 'concatenated_devtools_audits_js',
1154                     'type': 'none',
1155                     'actions': [{
1156                         'action_name': 'concatenate_devtools_audits_js',
1157                         'script_name': 'scripts/inline_js_imports.py',
1158                         'input_file': '../../WebCore/inspector/front-end/AuditsPanel.js',
1159                         'inputs': [
1160                             '<@(_script_name)',
1161                             '<@(webinspector_audits_js_files)',
1162                         ],
1163                         'search_path': '../../WebCore/inspector/front-end',
1164                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/AuditsPanel.js'],
1165                         'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1166                     }],
1167                 },
1168                 {
1169                     'target_name': 'concatenated_devtools_codemirror_js',
1170                     'type': 'none',
1171                     'actions': [{
1172                         'action_name': 'concatenate_devtools_codemirror_js',
1173                         'script_name': 'scripts/inline_js_imports.py',
1174                         'input_file': '../../WebCore/inspector/front-end/CodeMirrorTextEditor.js',
1175                         'inputs': [
1176                             '<@(_script_name)',
1177                             '<@(webinspector_codemirror_js_files)',
1178                         ],
1179                         'search_path': '../../WebCore/inspector/front-end',
1180                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/CodeMirrorTextEditor.js'],
1181                         'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)', 'true'],
1182                     }],
1183                 },
1184                 {
1185                     'target_name': 'concatenated_heap_snapshot_worker_js',
1186                     'type': 'none',
1187                     'actions': [{
1188                         'action_name': 'concatenate_heap_snapshot_worker_js',
1189                         'script_name': 'scripts/inline_js_imports.py',
1190                         'input_file': '../../WebCore/inspector/front-end/HeapSnapshotWorker.js',
1191                         'inputs': [
1192                             '<@(_script_name)',
1193                             '<@(_input_file)',
1194                             '../../WebCore/inspector/front-end/HeapSnapshot.js',
1195                             '../../WebCore/inspector/front-end/HeapSnapshotLoader.js',
1196                             '../../WebCore/inspector/front-end/HeapSnapshotWorkerDispatcher.js',
1197                             '../../WebCore/inspector/front-end/JSHeapSnapshot.js',
1198                             '../../WebCore/inspector/front-end/utilities.js',
1199                         ],
1200                         'search_path': '../../WebCore/inspector/front-end',
1201                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/HeapSnapshotWorker.js'],
1202                         'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1203                     }],
1204                 },
1205                 {
1206                     'target_name': 'concatenated_script_formatter_worker_js',
1207                     'type': 'none',
1208                     'actions': [{
1209                         'action_name': 'concatenate_script_formatter_worker_js',
1210                         'script_name': 'scripts/inline_js_imports.py',
1211                         'input_file': '../../WebCore/inspector/front-end/ScriptFormatterWorker.js',
1212                         'inputs': [
1213                             '<@(_script_name)',
1214                             '<@(_input_file)',
1215                             '<@(webinspector_uglifyjs_files)'
1216                         ],
1217                         'search_path': '../../WebCore/inspector/front-end',
1218                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/ScriptFormatterWorker.js'],
1219                         'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1220                     }],
1221                 },
1222                 {
1223                     'target_name': 'concatenated_devtools_css',
1224                     'type': 'none',
1225                     'dependencies': [
1226                         'devtools_html'
1227                     ],
1228                     'actions': [{
1229                         'action_name': 'concatenate_devtools_css',
1230                         'script_name': 'scripts/concatenate_css_files.py',
1231                         'input_page': '../../WebCore/inspector/front-end/inspector.html',
1232                         'inputs': [
1233                             '<@(_script_name)',
1234                             '<@(_input_page)',
1235                             '<@(webinspector_files)',
1236                             '<@(devtools_files)'
1237                         ],
1238                         'search_path': [
1239                             '../../WebCore/inspector/front-end',
1240                             'src/js',
1241                         ],
1242                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/devTools.css'],
1243                         'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_search_path)', '<@(_outputs)'],
1244                     }],
1245                     'copies': [{
1246                         'destination': '<(PRODUCT_DIR)/resources/inspector',
1247                         'files': [
1248                             '<@(webinspector_standalone_css_files)',
1249                         ],
1250                     }],
1251                 },
1252             ],
1253         }],
1254         ['clang==1', {
1255             'target_defaults': {
1256                 'cflags': ['-Wglobal-constructors'],
1257                 'xcode_settings': {
1258                     'WARNING_CFLAGS': ['-Wglobal-constructors'],
1259                 },
1260             },
1261         }],
1262     ], # conditions
1263 }