OSDN Git Service

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