[chromium] Separate IOSurface layer type from texture layers
[WebKit.git] / Source / WebKit / chromium / WebKit.gyp
1 #
2 # Copyright (C) 2011 Google Inc. All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
6 # met:
7 #
8 #         * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 #         * Redistributions in binary form must reproduce the above
11 # copyright notice, this list of conditions and the following disclaimer
12 # in the documentation and/or other materials provided with the
13 # distribution.
14 #         * Neither the name of Google Inc. nor the names of its
15 # contributors may be used to endorse or promote products derived from
16 # this software without specific prior written permission.
17 #
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 #
30
31 {
32     'includes': [
33         'WinPrecompile.gypi',
34         '../../WebCore/WebCore.gypi',
35         'WebKit.gypi',
36         'features.gypi',
37     ],
38     'variables': {
39         'conditions': [
40             # Location of the chromium src directory and target type is different
41             # if webkit is built inside chromium or as standalone project.
42             ['inside_chromium_build==0', {
43                 # Webkit is being built outside of the full chromium project.
44                 # e.g. via build-webkit --chromium
45                 'chromium_src_dir': '../../WebKit/chromium',
46             },{
47                 # WebKit is checked out in src/chromium/third_party/WebKit
48                 'chromium_src_dir': '../../../../..',
49             }],
50         ],
51         'ahem_path': '../../../Tools/DumpRenderTree/qt/fonts/AHEM____.TTF',
52
53         # If debug_devtools is set to 1, JavaScript files for DevTools are
54         # stored as is. Otherwise, a concatenated file is stored.
55         'debug_devtools%': 0,
56
57         # List of DevTools source files, ordered by dependencies. It is used both
58         # for copying them to resource dir, and for generating 'devtools.html' file.
59         'devtools_files': [
60             '<@(devtools_css_files)',
61             '<@(devtools_js_files)',
62         ],
63     },
64     'targets': [
65         {
66             'target_name': 'webkit',
67             'type': 'static_library',
68             'variables': { 'enable_wexit_time_destructors': 1, },
69             'dependencies': [
70                 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
71                 '../../Platform/Platform.gyp/Platform.gyp:webkit_platform', # actually WebCore should depend on this
72                 '<(chromium_src_dir)/skia/skia.gyp:skia',
73                 '<(chromium_src_dir)/third_party/icu/icu.gyp:icuuc',
74                 '<(chromium_src_dir)/third_party/npapi/npapi.gyp:npapi',
75                 '<(chromium_src_dir)/third_party/angle/src/build_angle.gyp:translator_glsl',
76                 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
77             ],
78             'export_dependent_settings': [
79                 '<(chromium_src_dir)/skia/skia.gyp:skia',
80                 '<(chromium_src_dir)/third_party/icu/icu.gyp:icuuc',
81                 '<(chromium_src_dir)/third_party/npapi/npapi.gyp:npapi',
82                 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
83             ],
84             'include_dirs': [
85                 'public',
86                 'src',
87                 '<(chromium_src_dir)/third_party/angle/include',
88                 '<(chromium_src_dir)/third_party/skia/include/utils',
89             ],
90             'defines': [
91                 'WEBKIT_IMPLEMENTATION=1',
92             ],
93             'sources': [
94                 '<@(webcore_platform_support_files)',
95                 'public/WebAccessibilityNotification.h',
96                 'public/WebAccessibilityObject.h',
97                 'public/WebAccessibilityRole.h',
98                 'public/WebAnimationController.h',
99                 'public/WebApplicationCacheHostClient.h',
100                 'public/WebArrayBuffer.h',
101                 'public/WebAudioSourceProvider.h',
102                 'public/WebAudioSourceProviderClient.h',
103                 'public/WebAutofillClient.h',
104                 'public/WebBatteryStatus.h',
105                 'public/WebBatteryStatusClient.h',
106                 'public/WebBindings.h',
107                 'public/WebBlob.h',
108                 'public/WebCache.h',
109                 'public/WebColorChooser.h',
110                 'public/WebColorChooserClient.h',
111                 'public/WebColorName.h',
112                 'public/WebCommonWorkerClient.h',
113                 'public/WebCompositionUnderline.h',
114                 'public/WebCompositor.h',
115                 'public/WebCompositorClient.h',
116                 'public/WebCompositorInputHandler.h',
117                 'public/WebCompositorInputHandlerClient.h',
118                 'public/WebConsoleMessage.h',
119                 'public/WebContextMenuData.h',
120                 'public/WebCrossOriginPreflightResultCache.h',
121                 'public/WebCursorInfo.h',
122                 'public/WebDOMEvent.h',
123                 'public/WebDOMEventListener.h',
124                 'public/WebDOMMessageEvent.h',
125                 'public/WebDOMMouseEvent.h',
126                 'public/WebDOMMutationEvent.h',
127                 'public/WebDOMStringList.h',
128                 'public/WebDataSource.h',
129                 'public/WebDatabase.h',
130                 'public/WebDatabaseObserver.h',
131                 'public/WebDevToolsAgent.h',
132                 'public/WebDevToolsAgentClient.h',
133                 'public/WebDevToolsFrontend.h',
134                 'public/WebDevToolsFrontendClient.h',
135                 'public/WebDeviceOrientation.h',
136                 'public/WebDeviceOrientationClient.h',
137                 'public/WebDeviceOrientationClientMock.h',
138                 'public/WebDeviceOrientationController.h',
139                 'public/WebDocument.h',
140                 'public/WebDocumentType.h',
141                 'public/WebEditingAction.h',
142                 'public/WebElement.h',
143                 'public/WebExceptionCode.h',
144                 'public/WebExternalPopupMenu.h',
145                 'public/WebExternalPopupMenuClient.h',
146                 'public/WebFileChooserCompletion.h',
147                 'public/WebFileChooserParams.h',
148                 'public/WebFileError.h',
149                 'public/WebFileInfo.h',
150                 'public/WebFileSystemCallbacks.h',
151                 'public/WebFileSystemEntry.h',
152                 'public/WebFileUtilities.h',
153                 'public/WebFileWriter.h',
154                 'public/WebFileWriterClient.h',
155                 'public/WebFindOptions.h',
156                 'public/WebFont.h',
157                 'public/WebFontCache.h',
158                 'public/WebFontDescription.h',
159                 'public/WebFormControlElement.h',
160                 'public/WebFormElement.h',
161                 'public/WebFrame.h',
162                 'public/WebFrameClient.h',
163                 'public/WebGeolocationClient.h',
164                 'public/WebGeolocationClientMock.h',
165                 'public/WebGeolocationController.h',
166                 'public/WebGeolocationError.h',
167                 'public/WebGeolocationPermissionRequest.h',
168                 'public/WebGeolocationPermissionRequestManager.h',
169                 'public/WebGeolocationPosition.h',
170                 'public/WebGlyphCache.h',
171                 'public/WebHistoryItem.h',
172                 'public/WebHitTestResult.h',
173                 'public/WebIDBCallbacks.h',
174                 'public/WebIDBCursor.h',
175                 'public/WebIDBDatabase.h',
176                 'public/WebIDBDatabaseCallbacks.h',
177                 'public/WebIDBDatabaseError.h',
178                 'public/WebIDBDatabaseException.h',
179                 'public/WebIDBFactory.h',
180                 'public/WebIDBIndex.h',
181                 'public/WebIDBKey.h',
182                 'public/WebIDBKeyPath.h',
183                 'public/WebIDBKeyRange.h',
184                 'public/WebIDBObjectStore.h',
185                 'public/WebIDBTransaction.h',
186                 'public/WebIDBTransactionCallbacks.h',
187                 'public/WebIconLoadingCompletion.h',
188                 'public/WebIconURL.h',
189                 'public/WebImageDecoder.h',
190                 'public/WebInputElement.h',
191                 'public/WebInputEvent.h',
192                 'public/WebIntent.h',
193                 'public/WebIntentRequest.h',
194                 'public/WebIntentServiceInfo.h',
195                 'public/WebKit.h',
196                 'public/WebLabelElement.h',
197                 'public/WebMediaPlayer.h',
198                 'public/WebMediaPlayerAction.h',
199                 'public/WebMediaPlayerClient.h',
200                 'public/WebMediaStreamRegistry.h',
201                 'public/WebMenuItemInfo.h',
202                 'public/WebMessagePortChannel.h',
203                 'public/WebMessagePortChannelClient.h',
204                 'public/WebNavigationType.h',
205                 'public/WebNetworkStateNotifier.h',
206                 'public/WebNode.h',
207                 'public/WebNodeCollection.h',
208                 'public/WebNodeList.h',
209                 'public/WebNotification.h',
210                 'public/WebNotificationPermissionCallback.h',
211                 'public/WebNotificationPresenter.h',
212                 'public/WebOptionElement.h',
213                 'public/WebPageOverlay.h',
214                 'public/WebPagePopup.h',
215                 'public/WebPageSerializer.h',
216                 'public/WebPageSerializerClient.h',
217                 'public/WebPageVisibilityState.h',
218                 'public/WebPasswordFormData.h',
219                 'public/WebPerformance.h',
220                 'public/WebPermissionClient.h',
221                 'public/WebPlugin.h',
222                 'public/WebPluginAction.h',
223                 'public/WebPluginContainer.h',
224                 'public/WebPluginDocument.h',
225                 'public/WebPluginListBuilder.h',
226                 'public/WebPrintScalingOption.h',
227                 'public/WebPopupMenu.h',
228                 'public/WebPopupMenuInfo.h',
229                 'public/WebPopupType.h',
230                 'public/WebRange.h',
231                 'public/WebReferrerPolicy.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/WebScrollbar.h',
240                 'public/WebScrollbarClient.h',
241                 'public/WebSearchableFormData.h',
242                 'public/WebSecurityOrigin.h',
243                 'public/WebSecurityPolicy.h',
244                 'public/WebSelectElement.h',
245                 'public/WebSettings.h',
246                 'public/WebSharedWorkerClient.h',
247                 'public/WebSharedWorker.h',
248                 'public/WebSharedWorkerRepository.h',
249                 'public/WebSocket.h',
250                 'public/WebSocketClient.h',
251                 'public/WebSpeechGrammar.h',
252                 'public/WebSpeechInputController.h',
253                 'public/WebSpeechInputListener.h',
254                 'public/WebSpeechInputResult.h',
255                 'public/WebSpeechRecognitionHandle.h',
256                 'public/WebSpeechRecognitionParams.h',
257                 'public/WebSpeechRecognitionResult.h',
258                 'public/WebSpeechRecognizerClient.h',
259                 'public/WebSpeechRecognizer.h',
260                 'public/WebSpellCheckClient.h',
261                 'public/WebStorageArea.h',
262                 'public/WebStorageEventDispatcher.h',
263                 'public/WebStorageNamespace.h',
264                 'public/WebStorageQuotaCallbacks.h',
265                 'public/WebStorageQuotaType.h',
266                 'public/WebSurroundingText.h',
267                 'public/WebStreamTextureClient.h',
268                 'public/WebTextAffinity.h',
269                 'public/WebTextCaseSensitivity.h',
270                 'public/WebTextCheckingCompletion.h',
271                 'public/WebTextCheckingResult.h',
272                 'public/WebTextDirection.h',
273                 'public/WebTextFieldDecoratorClient.h',
274                 'public/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/WebViewClient.h',
282                 'public/WebWidget.h',
283                 'public/WebWidgetClient.h',
284                 'public/WebWorkerInfo.h',
285                 'public/WebWorkerRunLoop.h',
286                 'public/android/WebInputEventFactory.h',
287                 'public/android/WebSandboxSupport.h',
288                 'public/gtk/WebInputEventFactory.h',
289                 'public/linux/WebFontRenderStyle.h',
290                 'public/linux/WebFontRendering.h',
291                 'public/linux/WebRenderTheme.h',
292                 'public/mac/WebInputEventFactory.h',
293                 'public/mac/WebSandboxSupport.h',
294                 'public/mac/WebScreenInfoFactory.h',
295                 'public/mac/WebSubstringUtil.h',
296                 'public/platform/WebArrayBufferView.h',
297                 'public/platform/WebAudioBus.h',
298                 'public/platform/WebAudioDevice.h',
299                 'public/platform/WebBlobData.h',
300                 'public/platform/WebBlobRegistry.h',
301                 'public/platform/WebCanvas.h',
302                 'public/platform/WebClipboard.h',
303                 'public/platform/WebColor.h',
304                 'public/platform/WebCommon.h',
305                 'public/platform/WebContentLayer.h',
306                 'public/platform/WebContentLayerClient.h',
307                 'public/platform/WebCookie.h',
308                 'public/platform/WebCookieJar.h',
309                 'public/platform/WebData.h',
310                 'public/platform/WebDragData.h',
311                 'public/platform/WebExternalTextureLayer.h',
312                 'public/platform/WebFileSystem.h',
313                 'public/platform/WebFloatPoint.h',
314                 'public/platform/WebFloatQuad.h',
315                 'public/platform/WebFloatRect.h',
316                 'public/platform/WebGamepad.h',
317                 'public/platform/WebGamepads.h',
318                 'public/platform/WebGraphicsContext3D.h',
319                 'public/platform/WebHTTPBody.h',
320                 'public/platform/WebHTTPHeaderVisitor.h',
321                 'public/platform/WebHTTPLoadInfo.h',
322                 'public/platform/WebImage.h',
323                 'public/platform/WebKitPlatformSupport.h',
324                 'public/platform/WebLayer.h',
325                 'public/platform/WebLayerTreeView.h',
326                 'public/platform/WebLayerTreeViewClient.h',
327                 'public/platform/WebLocalizedString.h',
328                 'public/platform/WebNonCopyable.h',
329                 'public/platform/WebPoint.h',
330                 'public/platform/WebPrivateOwnPtr.h',
331                 'public/platform/WebPrivatePtr.h',
332                 'public/platform/WebRect.h',
333                 'public/platform/WebReferrerPolicy.h',
334                 'public/platform/WebSerializedScriptValue.h',
335                 'public/platform/WebSize.h',
336                 'public/platform/WebSocketStreamError.h',
337                 'public/platform/WebSocketStreamHandle.h',
338                 'public/platform/WebSocketStreamHandleClient.h',
339                 'public/platform/WebSolidColorLayer.h',
340                 'public/platform/WebString.h',
341                 'public/platform/WebThread.h',
342                 'public/platform/WebThreadSafeData.h',
343                 'public/platform/WebURL.h',
344                 'public/platform/WebURLError.h',
345                 'public/platform/WebURLLoadTiming.h',
346                 'public/platform/WebURLLoader.h',
347                 'public/platform/WebURLLoaderClient.h',
348                 'public/platform/WebURLRequest.h',
349                 'public/platform/WebURLResponse.h',
350                 'public/platform/WebVector.h',
351                 'public/platform/android/WebSandboxSupport.h',
352                 'public/platform/android/WebThemeEngine.h',
353                 'public/platform/linux/WebThemeEngine.h',
354                 'public/platform/mac/WebSandboxSupport.h',
355                 'public/platform/mac/WebThemeEngine.h',
356                 'public/platform/win/WebSandboxSupport.h',
357                 'public/platform/win/WebThemeEngine.h',
358                 'public/win/WebInputEventFactory.h',
359                 'public/win/WebSandboxSupport.h',
360                 'public/win/WebScreenInfoFactory.h',
361                 'public/x11/WebScreenInfoFactory.h',
362                 'src/ApplicationCacheHost.cpp',
363                 'src/ApplicationCacheHostInternal.h',
364                 'src/AssertMatchingEnums.cpp',
365                 'src/AssociatedURLLoader.cpp',
366                 'src/AssociatedURLLoader.h',
367                 'src/AsyncFileSystemChromium.cpp',
368                 'src/AsyncFileSystemChromium.h',
369                 'src/AsyncFileWriterChromium.cpp',
370                 'src/AsyncFileWriterChromium.h',
371                 'src/AudioDestinationChromium.cpp',
372                 'src/AudioDestinationChromium.h',
373                 'src/AutofillPopupMenuClient.cpp',
374                 'src/AutofillPopupMenuClient.h',
375                 'src/BackForwardListChromium.cpp',
376                 'src/BackForwardListChromium.h',
377                 'src/BatteryClientImpl.cpp',
378                 'src/BatteryClientImpl.h',
379                 'src/BlobRegistryProxy.cpp',
380                 'src/BlobRegistryProxy.h',
381                 'src/CCThreadImpl.cpp',
382                 'src/CCThreadImpl.h',
383                 'src/ChromeClientImpl.cpp',
384                 'src/ChromeClientImpl.h',
385                 'src/ColorChooserProxy.cpp',
386                 'src/ColorChooserProxy.h',
387                 'src/ChromiumCurrentTime.cpp',
388                 'src/ChromiumOSRandomSource.cpp',
389                 'src/ChromiumThreading.cpp',
390                 'src/CompositionUnderlineBuilder.h',
391                 'src/CompositionUnderlineVectorBuilder.cpp',
392                 'src/CompositionUnderlineVectorBuilder.h',
393                 'src/ContextMenuClientImpl.cpp',
394                 'src/ContextMenuClientImpl.h',
395                 'src/DatabaseObserver.cpp',
396                 'src/DeviceOrientationClientProxy.cpp',
397                 'src/DeviceOrientationClientProxy.h',
398                 'src/DOMUtilitiesPrivate.cpp',
399                 'src/DOMUtilitiesPrivate.h',
400                 'src/DragClientImpl.cpp',
401                 'src/DragClientImpl.h',
402                 'src/DragScrollTimer.cpp',
403                 'src/DragScrollTimer.h',
404                 'src/EditorClientImpl.cpp',
405                 'src/EditorClientImpl.h',
406                 'src/EventListenerWrapper.cpp',
407                 'src/EventListenerWrapper.h',
408                 'src/Extensions3DChromium.cpp',
409                 'src/ExternalPopupMenu.cpp',
410                 'src/ExternalPopupMenu.h',
411                 'src/FrameLoaderClientImpl.cpp',
412                 'src/FrameLoaderClientImpl.h',
413                 'src/FrameNetworkingContextImpl.h',
414                 'src/GeolocationClientProxy.cpp',
415                 'src/GeolocationClientProxy.h',
416                 'src/GraphicsContext3DChromium.cpp',
417                 'src/GraphicsContext3DPrivate.h',
418                 'src/gtk/WebInputEventFactory.cpp',
419                 'src/IDBCallbacksProxy.cpp',
420                 'src/IDBCallbacksProxy.h',
421                 'src/IDBCursorBackendProxy.cpp',
422                 'src/IDBCursorBackendProxy.h',
423                 'src/IDBDatabaseCallbacksProxy.cpp',
424                 'src/IDBDatabaseCallbacksProxy.h',
425                 'src/IDBDatabaseBackendProxy.cpp',
426                 'src/IDBDatabaseBackendProxy.h',
427                 'src/IDBFactoryBackendProxy.cpp',
428                 'src/IDBFactoryBackendProxy.h',
429                 'src/IDBIndexBackendProxy.cpp',
430                 'src/IDBIndexBackendProxy.h',
431                 'src/IDBObjectStoreBackendProxy.cpp',
432                 'src/IDBObjectStoreBackendProxy.h',
433                 'src/IDBTransactionBackendProxy.cpp',
434                 'src/IDBTransactionBackendProxy.h',
435                 'src/IDBTransactionCallbacksProxy.cpp',
436                 'src/IDBTransactionCallbacksProxy.h',
437                 'src/InspectorClientImpl.cpp',
438                 'src/InspectorClientImpl.h',
439                 'src/InspectorFrontendClientImpl.cpp',
440                 'src/InspectorFrontendClientImpl.h',
441                 'src/NonCompositedContentHost.cpp',
442                 'src/NonCompositedContentHost.h',
443                 'src/android/WebInputEventFactory.cpp',
444                 'src/linux/WebFontInfo.cpp',
445                 'src/linux/WebFontRendering.cpp',
446                 'src/linux/WebFontRenderStyle.cpp',
447                 'src/linux/WebRenderTheme.cpp',
448                 'src/x11/WebScreenInfoFactory.cpp',
449                 'src/mac/WebInputEventFactory.mm',
450                 'src/mac/WebScreenInfoFactory.mm',
451                 'src/mac/WebSubstringUtil.mm',
452                 'src/LocalFileSystemChromium.cpp',
453                 'src/LocalizedStrings.cpp',
454                 'src/MediaPlayerPrivateChromium.cpp',
455                 'src/NotificationPresenterImpl.h',
456                 'src/NotificationPresenterImpl.cpp',
457                 'src/painting/GraphicsContextBuilder.h',
458                 'src/painting/PaintAggregator.h',
459                 'src/painting/PaintAggregator.cpp',
460                 'src/PageOverlay.cpp',
461                 'src/PageOverlay.h',
462                 'src/PageOverlayList.cpp',
463                 'src/PageOverlayList.h',
464                 'src/PageWidgetDelegate.cpp',
465                 'src/PageWidgetDelegate.h',
466                 'src/PlatformMessagePortChannel.cpp',
467                 'src/PlatformMessagePortChannel.h',
468                 'src/PlatformSupport.cpp',
469                 'src/ScrollbarGroup.cpp',
470                 'src/ScrollbarGroup.h',
471                 'src/SharedWorkerRepository.cpp',
472                 'src/SocketStreamHandle.cpp',
473                 'src/SocketStreamHandleInternal.h',
474                 'src/SpeechInputClientImpl.cpp',
475                 'src/SpeechInputClientImpl.h',
476                 'src/SpeechRecognitionClientProxy.cpp',
477                 'src/SpeechRecognitionClientProxy.h',
478                 'src/StorageAreaProxy.cpp',
479                 'src/StorageAreaProxy.h',
480                 'src/StorageEventDispatcherImpl.cpp',
481                 'src/StorageEventDispatcherImpl.h',
482                 'src/StorageInfoChromium.cpp',
483                 'src/StorageNamespaceProxy.cpp',
484                 'src/StorageNamespaceProxy.h',
485                 'src/TextFieldDecoratorImpl.h',
486                 'src/TextFieldDecoratorImpl.cpp',
487                 'src/UserMediaClientImpl.h',
488                 'src/UserMediaClientImpl.cpp',
489                 'src/WebTextCheckingCompletionImpl.h',
490                 'src/WebTextCheckingCompletionImpl.cpp',
491                 'src/WebTextCheckingResult.cpp',
492                 'src/WebAccessibilityObject.cpp',
493                 'src/WebAnimationControllerImpl.cpp',
494                 'src/WebAnimationControllerImpl.h',
495                 'src/WebArrayBuffer.cpp',
496                 'src/WebArrayBufferView.cpp',
497                 'src/WebBindings.cpp',
498                 'src/WebBlob.cpp',
499                 'src/WebBlobData.cpp',
500                 'src/WebCache.cpp',
501                 'src/WebColorChooserClientImpl.cpp',
502                 'src/WebColorChooserClientImpl.h',
503                 'src/WebColorName.cpp',
504                 'src/WebCommon.cpp',
505                 'src/WebCompositorImpl.cpp',
506                 'src/WebCompositorImpl.h',
507                 'src/WebCompositorInputHandlerImpl.cpp',
508                 'src/WebCompositorInputHandlerImpl.h',
509                 'src/WebContentLayer.cpp',
510                 'src/WebContentLayerImpl.cpp',
511                 'src/WebContentLayerImpl.h',
512                 'src/WebCrossOriginPreflightResultCache.cpp',
513                 'src/WebCursorInfo.cpp',
514                 'src/WebDOMEvent.cpp',
515                 'src/WebDOMEventListener.cpp',
516                 'src/WebDOMEventListenerPrivate.cpp',
517                 'src/WebDOMEventListenerPrivate.h',
518                 'src/WebDOMMessageEvent.cpp',
519                 'src/WebDOMMouseEvent.cpp',
520                 'src/WebDOMMutationEvent.cpp',
521                 'src/WebDOMStringList.cpp',
522                 'src/WebDatabase.cpp',
523                 'src/WebDataSourceImpl.cpp',
524                 'src/WebDataSourceImpl.h',
525                 'src/WebDevToolsAgentImpl.cpp',
526                 'src/WebDevToolsAgentImpl.h',
527                 'src/WebDevToolsFrontendImpl.cpp',
528                 'src/WebDevToolsFrontendImpl.h',
529                 'src/WebDeviceOrientation.cpp',
530                 'src/WebDeviceOrientationClientMock.cpp',
531                 'src/WebDeviceOrientationController.cpp',
532                 'src/WebDocument.cpp',
533                 'src/WebDocumentType.cpp',
534                 'src/WebDragData.cpp',
535                 'src/WebElement.cpp',
536                 'src/WebEntities.cpp',
537                 'src/WebEntities.h',
538                 'src/WebExternalTextureLayer.cpp',
539                 'src/WebFileChooserCompletionImpl.cpp',
540                 'src/WebFileChooserCompletionImpl.h',
541                 'src/WebFileSystemCallbacksImpl.cpp',
542                 'src/WebFileSystemCallbacksImpl.h',
543                 'src/WebFontCache.cpp',
544                 'src/WebFontDescription.cpp',
545                 'src/WebFontImpl.cpp',
546                 'src/WebFontImpl.h',
547                 'src/WebFormControlElement.cpp',
548                 'src/WebFormElement.cpp',
549                 'src/WebFrameImpl.cpp',
550                 'src/WebFrameImpl.h',
551                 'src/WebGeolocationController.cpp',
552                 'src/WebGeolocationClientMock.cpp',
553                 'src/WebGeolocationError.cpp',
554                 'src/WebGeolocationPermissionRequest.cpp',
555                 'src/WebGeolocationPermissionRequestManager.cpp',
556                 'src/WebGeolocationPosition.cpp',
557                 'src/WebGlyphCache.cpp',
558                 'src/WebGraphicsContext3D.cpp',
559                 'src/WebHistoryItem.cpp',
560                 'src/WebHitTestResult.cpp',
561                 'src/WebIconLoadingCompletionImpl.cpp',
562                 'src/WebIconLoadingCompletionImpl.h',
563                 'src/WebIDBCallbacksImpl.cpp',
564                 'src/WebIDBCallbacksImpl.h',
565                 'src/WebIDBCursorImpl.cpp',
566                 'src/WebIDBCursorImpl.h',
567                 'src/WebIDBDatabaseCallbacksImpl.cpp',
568                 'src/WebIDBDatabaseCallbacksImpl.h',
569                 'src/WebIDBDatabaseError.cpp',
570                 'src/WebIDBDatabaseImpl.cpp',
571                 'src/WebIDBDatabaseImpl.h',
572                 'src/WebIDBFactoryImpl.cpp',
573                 'src/WebIDBFactoryImpl.h',
574                 'src/WebIDBIndexImpl.cpp',
575                 'src/WebIDBIndexImpl.h',
576                 'src/WebIDBKey.cpp',
577                 'src/WebIDBKeyPath.cpp',
578                 'src/WebIDBKeyRange.cpp',
579                 'src/WebIDBObjectStoreImpl.cpp',
580                 'src/WebIDBObjectStoreImpl.h',
581                 'src/WebIDBTransactionImpl.cpp',
582                 'src/WebIDBTransactionImpl.h',
583                 'src/WebIDBTransactionCallbacksImpl.cpp',
584                 'src/WebIDBTransactionCallbacksImpl.h',
585                 'src/WebIOSurfaceLayer.cpp',
586                 'src/WebImageCG.cpp',
587                 'src/WebImageDecoder.cpp',
588                 'src/WebImageSkia.cpp',
589                 'src/WebInputElement.cpp',
590                 'src/WebInputEvent.cpp',
591                 'src/WebInputEventConversion.cpp',
592                 'src/WebInputEventConversion.h',
593                 'src/WebIntent.cpp',
594                 'src/WebIntentRequest.cpp',
595                 'src/WebIntentServiceInfo.cpp',
596                 'src/WebKit.cpp',
597                 'src/WebLabelElement.cpp',
598                 'src/WebLayer.cpp',
599                 'src/WebLayerImpl.cpp',
600                 'src/WebLayerImpl.h',
601                 'src/WebLayerTreeView.cpp',
602                 'src/WebLayerTreeViewImpl.cpp',
603                 'src/WebLayerTreeViewImpl.h',
604                 'src/WebMediaPlayerClientImpl.cpp',
605                 'src/WebMediaPlayerClientImpl.h',
606                 'src/WebMediaStreamRegistry.cpp',
607                 'src/WebNetworkStateNotifier.cpp',
608                 'src/WebNode.cpp',
609                 'src/WebNodeCollection.cpp',
610                 'src/WebNodeList.cpp',
611                 'src/WebNotification.cpp',
612                 'src/WebOptionElement.cpp',
613                 'src/WebPagePopupImpl.cpp',
614                 'src/WebPagePopupImpl.h',
615                 'src/WebPageSerializer.cpp',
616                 'src/WebPageSerializerImpl.cpp',
617                 'src/WebPageSerializerImpl.h',
618                 'src/WebPasswordFormData.cpp',
619                 'src/WebPasswordFormUtils.cpp',
620                 'src/WebPasswordFormUtils.h',
621                 'src/WebPerformance.cpp',
622                 'src/WebPluginContainerImpl.h',
623                 'src/WebPluginContainerImpl.cpp',
624                 'src/WebPluginDocument.cpp',
625                 'src/WebPluginListBuilderImpl.cpp',
626                 'src/WebPluginListBuilderImpl.h',
627                 'src/WebPluginLoadObserver.cpp',
628                 'src/WebPluginLoadObserver.h',
629                 'src/WebPopupMenuImpl.cpp',
630                 'src/WebPopupMenuImpl.h',
631                 'src/WebRange.cpp',
632                 'src/WebRegularExpression.cpp',
633                 'src/WebRuntimeFeatures.cpp',
634                 'src/WebScopedMicrotaskSuppression.cpp',
635                 'src/WebScopedUserGesture.cpp',
636                 'src/WebScriptController.cpp',
637                 'src/WebScrollbarImpl.cpp',
638                 'src/WebScrollbarImpl.h',
639                 'src/WebSearchableFormData.cpp',
640                 'src/WebSecurityOrigin.cpp',
641                 'src/WebSecurityPolicy.cpp',
642                 'src/WebSelectElement.cpp',
643                 'src/WebSerializedScriptValue.cpp',
644                 'src/WebSessionDescriptionDescriptor.cpp',
645                 'src/WebSettingsImpl.cpp',
646                 'src/WebSettingsImpl.h',
647                 'src/WebSharedWorkerImpl.cpp',
648                 'src/WebSharedWorkerImpl.h',
649                 'src/WebSocket.cpp',
650                 'src/WebSocketImpl.cpp',
651                 'src/WebSocketImpl.h',
652                 'src/WebSolidColorLayer.cpp',
653                 'src/WebSolidColorLayerImpl.cpp',
654                 'src/WebSpeechGrammar.cpp',
655                 'src/WebSpeechInputResult.cpp',
656                 'src/WebSpeechRecognitionHandle.cpp',
657                 'src/WebSpeechRecognitionResult.cpp',
658                 'src/WebStorageEventDispatcherImpl.cpp',
659                 'src/WebStorageEventDispatcherImpl.h',
660                 'src/WebStorageQuotaCallbacksImpl.cpp',
661                 'src/WebStorageQuotaCallbacksImpl.h',
662                 'src/WebSurroundingText.cpp',
663                 'src/WebTextRun.cpp',
664                 'src/WebURLLoadTiming.cpp',
665                 'src/WebScopedUserGesture.cpp',
666                 'src/WebUserMediaRequest.cpp',
667                 'src/WebVideoLayer.cpp',
668                 'src/WebViewImpl.cpp',
669                 'src/WebViewImpl.h',
670                 'src/WebWorkerBase.cpp',
671                 'src/WebWorkerBase.h',
672                 'src/WebWorkerClientImpl.cpp',
673                 'src/WebWorkerClientImpl.h',
674                 'src/WebWorkerInfo.cpp',
675                 'src/WebWorkerRunLoop.cpp',
676                 'src/WorkerAsyncFileSystemChromium.cpp',
677                 'src/WorkerAsyncFileSystemChromium.h',
678                 'src/WorkerAsyncFileWriterChromium.cpp',
679                 'src/WorkerAsyncFileWriterChromium.h',
680                 'src/WorkerFileSystemCallbacksBridge.cpp',
681                 'src/WorkerFileSystemCallbacksBridge.h',
682                 'src/WorkerFileWriterCallbacksBridge.cpp',
683                 'src/WorkerFileWriterCallbacksBridge.h',
684                 'src/win/WebInputEventFactory.cpp',
685                 'src/win/WebScreenInfoFactory.cpp',
686             ],
687             'conditions': [
688                 ['inside_chromium_build==1', {
689                     'type': '<(component)',
690
691                     'conditions': [
692                         ['component=="shared_library"', {
693                             'defines': [
694                                 'WEBKIT_DLL',
695                             ],
696                             'dependencies': [
697                                 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore_bindings',
698                                 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore_test_support',
699                                 '<(chromium_src_dir)/base/base.gyp:test_support_base',
700                                 '<(chromium_src_dir)/build/temp_gyp/googleurl.gyp:googleurl',
701                                 '<(chromium_src_dir)/testing/gtest.gyp:gtest',
702                                 '<(chromium_src_dir)/testing/gmock.gyp:gmock',
703                                 '<(chromium_src_dir)/third_party/icu/icu.gyp:*',
704                                 '<(chromium_src_dir)/third_party/libjpeg_turbo/libjpeg.gyp:libjpeg',
705                                 '<(chromium_src_dir)/third_party/libpng/libpng.gyp:libpng',
706                                 '<(chromium_src_dir)/third_party/libxml/libxml.gyp:libxml',
707                                 '<(chromium_src_dir)/third_party/libxslt/libxslt.gyp:libxslt',
708                                 '<(chromium_src_dir)/third_party/modp_b64/modp_b64.gyp:modp_b64',
709                                 '<(chromium_src_dir)/third_party/ots/ots.gyp:ots',
710                                 '<(chromium_src_dir)/third_party/zlib/zlib.gyp:zlib',
711                                 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
712                                 # We must not add webkit_support here because of cyclic dependency.
713                             ],
714                             'direct_dependent_settings': {
715                                 'defines': [
716                                     'WEBKIT_DLL',
717                                 ],
718                             },
719                             'export_dependent_settings': [
720                                 '<(chromium_src_dir)/build/temp_gyp/googleurl.gyp:googleurl',
721                                 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
722                             ],
723                             'include_dirs': [
724                                 # WARNING: Do not view this particular case as a precedent for
725                                 # including WebCore headers in DumpRenderTree project.
726                                 '../../WebCore/testing/v8', # for WebCoreTestSupport.h, needed to link in window.internals code.
727                             ],
728                             'sources': [
729                                 '<@(webkit_unittest_files)',
730                                 'src/WebTestingSupport.cpp',
731                                 'public/WebTestingSupport.h',
732                                 'tests/WebUnitTests.cpp',   # Components test runner support.
733                             ],
734                             'sources!': [
735                                 # We should not include files depending on webkit_support.
736                                 # These tests depend on webkit_support and
737                                 # functions defined only in !WEBKIT_IMPLEMENTATION.
738                                 'tests/AssociatedURLLoaderTest.cpp',
739                                 'tests/FrameTestHelpers.cpp',
740                                 'tests/LevelDBTest.cpp',
741                                 'tests/PopupMenuTest.cpp',
742                                 'tests/RenderTableCellTest.cpp',
743                                 'tests/WebFrameTest.cpp',
744                                 'tests/WebPageNewSerializerTest.cpp',
745                                 'tests/WebPageSerializerTest.cpp',
746                                 'tests/WebViewTest.cpp',
747                             ],
748                             'conditions': [
749                                 ['OS=="win" or OS=="mac"', {
750                                     'dependencies': [
751                                         '<(chromium_src_dir)/third_party/nss/nss.gyp:*',
752                                     ],
753                                 }],
754                                 ['clang==1', {
755                                     # FIXME: It would be nice to enable this in shared builds too,
756                                     # but the test files have global constructors from the GTEST macro
757                                     # and we pull in the test files into the webkit target in the
758                                     # shared build.
759                                     'cflags!': ['-Wglobal-constructors'],
760                                     'xcode_settings': {
761                                       'WARNING_CFLAGS!': ['-Wglobal-constructors'],
762                                     },
763                                 }],
764                             ],
765                             'msvs_settings': {
766                               'VCLinkerTool': {
767                                 'conditions': [
768                                   ['incremental_chrome_dll==1', {
769                                     'UseLibraryDependencyInputs': "true",
770                                   }],
771                                 ],
772                               },
773                             },
774                         }],
775                     ],
776                 }, { # else: inside_chromium_build==0
777                     'direct_dependent_settings': {
778                         'include_dirs': [
779                             '<(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.
780                         ],
781                     },
782                 }],
783                 ['use_x11 == 1', {
784                     'dependencies': [
785                         '<(chromium_src_dir)/build/linux/system.gyp:fontconfig',
786                         '<(chromium_src_dir)/build/linux/system.gyp:x11',
787                     ],
788                     'include_dirs': [
789                         'public/x11',
790                         'public/linux',
791                     ],
792                 }, { # else: use_x11 != 1
793                     'sources/': [
794                         ['exclude', '/x11/'],
795                         ['exclude', '/linux/'],
796                     ],
797                 }],
798                 ['toolkit_uses_gtk == 1', {
799                     'dependencies': [
800                         '<(chromium_src_dir)/build/linux/system.gyp:gtk',
801                     ],
802                     'include_dirs': [
803                         'public/gtk',
804                     ],
805                 }, { # else: toolkit_uses_gtk != 1
806                     'sources/': [
807                         ['exclude', '/gtk/'],
808                     ],
809                 }],
810                 ['OS=="android"', {
811                     'include_dirs': [
812                         'public/android',
813                     ],
814                 }, { # else: OS!="android"
815                     'sources/': [
816                         ['exclude', '/android/'],
817                     ],
818                 }],
819                 # TODO: we exclude CG.cpp on both sides of the below conditional. Move elsewhere?
820                 ['OS=="mac"', {
821                     'include_dirs': [
822                         'public/mac',
823                     ],
824                     'sources/': [
825                         ['exclude', 'CG\\.cpp$'],
826                     ],
827                 }, { # else: OS!="mac"
828                     'sources/': [
829                         ['exclude', '/mac/'],
830                         ['exclude', 'CG\\.cpp$'],
831                     ],
832                 }],
833                 ['OS=="win"', {
834                     'include_dirs': [
835                         'public/win',
836                     ],
837                 }, { # else: OS!="win"
838                     'sources/': [['exclude', '/win/']],
839                     'variables': {
840                         # FIXME: Turn on warnings on Windows.
841                         'chromium_code': 1,
842                     }
843                 }],
844                 ['"ENABLE_WEBGL=1" in feature_defines', {
845                     'conditions': [
846                         ['OS=="mac"', {
847                             'link_settings': {
848                                 'libraries': [
849                                     '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
850                                     '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
851                                 ],
852                             },
853                         }],
854                     ],
855                 }],
856                 ['clang==1', {
857                     'cflags': ['-Wglobal-constructors'],
858                     'xcode_settings': {
859                         'WARNING_CFLAGS': ['-Wglobal-constructors'],
860                     },
861                 }],
862             ],
863         },
864         {
865             'target_name': 'inspector_resources',
866             'type': 'none',
867             'dependencies': [
868                 'devtools_html',
869                 '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources',
870             ],
871             'conditions': [
872                 ['debug_devtools==0', {
873                     'dependencies': ['concatenated_devtools_js',
874                                      'concatenated_heap_snapshot_worker_js',
875                                      'concatenated_script_formatter_worker_js',
876                                      'concatenated_devtools_css'],
877                 }],
878             ],
879             'copies': [
880                 {
881                     'destination': '<(PRODUCT_DIR)/resources/inspector',
882                     'files': [
883                         '<@(devtools_files)',
884                         '<@(webinspector_files)',
885                         '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js',
886                     ],
887                     'conditions': [
888                         ['debug_devtools==0', {
889                             'files/': [['exclude', '\\.(js|css|html)$']],
890                         }],
891                     ],
892                 },
893                 {
894                     'destination': '<(PRODUCT_DIR)/resources/inspector/UglifyJS',
895                     'files': [
896                         '<@(webinspector_uglifyjs_files)',
897                     ],
898                     'conditions': [
899                         ['debug_devtools==0', {
900                             'files/': [['exclude', '\\.(js|css|html)$']],
901                         }],
902                     ],
903                 },
904                 {
905                     'destination': '<(PRODUCT_DIR)/resources/inspector/Images',
906                     'files': [
907                         '<@(webinspector_image_files)',
908                         '<@(devtools_image_files)',
909                     ],
910                },
911             ],
912         },
913         {
914             'target_name': 'devtools_html',
915             'type': 'none',
916             'sources': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
917             'actions': [{
918                 'action_name': 'devtools_html',
919                 'script_name': 'scripts/generate_devtools_html.py',
920                 'input_page': '../../WebCore/inspector/front-end/inspector.html',
921                 'inputs': [
922                     '<@(_script_name)',
923                     '<@(_input_page)',
924                     '<@(devtools_files)',
925                 ],
926                 'outputs': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
927                 'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_outputs)', '<@(debug_devtools)', '<@(devtools_files)'],
928             }],
929         },
930         {
931             'target_name': 'devtools_extension_api',
932             'type': 'none',
933             'actions': [{
934                 'action_name': 'devtools_html',
935                 'script_name': 'scripts/generate_devtools_extension_api.py',
936                 'inputs': [
937                     '<@(_script_name)',
938                     '<@(devtools_extension_api_files)',
939                 ],
940                 'outputs': ['<(PRODUCT_DIR)/resources/inspector/devtools_extension_api.js'],
941                 'action': ['python', '<@(_script_name)', '<@(_outputs)', '<@(devtools_extension_api_files)'],
942             }],
943         },
944         {
945             'target_name': 'generate_devtools_grd',
946             'type': 'none',
947             'dependencies': [
948                 'devtools_html',
949                 'devtools_extension_api'
950             ],
951             'conditions': [
952                 ['debug_devtools==0', {
953                     'dependencies': ['concatenated_devtools_js',
954                                      'concatenated_heap_snapshot_worker_js',
955                                      'concatenated_script_formatter_worker_js',
956                                      'concatenated_devtools_css'],
957                 },{
958                     # If we're not concatenating devtools files, we want to
959                     # run after the original files have been copied to
960                     # <(PRODUCT_DIR)/resources/inspector.
961                     'dependencies': ['inspector_resources'],
962                 }],
963             ],
964             'actions': [{
965                 'action_name': 'generate_devtools_grd',
966                 'script_name': 'scripts/generate_devtools_grd.py',
967                 'input_pages': [
968                     '<(PRODUCT_DIR)/resources/inspector/devtools.html',
969                     '<(PRODUCT_DIR)/resources/inspector/DevTools.js',
970                     '<(PRODUCT_DIR)/resources/inspector/HeapSnapshotWorker.js',
971                     '<(PRODUCT_DIR)/resources/inspector/ScriptFormatterWorker.js',
972                     '<(PRODUCT_DIR)/resources/inspector/devTools.css',
973                     '<(PRODUCT_DIR)/resources/inspector/devtools_extension_api.js',
974                     '<@(webinspector_standalone_css_files)',
975                 ],
976                 'images': [
977                     '<@(webinspector_image_files)',
978                     '<@(devtools_image_files)',
979                 ],
980                 'inputs': [
981                     '<@(_script_name)',
982                     '<@(_input_pages)',
983                     '<@(_images)',
984                 ],
985                 'search_path': [
986                     '../../WebCore/inspector/front-end/Images',
987                     'src/js/Images',
988                 ],
989                 'outputs': ['<(SHARED_INTERMEDIATE_DIR)/devtools/devtools_resources.grd'],
990                 'action': ['python', '<@(_script_name)', '<@(_input_pages)', '--images', '<@(_search_path)', '--output', '<@(_outputs)'],
991             }],
992         },
993         {
994             'target_name': 'generate_devtools_zip',
995             'type': 'none',
996             'dependencies': [
997                 '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources',
998             ],
999             'actions': [{
1000                 'action_name': 'generate_devtools_zip',
1001                 'script_name': 'scripts/generate_devtools_zip.py',
1002                 'inspector_html': '../../WebCore/inspector/front-end/inspector.html',
1003                 'workers_files': [
1004                     '../../WebCore/inspector/front-end/HeapSnapshotWorker.js',
1005                     '../../WebCore/inspector/front-end/JavaScriptFormatter.js',
1006                     '../../WebCore/inspector/front-end/ScriptFormatterWorker.js',
1007                     '<@(webinspector_uglifyjs_files)'
1008                 ],
1009                 'inputs': [
1010                     '<@(_script_name)',
1011                     'scripts/generate_devtools_html.py',
1012                     'scripts/generate_devtools_extension_api.py',
1013                     '<@(_inspector_html)',
1014                     '<@(devtools_files)',
1015                     '<@(webinspector_files)',
1016                     '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js',
1017                     '<@(_workers_files)',
1018                     '<@(webinspector_image_files)',
1019                     '<@(devtools_image_files)',
1020                     '<@(devtools_extension_api_files)',
1021                 ],
1022                 'search_path': [
1023                     '../../WebCore/inspector/front-end',
1024                     'src/js',
1025                 ],
1026                 'js_search_path': [
1027                     '<(SHARED_INTERMEDIATE_DIR)/webcore',
1028                 ],
1029                 'outputs': ['<(PRODUCT_DIR)/devtools_frontend.zip'],
1030                 'action': ['python', '<@(_script_name)', '<@(_inspector_html)',
1031                                      '--devtools-files', '<@(devtools_files)',
1032                                      '--workers-files', '<@(_workers_files)',
1033                                      '--extension-api-files', '<@(devtools_extension_api_files)',
1034                                      '--search-path', '<@(_search_path)',
1035                                      '--js-search-path', '<@(_js_search_path)',
1036                                      '--output', '<@(_outputs)'],
1037             }],
1038         },
1039     ], # targets
1040     'conditions': [
1041         ['os_posix==1 and OS!="mac" and OS!="android" and gcc_version==46', {
1042             'target_defaults': {
1043                 # Disable warnings about c++0x compatibility, as some names (such
1044                 # as nullptr) conflict with upcoming c++0x types.
1045                 'cflags_cc': ['-Wno-c++0x-compat'],
1046             },
1047         }],
1048         ['OS=="mac"', {
1049             'targets': [
1050                 {
1051                     'target_name': 'copy_mesa',
1052                     'type': 'none',
1053                     'dependencies': ['<(chromium_src_dir)/third_party/mesa/mesa.gyp:osmesa'],
1054                     'copies': [{
1055                         'destination': '<(PRODUCT_DIR)/DumpRenderTree.app/Contents/MacOS/',
1056                         'files': ['<(PRODUCT_DIR)/osmesa.so'],
1057                     }],
1058                 },
1059             ],
1060         }],
1061         ['debug_devtools==0', {
1062             'targets': [
1063                 {
1064                     'target_name': 'concatenated_devtools_js',
1065                     'type': 'none',
1066                     'dependencies': [
1067                         'devtools_html',
1068                         '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources'
1069                     ],
1070                     'actions': [{
1071                         'action_name': 'concatenate_devtools_js',
1072                         'script_name': 'scripts/concatenate_js_files.py',
1073                         'input_page': '../../WebCore/inspector/front-end/inspector.html',
1074                         'inputs': [
1075                             '<@(_script_name)',
1076                             '<@(_input_page)',
1077                             '<@(webinspector_files)',
1078                             '<@(devtools_files)',
1079                             '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js'
1080                         ],
1081                         'search_path': [
1082                             '../../WebCore/inspector/front-end',
1083                             'src/js',
1084                             '<(SHARED_INTERMEDIATE_DIR)/webcore',
1085                         ],
1086                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/DevTools.js'],
1087                         'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_search_path)', '<@(_outputs)'],
1088                     }],
1089                 },
1090                 {
1091                     'target_name': 'concatenated_heap_snapshot_worker_js',
1092                     'type': 'none',
1093                     'actions': [{
1094                         'action_name': 'concatenate_heap_snapshot_worker_js',
1095                         'script_name': 'scripts/inline_js_imports.py',
1096                         'input_file': '../../WebCore/inspector/front-end/HeapSnapshotWorker.js',
1097                         'inputs': [
1098                             '<@(_script_name)',
1099                             '<@(_input_file)',
1100                             '../../WebCore/inspector/front-end/HeapSnapshot.js',
1101                             '../../WebCore/inspector/front-end/HeapSnapshotLoader.js',
1102                             '../../WebCore/inspector/front-end/HeapSnapshotWorkerDispatcher.js',
1103                             '../../WebCore/inspector/front-end/utilities.js',
1104                         ],
1105                         'search_path': '../../WebCore/inspector/front-end',
1106                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/HeapSnapshotWorker.js'],
1107                         'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1108                     }],
1109                 },
1110                 {
1111                     'target_name': 'concatenated_script_formatter_worker_js',
1112                     'type': 'none',
1113                     'actions': [{
1114                         'action_name': 'concatenate_script_formatter_worker_js',
1115                         'script_name': 'scripts/inline_js_imports.py',
1116                         'input_file': '../../WebCore/inspector/front-end/ScriptFormatterWorker.js',
1117                         'inputs': [
1118                             '<@(_script_name)',
1119                             '<@(_input_file)',
1120                             '<@(webinspector_uglifyjs_files)'
1121                         ],
1122                         'search_path': '../../WebCore/inspector/front-end',
1123                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/ScriptFormatterWorker.js'],
1124                         'action': ['python', '<@(_script_name)', '<@(_input_file)', '<@(_search_path)', '<@(_outputs)'],
1125                     }],
1126                 },
1127                 {
1128                     'target_name': 'concatenated_devtools_css',
1129                     'type': 'none',
1130                     'dependencies': [
1131                         'devtools_html'
1132                     ],
1133                     'actions': [{
1134                         'action_name': 'concatenate_devtools_css',
1135                         'script_name': 'scripts/concatenate_css_files.py',
1136                         'input_page': '../../WebCore/inspector/front-end/inspector.html',
1137                         'inputs': [
1138                             '<@(_script_name)',
1139                             '<@(_input_page)',
1140                             '<@(webinspector_files)',
1141                             '<@(devtools_files)'
1142                         ],
1143                         'search_path': [
1144                             '../../WebCore/inspector/front-end',
1145                             'src/js',
1146                         ],
1147                         'outputs': ['<(PRODUCT_DIR)/resources/inspector/devTools.css'],
1148                         'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_search_path)', '<@(_outputs)'],
1149                     }],
1150                     'copies': [{
1151                         'destination': '<(PRODUCT_DIR)/resources/inspector',
1152                         'files': [
1153                             '<@(webinspector_standalone_css_files)',
1154                         ],
1155                     }],
1156                 },
1157             ],
1158         }],
1159     ], # conditions
1160 }