OSDN Git Service

am a8a44d01: am be2b5a3f: Cherry-pick security fix in WebKit change 62873
[android-x86/external-webkit.git] / WebKit / chromium / WebKit.gyp
1 #
2 # Copyright (C) 2010 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         '../../WebCore/WebCore.gypi',
34         '../../WebKitTools/DumpRenderTree/DumpRenderTree.gypi',
35         'WebKit.gypi',
36         'features.gypi',
37     ],
38     'variables': {
39         'webkit_target_type': 'static_library',
40         'conditions': [
41             # Location of the chromium src directory and target type is different
42             # if webkit is built inside chromium or as standalone project.
43             ['inside_chromium_build==0', {
44                 # Webkit is being built outside of the full chromium project.
45                 # e.g. via build-webkit --chromium
46                 'chromium_src_dir': '../../WebKit/chromium',
47
48                 # List of DevTools source files, ordered by dependencies. It is used both
49                 # for copying them to resource dir, and for generating 'devtools.html' file.
50                 'devtools_files': [
51                     '<@(devtools_css_files)',
52                     '../../WebKit/chromium/v8/tools/codemap.js',
53                     '../../WebKit/chromium/v8/tools/consarray.js',
54                     '../../WebKit/chromium/v8/tools/csvparser.js',
55                     '../../WebKit/chromium/v8/tools/logreader.js',
56                     '../../WebKit/chromium/v8/tools/profile.js',
57                     '../../WebKit/chromium/v8/tools/profile_view.js',
58                     '../../WebKit/chromium/v8/tools/splaytree.js',
59                     '<@(devtools_js_files)',
60                 ],
61             },{
62                 # WebKit is checked out in src/chromium/third_party/WebKit
63                 'chromium_src_dir': '../../../..',
64
65                 'devtools_files': [
66                     '<@(devtools_css_files)',
67                     '../../../../v8/tools/codemap.js',
68                     '../../../../v8/tools/consarray.js',
69                     '../../../../v8/tools/csvparser.js',
70                     '../../../../v8/tools/logreader.js',
71                     '../../../../v8/tools/profile.js',
72                     '../../../../v8/tools/profile_view.js',
73                     '../../../../v8/tools/splaytree.js',
74                     '<@(devtools_js_files)',
75                 ],
76             }],
77         ],
78         'ahem_path': '../../WebKitTools/DumpRenderTree/qt/fonts/AHEM____.TTF',
79
80         # If debug_devtools is set to 1, JavaScript files for DevTools are
81         # stored as is. Otherwise, a concatenated file is stored.
82         'debug_devtools%': 0,
83     },
84     'targets': [
85         {
86             'target_name': 'webkit',
87             'msvs_guid': '5ECEC9E5-8F23-47B6-93E0-C3B328B3BE65',
88             'dependencies': [
89                 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
90                 '<(chromium_src_dir)/app/app.gyp:app_base', # For GLContext
91                 '<(chromium_src_dir)/skia/skia.gyp:skia',
92                 '<(chromium_src_dir)/third_party/npapi/npapi.gyp:npapi',
93             ],
94             'export_dependent_settings': [
95                 '<(chromium_src_dir)/skia/skia.gyp:skia',
96                 '<(chromium_src_dir)/third_party/npapi/npapi.gyp:npapi',
97             ],
98             'include_dirs': [
99                 'public',
100                 'src',
101             ],
102             'defines': [
103                 'WEBKIT_IMPLEMENTATION=1',
104             ],
105             'sources': [
106                 'public/gtk/WebInputEventFactory.h',
107                 'public/linux/WebFontRendering.h',
108                 'public/linux/WebFontRenderStyle.h',
109                 'public/linux/WebRenderTheme.h',
110                 'public/x11/WebScreenInfoFactory.h',
111                 'public/mac/WebInputEventFactory.h',
112                 'public/mac/WebSandboxSupport.h',
113                 'public/mac/WebScreenInfoFactory.h',
114                 'public/WebAccessibilityCache.h',
115                 'public/WebAccessibilityObject.h',
116                 'public/WebAccessibilityRole.h',
117                 'public/WebAnimationController.h',
118                 'public/WebApplicationCacheHost.h',
119                 'public/WebApplicationCacheHostClient.h',
120                 'public/WebAttribute.h',
121                 'public/WebBindings.h',
122                 'public/WebBlobData.h',
123                 'public/WebBlobRegistry.h',
124                 'public/WebBlobStorageData.h',
125                 'public/WebCache.h',
126                 'public/WebCanvas.h',
127                 'public/WebClipboard.h',
128                 'public/WebColor.h',
129                 'public/WebColorName.h',
130                 'public/WebCommon.h',
131                 'public/WebCommonWorkerClient.h',
132                 'public/WebCompositionUnderline.h',
133                 'public/WebConsoleMessage.h',
134                 'public/WebContextMenuData.h',
135                 'public/WebCookie.h',
136                 'public/WebCookieJar.h',
137                 'public/WebCrossOriginPreflightResultCache.h',
138                 'public/WebCString.h',
139                 'public/WebCursorInfo.h',
140                 'public/WebDOMEvent.h',
141                 'public/WebDOMEventListener.h',
142                 'public/WebDOMMouseEvent.h',
143                 'public/WebDOMMutationEvent.h',
144                 'public/WebDOMStringList.h',
145                 'public/WebData.h',
146                 'public/WebDatabase.h',
147                 'public/WebDatabaseObserver.h',
148                 'public/WebDataSource.h',
149                 'public/WebDevToolsAgent.h',
150                 'public/WebDevToolsAgentClient.h',
151                 'public/WebDevToolsFrontend.h',
152                 'public/WebDevToolsFrontendClient.h',
153                 'public/WebDeviceOrientation.h',
154                 'public/WebDeviceOrientationClient.h',
155                 'public/WebDeviceOrientationClientMock.h',
156                 'public/WebDeviceOrientationController.h',
157                 'public/WebDocument.h',
158                 'public/WebDocumentType.h',
159                 'public/WebDragData.h',
160                 'public/WebEditingAction.h',
161                 'public/WebElement.h',
162                 'public/WebFileChooserCompletion.h',
163                 'public/WebFileChooserParams.h',
164                 'public/WebFileError.h',
165                 'public/WebFileInfo.h',
166                 'public/WebFileSystem.h',
167                 'public/WebFileSystemCallbacks.h',
168                 'public/WebFileSystemEntry.h',
169                 'public/WebFileUtilities.h',
170                 'public/WebFindOptions.h',
171                 'public/WebFloatPoint.h',
172                 'public/WebFloatRect.h',
173                 'public/WebFont.h',
174                 'public/WebFontDescription.h',
175                 'public/WebFrame.h',
176                 'public/WebFrameClient.h',
177                 'public/WebFontCache.h',
178                 'public/WebFormControlElement.h',
179                 'public/WebFormElement.h',
180                 'public/WebGeolocationService.h',
181                 'public/WebGeolocationServiceBridge.h',
182                 'public/WebGeolocationServiceMock.h',
183                 'public/WebGlyphCache.h',
184                 'public/WebGLES2Context.h',
185                 'public/WebGraphicsContext3D.h',
186                 'public/WebHistoryItem.h',
187                 'public/WebHTTPBody.h',
188                 'public/WebImage.h',
189                 'public/WebImageDecoder.h',
190                 'public/WebIDBCallbacks.h',
191                 'public/WebIDBCursor.h',
192                 'public/WebIDBDatabase.h',
193                 'public/WebIDBDatabaseError.h',
194                 'public/WebIDBFactory.h',
195                 'public/WebIDBKeyRange.h',
196                 'public/WebIDBIndex.h',
197                 'public/WebIDBKey.h',
198                 'public/WebIDBKeyPath.h',
199                 'public/WebIDBObjectStore.h',
200                 'public/WebIDBTransaction.h',
201                 'public/WebIDBTransactionCallbacks.h',
202                 'public/WebInputElement.h',
203                 'public/WebInputEvent.h',
204                 'public/WebKit.h',
205                 'public/WebKitClient.h',
206                 'public/WebLabelElement.h',
207                 'public/WebLocalizedString.h',
208                 'public/WebMediaElement.h',
209                 'public/WebMediaPlayer.h',
210                 'public/WebMediaPlayerAction.h',
211                 'public/WebMediaPlayerClient.h',
212                 'public/WebMenuItemInfo.h',
213                 'public/WebMessagePortChannel.h',
214                 'public/WebMessagePortChannelClient.h',
215                 'public/WebMimeRegistry.h',
216                 'public/WebNamedNodeMap.h',
217                 'public/WebNavigationType.h',
218                 'public/WebNode.h',
219                 'public/WebNodeCollection.h',
220                 'public/WebNodeList.h',
221                 'public/WebNonCopyable.h',
222                 'public/WebNotification.h',
223                 'public/WebNotificationPresenter.h',
224                 'public/WebNotificationPermissionCallback.h',
225                 'public/WebOptionElement.h',
226                 'public/WebPageSerializer.h',
227                 'public/WebPageSerializerClient.h',
228                 'public/WebPasswordAutocompleteListener.h',
229                 'public/WebPasswordFormData.h',
230                 'public/WebPlugin.h',
231                 'public/WebPluginContainer.h',
232                 'public/WebPluginDocument.h',
233                 'public/WebPluginListBuilder.h',
234                 'public/WebPoint.h',
235                 'public/WebPopupMenu.h',
236                 'public/WebPopupMenuInfo.h',
237                 'public/WebPopupType.h',
238                 'public/WebPrivatePtr.h',
239                 'public/WebPrivateOwnPtr.h',
240                 'public/WebRange.h',
241                 'public/WebRect.h',
242                 'public/WebRegularExpression.h',
243                 'public/WebRuntimeFeatures.h',
244                 'public/WebScrollbar.h',
245                 'public/WebScrollbarClient.h',
246                 'public/WebScreenInfo.h',
247                 'public/WebScriptController.h',
248                 'public/WebScriptSource.h',
249                 'public/WebSearchableFormData.h',
250                 'public/WebSecurityOrigin.h',
251                 'public/WebSecurityPolicy.h',
252                 'public/WebSelectElement.h',
253                 'public/WebSerializedScriptValue.h',
254                 'public/WebSettings.h',
255                 'public/WebSharedWorker.h',
256                 'public/WebSharedWorkerRepository.h',
257                 'public/WebSize.h',
258                 'public/WebSocketStreamError.h',
259                 'public/WebSocketStreamHandle.h',
260                 'public/WebSocketStreamHandleClient.h',
261                 'public/WebSpeechInputController.h',
262                 'public/WebSpeechInputControllerMock.h',
263                 'public/WebSpeechInputListener.h',
264                 'public/WebStorageArea.h',
265                 'public/WebStorageEventDispatcher.h',
266                 'public/WebStorageNamespace.h',
267                 'public/WebString.h',
268                 'public/WebTextAffinity.h',
269                 'public/WebTextCaseSensitivity.h',
270                 'public/WebTextDirection.h',
271                 'public/WebTextInputType.h',
272                 'public/WebTextRun.h',
273                 'public/WebThemeEngine.h',
274                 'public/WebURL.h',
275                 'public/WebURLError.h',
276                 'public/WebURLLoader.h',
277                 'public/WebURLLoadTiming.h',
278                 'public/WebURLLoaderClient.h',
279                 'public/WebURLRequest.h',
280                 'public/WebURLResponse.h',
281                 'public/WebVector.h',
282                 'public/WebView.h',
283                 'public/WebViewClient.h',
284                 'public/WebWidget.h',
285                 'public/WebWidgetClient.h',
286                 'public/WebWorker.h',
287                 'public/WebWorkerClient.h',
288                 'public/win/WebInputEventFactory.h',
289                 'public/win/WebSandboxSupport.h',
290                 'public/win/WebScreenInfoFactory.h',
291                 'public/win/WebScreenInfoFactory.h',
292                 'src/ApplicationCacheHost.cpp',
293                 'src/ApplicationCacheHostInternal.h',
294                 'src/AssertMatchingEnums.cpp',
295                 'src/AutoFillPopupMenuClient.cpp',
296                 'src/AutoFillPopupMenuClient.h',
297                 'src/BackForwardListClientImpl.cpp',
298                 'src/BackForwardListClientImpl.h',
299                 'src/BlobRegistryProxy.cpp',
300                 'src/BlobRegistryProxy.h',
301                 'src/BoundObject.cpp',
302                 'src/BoundObject.h',
303                 'src/ChromeClientImpl.cpp',
304                 'src/ChromeClientImpl.h',
305                 'src/ChromiumBridge.cpp',
306                 'src/ChromiumCurrentTime.cpp',
307                 'src/ChromiumThreading.cpp',
308                 'src/CompositionUnderlineBuilder.h',
309                 'src/CompositionUnderlineVectorBuilder.cpp',
310                 'src/CompositionUnderlineVectorBuilder.h',
311                 'src/ContextMenuClientImpl.cpp',
312                 'src/ContextMenuClientImpl.h',
313                 'src/DatabaseObserver.cpp',
314                 'src/DebuggerAgentImpl.cpp',
315                 'src/DebuggerAgentImpl.h',
316                 'src/DebuggerAgentManager.cpp',
317                 'src/DebuggerAgentManager.h',
318                 'src/DeviceOrientationClientProxy.cpp',
319                 'src/DeviceOrientationClientProxy.h',
320                 'src/DOMUtilitiesPrivate.cpp',
321                 'src/DOMUtilitiesPrivate.h',
322                 'src/DragClientImpl.cpp',
323                 'src/DragClientImpl.h',
324                 'src/DragScrollTimer.cpp',
325                 'src/DragScrollTimer.h',
326                 'src/EditorClientImpl.cpp',
327                 'src/EditorClientImpl.h',
328                 'src/EventListenerWrapper.cpp',
329                 'src/EventListenerWrapper.h',
330                 'src/FrameLoaderClientImpl.cpp',
331                 'src/FrameLoaderClientImpl.h',
332                 'src/FrameNetworkingContextImpl.h',
333                 'src/GLES2Context.cpp',
334                 'src/GLES2ContextInternal.cpp',
335                 'src/GLES2ContextInternal.h',
336                 'src/GraphicsContext3D.cpp',
337                 'src/gtk/WebFontInfo.cpp',
338                 'src/gtk/WebFontInfo.h',
339                 'src/gtk/WebInputEventFactory.cpp',
340                 'src/IDBCallbacksProxy.cpp',
341                 'src/IDBCallbacksProxy.h',
342                 'src/IDBCursorBackendProxy.cpp',
343                 'src/IDBCursorBackendProxy.h',
344                 'src/IDBDatabaseProxy.cpp',
345                 'src/IDBDatabaseProxy.h',
346                 'src/IDBFactoryBackendProxy.cpp',
347                 'src/IDBFactoryBackendProxy.h',
348                 'src/IDBIndexBackendProxy.cpp',
349                 'src/IDBIndexBackendProxy.h',
350                 'src/IDBObjectStoreProxy.cpp',
351                 'src/IDBObjectStoreProxy.h',
352                 'src/IDBTransactionBackendProxy.cpp',
353                 'src/IDBTransactionBackendProxy.h',
354                 'src/IDBTransactionCallbacksProxy.cpp',
355                 'src/IDBTransactionCallbacksProxy.h',
356                 'src/InspectorClientImpl.cpp',
357                 'src/InspectorClientImpl.h',
358                 'src/InspectorFrontendClientImpl.cpp',
359                 'src/InspectorFrontendClientImpl.h',
360                 'src/linux/WebFontRendering.cpp',
361                 'src/linux/WebFontRenderStyle.cpp',
362                 'src/linux/WebRenderTheme.cpp',
363                 'src/x11/WebScreenInfoFactory.cpp',
364                 'src/mac/WebInputEventFactory.mm',
365                 'src/mac/WebScreenInfoFactory.mm',
366                 'src/LocalizedStrings.cpp',
367                 'src/MediaPlayerPrivateChromium.cpp',
368                 'src/NotificationPresenterImpl.h',
369                 'src/NotificationPresenterImpl.cpp',
370                 'src/PlatformMessagePortChannel.cpp',
371                 'src/PlatformMessagePortChannel.h',
372                 'src/ResourceHandle.cpp',
373                 'src/SharedWorkerRepository.cpp',
374                 'src/SocketStreamHandle.cpp',
375                 'src/SpeechInputClientImpl.cpp',
376                 'src/SpeechInputClientImpl.h',
377                 'src/StorageAreaProxy.cpp',
378                 'src/StorageAreaProxy.h',
379                 'src/StorageEventDispatcherChromium.cpp',
380                 'src/StorageEventDispatcherImpl.cpp',
381                 'src/StorageEventDispatcherImpl.h',
382                 'src/StorageNamespaceProxy.cpp',
383                 'src/StorageNamespaceProxy.h',
384                 'src/TemporaryGlue.h',
385                 'src/VideoFrameChromiumImpl.cpp',
386                 'src/VideoFrameChromiumImpl.h',
387                 'src/WebAccessibilityCache.cpp',
388                 'src/WebAccessibilityCacheImpl.cpp',
389                 'src/WebAccessibilityCacheImpl.h',
390                 'src/WebAccessibilityObject.cpp',
391                 'src/WebAnimationControllerImpl.cpp',
392                 'src/WebAnimationControllerImpl.h',
393                 'src/WebAttribute.cpp',
394                 'src/WebBindings.cpp',
395                 'src/WebBlobData.cpp',
396                 'src/WebBlobStorageData.cpp',
397                 'src/WebCache.cpp',
398                 'src/WebColor.cpp',
399                 'src/WebCommon.cpp',
400                 'src/WebCrossOriginPreflightResultCache.cpp',
401                 'src/WebCString.cpp',
402                 'src/WebCursorInfo.cpp',
403                 'src/WebDOMEvent.cpp',
404                 'src/WebDOMEventListener.cpp',
405                 'src/WebDOMEventListenerPrivate.cpp',
406                 'src/WebDOMEventListenerPrivate.h',
407                 'src/WebDOMMouseEvent.cpp',
408                 'src/WebDOMMutationEvent.cpp',
409                 'src/WebDOMStringList.cpp',
410                 'src/WebData.cpp',
411                 'src/WebDatabase.cpp',
412                 'src/WebDataSourceImpl.cpp',
413                 'src/WebDataSourceImpl.h',
414                 'src/WebDevToolsAgentImpl.cpp',
415                 'src/WebDevToolsAgentImpl.h',
416                 'src/WebDevToolsFrontendImpl.cpp',
417                 'src/WebDevToolsFrontendImpl.h',
418                 'src/WebDeviceOrientation.cpp',
419                 'src/WebDeviceOrientationClientMock.cpp',
420                 'src/WebDeviceOrientationController.cpp',
421                 'src/WebDocument.cpp',
422                 'src/WebDocumentType.cpp',
423                 'src/WebDragData.cpp',
424                 'src/WebElement.cpp',
425                 'src/WebEntities.cpp',
426                 'src/WebEntities.h',
427                 'src/WebFileChooserCompletionImpl.cpp',
428                 'src/WebFileChooserCompletionImpl.h',
429                 'src/WebFileSystemCallbacksImpl.cpp',
430                 'src/WebFileSystemCallbacksImpl.h',
431                 'src/WebFontCache.cpp',
432                 'src/WebFontDescription.cpp',
433                 'src/WebFontImpl.cpp',
434                 'src/WebFontImpl.h',
435                 'src/WebFormControlElement.cpp',
436                 'src/WebFormElement.cpp',
437                 'src/WebFrameImpl.cpp',
438                 'src/WebFrameImpl.h',
439                 'src/WebGeolocationServiceBridgeImpl.cpp',
440                 'src/WebGeolocationServiceBridgeImpl.h',
441                 'src/WebGeolocationServiceMock.cpp',
442                 'src/WebGlyphCache.cpp',
443                 'src/WebGraphicsContext3D.cpp',
444                 'src/WebGraphicsContext3DDefaultImpl.cpp',
445                 'src/WebGraphicsContext3DDefaultImpl.h',
446                 'src/WebHistoryItem.cpp',
447                 'src/WebHTTPBody.cpp',
448                 'src/WebIDBCallbacksImpl.cpp',
449                 'src/WebIDBCallbacksImpl.h',
450                 'src/WebIDBCursorImpl.cpp',
451                 'src/WebIDBCursorImpl.h',
452                 'src/WebIDBDatabaseError.cpp',
453                 'src/WebIDBDatabaseImpl.cpp',
454                 'src/WebIDBDatabaseImpl.h',
455                 'src/WebIDBFactoryImpl.cpp',
456                 'src/WebIDBFactoryImpl.h',
457                 'src/WebIDBIndexImpl.cpp',
458                 'src/WebIDBIndexImpl.h',
459                 'src/WebIDBKey.cpp',
460                 'src/WebIDBKeyPath.cpp',
461                 'src/WebIDBKeyRange.cpp',
462                 'src/WebIDBObjectStoreImpl.cpp',
463                 'src/WebIDBObjectStoreImpl.h',
464                 'src/WebIDBTransactionImpl.cpp',
465                 'src/WebIDBTransactionImpl.h',
466                 'src/WebIDBTransactionCallbacksImpl.cpp',
467                 'src/WebIDBTransactionCallbacksImpl.h',
468                 'src/WebImageCG.cpp',
469                 'src/WebImageDecoder.cpp',
470                 'src/WebImageSkia.cpp',
471                 'src/WebInputElement.cpp',
472                 'src/WebInputEvent.cpp',
473                 'src/WebInputEventConversion.cpp',
474                 'src/WebInputEventConversion.h',
475                 'src/WebKit.cpp',
476                 'src/WebLabelElement.cpp',
477                 'src/WebMediaElement.cpp',
478                 'src/WebMediaPlayerClientImpl.cpp',
479                 'src/WebMediaPlayerClientImpl.h',
480                 'src/WebNamedNodeMap.cpp',
481                 'src/WebNode.cpp',
482                 'src/WebNodeCollection.cpp',
483                 'src/WebNodeList.cpp',
484                 'src/WebNotification.cpp',
485                 'src/WebOptionElement.cpp',
486                 'src/WebPageSerializer.cpp',
487                 'src/WebPageSerializerImpl.cpp',
488                 'src/WebPageSerializerImpl.h',
489                 'src/WebPasswordFormData.cpp',
490                 'src/WebPasswordFormUtils.cpp',
491                 'src/WebPasswordFormUtils.h',
492                 'src/WebPluginContainerImpl.h',
493                 'src/WebPluginContainerImpl.cpp',
494                 'src/WebPluginDocument.cpp',
495                 'src/WebPluginListBuilderImpl.cpp',
496                 'src/WebPluginListBuilderImpl.h',
497                 'src/WebPluginLoadObserver.cpp',
498                 'src/WebPluginLoadObserver.h',
499                 'src/WebPopupMenuImpl.cpp',
500                 'src/WebPopupMenuImpl.h',
501                 'src/WebRange.cpp',
502                 'src/WebRegularExpression.cpp',
503                 'src/WebRuntimeFeatures.cpp',
504                 'src/WebScriptController.cpp',
505                 'src/WebScrollbarImpl.cpp',
506                 'src/WebScrollbarImpl.h',
507                 'src/WebSearchableFormData.cpp',
508                 'src/WebSecurityOrigin.cpp',
509                 'src/WebSecurityPolicy.cpp',
510                 'src/WebSelectElement.cpp',
511                 'src/WebSerializedScriptValue.cpp',
512                 'src/WebSettingsImpl.cpp',
513                 'src/WebSettingsImpl.h',
514                 'src/WebSharedWorkerImpl.cpp',
515                 'src/WebSharedWorkerImpl.h',
516                 'src/WebSpeechInputControllerMockImpl.cpp',
517                 'src/WebSpeechInputControllerMockImpl.h',
518                 'src/WebStorageAreaImpl.cpp',
519                 'src/WebStorageAreaImpl.h',
520                 'src/WebStorageEventDispatcherImpl.cpp',
521                 'src/WebStorageEventDispatcherImpl.h',
522                 'src/WebStorageNamespaceImpl.cpp',
523                 'src/WebStorageNamespaceImpl.h',
524                 'src/WebString.cpp',
525                 'src/WebTextRun.cpp',
526                 'src/WebURL.cpp',
527                 'src/WebURLLoadTiming.cpp',
528                 'src/WebURLRequest.cpp',
529                 'src/WebURLRequestPrivate.h',
530                 'src/WebURLResponse.cpp',
531                 'src/WebURLResponsePrivate.h',
532                 'src/WebURLError.cpp',
533                 'src/WebViewImpl.cpp',
534                 'src/WebViewImpl.h',
535                 'src/WebWorkerBase.cpp',
536                 'src/WebWorkerBase.h',
537                 'src/WebWorkerClientImpl.cpp',
538                 'src/WebWorkerClientImpl.h',
539                 'src/WebWorkerImpl.cpp',
540                 'src/WebWorkerImpl.h',
541                 'src/WrappedResourceRequest.h',
542                 'src/WrappedResourceResponse.h',
543                 'src/win/WebInputEventFactory.cpp',
544                 'src/win/WebScreenInfoFactory.cpp',
545             ],
546             'conditions': [
547                 ['inside_chromium_build==1 and OS=="win"', {
548                     'type': '<(component)',
549
550                     'conditions': [
551                         ['component=="shared_library"', {
552                             'defines': [
553                                 'WEBKIT_DLL',
554                             ],
555                             'dependencies': [
556                                 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore_bindings',
557                                 '<(chromium_src_dir)/build/temp_gyp/googleurl.gyp:googleurl',
558                                 '<(chromium_src_dir)/gpu/gpu.gyp:gles2_c_lib',
559                                 '<(chromium_src_dir)/third_party/icu/icu.gyp:*',
560                                 '<(chromium_src_dir)/third_party/libjpeg/libjpeg.gyp:libjpeg',
561                                 '<(chromium_src_dir)/third_party/libpng/libpng.gyp:libpng',
562                                 '<(chromium_src_dir)/third_party/libxml/libxml.gyp:libxml',
563                                 '<(chromium_src_dir)/third_party/libxslt/libxslt.gyp:libxslt',
564                                 '<(chromium_src_dir)/third_party/modp_b64/modp_b64.gyp:modp_b64',
565                                 '<(chromium_src_dir)/third_party/nss/nss.gyp:*',
566                                 '<(chromium_src_dir)/third_party/ots/ots.gyp:ots',
567                                 '<(chromium_src_dir)/third_party/zlib/zlib.gyp:zlib',
568                                 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
569                             ],
570                             'direct_dependent_settings': {
571                                 'defines': [
572                                     'WEBKIT_DLL',
573                                 ],
574                             },
575                             'export_dependent_settings': [
576                                 '<(chromium_src_dir)/build/temp_gyp/googleurl.gyp:googleurl',
577                                 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
578                             ],
579                         }],
580                     ],
581                 }, {
582                     'type': '<(webkit_target_type)'
583                 }],
584                 ['OS=="linux" or OS=="freebsd"', {
585                     'dependencies': [
586                         '<(chromium_src_dir)/build/linux/system.gyp:fontconfig',
587                         '<(chromium_src_dir)/build/linux/system.gyp:gtk',
588                         '<(chromium_src_dir)/build/linux/system.gyp:x11',
589                     ],
590                     'include_dirs': [
591                         'public/x11',
592                         'public/gtk',
593                         'public/linux',
594                     ],
595                 }, { # else: OS!="linux" and OS!="freebsd"
596                     'sources/': [
597                         ['exclude', '/gtk/'],
598                         ['exclude', '/x11/'],
599                         ['exclude', '/linux/'],
600                     ],
601                 }],
602                 ['OS=="mac"', {
603                     'include_dirs': [
604                         'public/mac',
605                     ],
606                     'sources/': [
607                         ['exclude', 'Skia\\.cpp$'],
608                     ],
609                     'variables': {
610                         # FIXME: Turn on warnings on other platforms and for
611                         # other targets.
612                         'chromium_code': 1,
613                     }
614                 }, { # else: OS!="mac"
615                     'sources/': [
616                         ['exclude', '/mac/'],
617                         ['exclude', 'CG\\.cpp$'],
618                     ],
619                 }],
620                 ['OS=="win"', {
621                     'include_dirs': [
622                         'public/win',
623                     ],
624                 }, { # else: OS!="win"
625                     'sources/': [['exclude', '/win/']],
626                 }],
627                 ['"ENABLE_3D_CANVAS=1" in feature_defines', {
628                     'conditions': [
629                         ['OS=="mac"', {
630                             'link_settings': {
631                                 'libraries': [
632                                     '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
633                                 ],
634                             },
635                         }],
636                     ],
637                 }],
638             ],
639         },
640
641         {
642             'target_name': 'inspector_resources',
643             'type': 'none',
644             'dependencies': [
645                 'devtools_html',
646                 '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources',
647             ],
648             'conditions': [
649                 ['debug_devtools==0', {
650                     'dependencies': ['concatenated_devtools_js'],
651                 }],
652             ],
653             'copies': [
654                 {
655                     'destination': '<(PRODUCT_DIR)/resources/inspector',
656                     'files': [
657                         '<@(devtools_files)',
658                         '<@(webinspector_files)',
659                         '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js',
660                     ],
661                     'conditions': [
662                         ['debug_devtools==0', {
663                             'files/': [['exclude', '\\.js$']],
664                         }],
665                     ],
666                 },
667                 {
668                     'destination': '<(PRODUCT_DIR)/resources/inspector/Images',
669                     'files': [
670                         '<@(webinspector_image_files)',
671                         '<@(devtools_image_files)',
672                     ],
673                },
674             ],
675         },
676         {
677             'target_name': 'devtools_html',
678             'type': 'none',
679             'sources': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
680             'actions': [{
681                 'action_name': 'devtools_html',
682                 'inputs': [
683                     '<(chromium_src_dir)/webkit/build/generate_devtools_html.py',
684                     # See issue 29695: WebKit.gypi is a source file for devtools.html.
685                     'WebKit.gypi',
686                     '../../WebCore/inspector/front-end/inspector.html',
687                 ],
688                 'outputs': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
689                 'action': ['python', '<@(_inputs)', '<@(_outputs)', '<@(devtools_files)'],
690             }],
691         },
692         {
693             'target_name': 'concatenated_devtools_js',
694             'type': 'none',
695             'dependencies': [
696                 'devtools_html',
697                 '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources'
698             ],
699             'sources': ['<(PRODUCT_DIR)/resources/inspector/DevTools.js'],
700             'actions': [{
701                 'action_name': 'concatenate_devtools_js',
702                 'script_name': '<(chromium_src_dir)/webkit/build/concatenate_js_files.py',
703                 'input_page': '<(PRODUCT_DIR)/resources/inspector/devtools.html',
704                 'inputs': [
705                     '<@(_script_name)',
706                     '<@(_input_page)',
707                     '<@(webinspector_files)',
708                     '<@(devtools_files)',
709                     '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js',
710                 ],
711                 'search_path': [
712                     '../../WebCore/inspector/front-end',
713                     'src/js',
714                     '<(SHARED_INTERMEDIATE_DIR)/webcore',
715                     '<(chromium_src_dir)/v8/tools',
716                 ],
717                 'outputs': ['<(PRODUCT_DIR)/resources/inspector/DevTools.js'],
718                 'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_search_path)', '<@(_outputs)'],
719             }],
720         },
721
722         {
723             'target_name': 'webkit_unit_tests',
724             'conditions': [
725                 # FIXME: make webkit unit tests working for multi dll build.
726                 ['inside_chromium_build==1 and OS=="win" and component=="shared_library"', {
727                     'type': 'none',
728                 }, {
729                     'type': 'executable',
730                     'msvs_guid': '7CEFE800-8403-418A-AD6A-2D52C6FC3EAD',
731                     'dependencies': [
732                         'webkit',
733                         '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
734                         '<(chromium_src_dir)/testing/gtest.gyp:gtest',
735                         '<(chromium_src_dir)/base/base.gyp:base',
736                         '<(chromium_src_dir)/base/base.gyp:base_i18n',
737                         '<(chromium_src_dir)/base/base.gyp:test_support_base',
738                         '<(chromium_src_dir)/gpu/gpu.gyp:gles2_c_lib',
739                         '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_support',
740                     ],
741                     'include_dirs': [
742                         'public',
743                         'src',
744                     ],
745                     'sources': [
746                         'tests/DragImageTest.cpp',
747                         'tests/IDBBindingUtilitiesTest.cpp',
748                         'tests/IDBKeyPathTest.cpp',
749                         'tests/KeyboardTest.cpp',
750                         'tests/KURLTest.cpp',
751                         'tests/RunAllTests.cpp',
752                         'tests/TilingDataTest.cpp',
753                     ],
754                     'conditions': [
755                         ['OS=="win"', {
756                             'sources': [
757                                 # FIXME: Port PopupMenuTest and WebFrameTest to Linux and Mac.
758                                 'tests/PopupMenuTest.cpp',
759                                 'tests/TransparencyWinTest.cpp',
760                                 'tests/UniscribeHelperTest.cpp',
761                                 'tests/WebFrameTest.cpp',
762                             ],
763                         }],
764                         ['OS=="mac"', {
765                             'sources!': [
766                                 # FIXME: Port DragImageTest to Mac.
767                                 'tests/DragImageTest.cpp',
768                             ],
769                         }],
770                         ['OS=="linux"', {
771                             'sources': [
772                                 'tests/WebInputEventFactoryTestGtk.cpp',
773                             ],
774                             'include_dirs': [
775                                 'public/gtk',
776                             ],
777                         }],
778                     ],
779                 }],
780             ],
781         },
782         {
783             'target_name': 'ImageDiff',
784             'type': 'executable',
785             'dependencies': [
786                 'webkit',
787                 '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf',
788                 '<(chromium_src_dir)/gfx/gfx.gyp:gfx',
789             ],
790             'include_dirs': [
791                 '../../JavaScriptCore',
792                 '<(DEPTH)',
793             ],
794             'sources': [
795                 '../../WebKitTools/DumpRenderTree/chromium/ImageDiff.cpp',
796             ],
797         },
798         {
799             'target_name': 'DumpRenderTree',
800             'type': 'executable',
801             'mac_bundle': 1,
802             'dependencies': [
803                 'ImageDiff',
804                 'inspector_resources',
805                 'webkit',
806                 '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf_config',
807                 '<(chromium_src_dir)/third_party/icu/icu.gyp:icuuc',
808                 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:copy_npapi_layout_test_plugin',
809                 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_support',
810                 '<(chromium_src_dir)/gpu/gpu.gyp:gles2_c_lib'
811             ],
812             'include_dirs': [
813                 '.',
814                 '../../JavaScriptCore',
815                 '../../JavaScriptCore/wtf', # wtf/text/*.h refers headers in wtf/ without wtf/.
816                 '<(DEPTH)',
817             ],
818             'defines': [
819                 # Technically not a unit test but require functions available only to
820                 # unit tests.
821                 'UNIT_TEST',
822             ],
823             'sources': [
824                 '<@(drt_files)',
825             ],
826             'conditions': [
827                 ['OS=="win"', {
828                     'dependencies': ['LayoutTestHelper'],
829
830                     'resource_include_dirs': ['<(SHARED_INTERMEDIATE_DIR)/webkit'],
831                     'sources': [
832                         '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
833                         '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.rc',
834                         '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc',
835                         '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc',
836                     ],
837                     'conditions': [
838                         ['inside_chromium_build==1 and component=="shared_library"', {
839                             'sources': [
840                                 'src/ChromiumCurrentTime.cpp',
841                                 'src/ChromiumThreading.cpp',
842                             ],
843                             'include_dirs': [
844                                 'public',
845                             ],
846                             'dependencies': [
847                                 '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf',
848                             ],
849                         }],
850                     ],
851                     'copies': [{
852                         'destination': '<(PRODUCT_DIR)',
853                         'files': ['<(ahem_path)'],
854                     }],
855                 },{ # OS!="win"
856                     'sources/': [
857                         ['exclude', 'Win\\.cpp$'],
858                     ],
859                     'actions': [
860                         {
861                             'action_name': 'repack_locale',
862                             'variables': {
863                                 'repack_path': '<(chromium_src_dir)/tools/data_pack/repack.py',
864                                 'pak_inputs': [
865                                     '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
866                                     '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.pak',
867                                     '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
868                                     '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak',
869                             ]},
870                             'inputs': [
871                                 '<(repack_path)',
872                                 '<@(pak_inputs)',
873                             ],
874                             'outputs': [
875                                 '<(INTERMEDIATE_DIR)/repack/DumpRenderTree.pak',
876                             ],
877                             'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inputs)'],
878                             'process_outputs_as_mac_bundle_resources': 1,
879                         },
880                     ], # actions
881                 }],
882                 ['OS=="mac"', {
883                     'dependencies': ['LayoutTestHelper'],
884
885                     'mac_bundle_resources': [
886                         '<(ahem_path)',
887                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher100.ttf',
888                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher200.ttf',
889                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher300.ttf',
890                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher400.ttf',
891                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher500.ttf',
892                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher600.ttf',
893                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher700.ttf',
894                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher800.ttf',
895                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher900.ttf',
896                         '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
897                     ],
898                     # Workaround for http://code.google.com/p/gyp/issues/detail?id=160
899                     'copies': [{
900                         'destination': '<(PRODUCT_DIR)/DumpRenderTree.app/Contents/PlugIns/',
901                         'files': ['<(PRODUCT_DIR)/TestNetscapePlugIn.plugin/'],
902                     }],
903                 },{ # OS!="mac"
904                     'sources/': [
905                         # .mm is already excluded by common.gypi
906                         ['exclude', 'Mac\\.cpp$'],
907                     ]
908                 }],
909                 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
910                     'dependencies': [
911                         '<(chromium_src_dir)/build/linux/system.gyp:fontconfig',
912                         '<(chromium_src_dir)/build/linux/system.gyp:gtk',
913                     ],
914                     'include_dirs': [
915                         'public/gtk',
916                     ],
917                     'copies': [{
918                         'destination': '<(PRODUCT_DIR)',
919                         'files': [
920                             '<(ahem_path)',
921                             '../../WebKitTools/DumpRenderTree/chromium/fonts.conf',
922                             '<(INTERMEDIATE_DIR)/repack/DumpRenderTree.pak',
923                         ]
924                     }],
925                 },{ # OS!="linux" and OS!="freebsd" and OS!="openbsd" and OS!="solaris"
926                     'sources/': [
927                         ['exclude', '(Gtk|Linux)\\.cpp$']
928                     ]
929                 }],
930             ],
931         },
932     ], # targets
933     'conditions': [
934         ['OS=="win"', {
935             'targets': [{
936                 'target_name': 'LayoutTestHelper',
937                 'type': 'executable',
938                 'sources': ['../../WebKitTools/DumpRenderTree/chromium/LayoutTestHelperWin.cpp'],
939             }],
940         }],
941         ['OS=="mac"', {
942             'targets': [
943                 {
944                     'target_name': 'LayoutTestHelper',
945                     'type': 'executable',
946                     'sources': ['../../WebKitTools/DumpRenderTree/chromium/LayoutTestHelper.mm'],
947                     'link_settings': {
948                         'libraries': [
949                             '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
950                         ],
951                     },
952                 },
953             ],
954         }],
955     ], # conditions
956 }
957
958 # Local Variables:
959 # tab-width:2
960 # indent-tabs-mode:nil
961 # End:
962 # vim: set expandtab tabstop=2 shiftwidth=2: