OSDN Git Service

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