OSDN Git Service

am f3151d7b: am 828ef22d: merge -s ours from froyo-release so that upgrading to ginge...
[android-x86/external-webkit.git] / WebKit / chromium / WebKit.gyp
1 #
2 # Copyright (C) 2010 Google Inc. All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
6 # met:
7 #
8 #         * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 #         * Redistributions in binary form must reproduce the above
11 # copyright notice, this list of conditions and the following disclaimer
12 # in the documentation and/or other materials provided with the
13 # distribution.
14 #         * Neither the name of Google Inc. nor the names of its
15 # contributors may be used to endorse or promote products derived from
16 # this software without specific prior written permission.
17 #
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 #
30
31 {
32     'includes': [
33         '../../WebCore/WebCore.gypi',
34         '../../WebKitTools/DumpRenderTree/DumpRenderTree.gypi',
35         'WebKit.gypi',
36         'features.gypi',
37     ],
38     'variables': {
39         'webkit_target_type': 'static_library',
40         'conditions': [
41             # Location of the chromium src directory and target type is different
42             # if webkit is built inside chromium or as standalone project.
43             ['inside_chromium_build==0', {
44                 # Webkit is being built outside of the full chromium project.
45                 # e.g. via build-webkit --chromium
46                 'chromium_src_dir': '../../WebKit/chromium',
47
48                 # List of DevTools source files, ordered by dependencies. It is used both
49                 # for copying them to resource dir, and for generating 'devtools.html' file.
50                 'devtools_files': [
51                     '<@(devtools_css_files)',
52                     '../../WebKit/chromium/v8/tools/codemap.js',
53                     '../../WebKit/chromium/v8/tools/consarray.js',
54                     '../../WebKit/chromium/v8/tools/csvparser.js',
55                     '../../WebKit/chromium/v8/tools/logreader.js',
56                     '../../WebKit/chromium/v8/tools/profile.js',
57                     '../../WebKit/chromium/v8/tools/profile_view.js',
58                     '../../WebKit/chromium/v8/tools/splaytree.js',
59                     '<@(devtools_js_files)',
60                 ],
61             },{
62                 # WebKit is checked out in src/chromium/third_party/WebKit
63                 'chromium_src_dir': '../../../..',
64
65                 'devtools_files': [
66                     '<@(devtools_css_files)',
67                     '../../../../v8/tools/codemap.js',
68                     '../../../../v8/tools/consarray.js',
69                     '../../../../v8/tools/csvparser.js',
70                     '../../../../v8/tools/logreader.js',
71                     '../../../../v8/tools/profile.js',
72                     '../../../../v8/tools/profile_view.js',
73                     '../../../../v8/tools/splaytree.js',
74                     '<@(devtools_js_files)',
75                 ],
76             }],
77         ],
78         'ahem_path': '../../WebKitTools/DumpRenderTree/qt/fonts/AHEM____.TTF',
79
80         # If debug_devtools is set to 1, JavaScript files for DevTools are
81         # stored as is. Otherwise, a concatenated file is stored.
82         'debug_devtools%': 0,
83     },
84     'targets': [
85         {
86             'target_name': 'webkit',
87             'msvs_guid': '5ECEC9E5-8F23-47B6-93E0-C3B328B3BE65',
88             'dependencies': [
89                 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
90                 '<(chromium_src_dir)/app/app.gyp:app_base', # For GLContext
91                 '<(chromium_src_dir)/skia/skia.gyp:skia',
92                 '<(chromium_src_dir)/third_party/npapi/npapi.gyp:npapi',
93             ],
94             'export_dependent_settings': [
95                 '<(chromium_src_dir)/skia/skia.gyp:skia',
96                 '<(chromium_src_dir)/third_party/npapi/npapi.gyp:npapi',
97             ],
98             'include_dirs': [
99                 'public',
100                 'src',
101             ],
102             'defines': [
103                 'WEBKIT_IMPLEMENTATION=1',
104             ],
105             'sources': [
106                 'public/gtk/WebInputEventFactory.h',
107                 'public/linux/WebFontRendering.h',
108                 'public/linux/WebFontRenderStyle.h',
109                 'public/linux/WebRenderTheme.h',
110                 'public/x11/WebScreenInfoFactory.h',
111                 'public/mac/WebInputEventFactory.h',
112                 'public/mac/WebSandboxSupport.h',
113                 'public/mac/WebScreenInfoFactory.h',
114                 'public/WebAccessibilityCache.h',
115                 'public/WebAccessibilityObject.h',
116                 'public/WebAccessibilityRole.h',
117                 'public/WebAnimationController.h',
118                 'public/WebApplicationCacheHost.h',
119                 'public/WebApplicationCacheHostClient.h',
120                 'public/WebAttribute.h',
121                 'public/WebBindings.h',
122                 'public/WebCache.h',
123                 'public/WebCanvas.h',
124                 'public/WebClipboard.h',
125                 'public/WebColor.h',
126                 'public/WebColorName.h',
127                 'public/WebCommon.h',
128                 'public/WebCommonWorkerClient.h',
129                 'public/WebCompositionUnderline.h',
130                 'public/WebConsoleMessage.h',
131                 'public/WebContextMenuData.h',
132                 'public/WebCookie.h',
133                 'public/WebCookieJar.h',
134                 'public/WebCrossOriginPreflightResultCache.h',
135                 'public/WebCString.h',
136                 'public/WebCursorInfo.h',
137                 'public/WebDOMStringList.h',
138                 'public/WebData.h',
139                 'public/WebDatabase.h',
140                 'public/WebDatabaseObserver.h',
141                 'public/WebDataSource.h',
142                 'public/WebDevToolsAgent.h',
143                 'public/WebDevToolsAgentClient.h',
144                 'public/WebDevToolsFrontend.h',
145                 'public/WebDevToolsFrontendClient.h',
146                 'public/WebDeviceOrientation.h',
147                 'public/WebDeviceOrientationClient.h',
148                 'public/WebDeviceOrientationClientMock.h',
149                 'public/WebDeviceOrientationController.h',
150                 'public/WebDocument.h',
151                 'public/WebDocumentType.h',
152                 'public/WebDragData.h',
153                 'public/WebEditingAction.h',
154                 'public/WebElement.h',
155                 'public/WebEvent.h',
156                 'public/WebEventListener.h',
157                 'public/WebFileChooserCompletion.h',
158                 'public/WebFileChooserParams.h',
159                 'public/WebFileInfo.h',
160                 'public/WebFileSystem.h',
161                 'public/WebFileUtilities.h',
162                 'public/WebFindOptions.h',
163                 'public/WebFloatPoint.h',
164                 'public/WebFloatRect.h',
165                 'public/WebFont.h',
166                 'public/WebFontDescription.h',
167                 'public/WebFrame.h',
168                 'public/WebFrameClient.h',
169                 'public/WebFontCache.h',
170                 'public/WebFormControlElement.h',
171                 'public/WebFormElement.h',
172                 'public/WebGeolocationService.h',
173                 'public/WebGeolocationServiceBridge.h',
174                 'public/WebGeolocationServiceMock.h',
175                 'public/WebGlyphCache.h',
176                 'public/WebGLES2Context.h',
177                 'public/WebGraphicsContext3D.h',
178                 'public/WebHistoryItem.h',
179                 'public/WebHTTPBody.h',
180                 'public/WebImage.h',
181                 'public/WebImageDecoder.h',
182                 'public/WebIDBCallbacks.h',
183                 'public/WebIDBCursor.h',
184                 'public/WebIDBDatabase.h',
185                 'public/WebIDBDatabaseError.h',
186                 'public/WebIDBFactory.h',
187                 'public/WebIDBKeyRange.h',
188                 'public/WebIDBIndex.h',
189                 'public/WebIDBKey.h',
190                 'public/WebIDBKeyPath.h',
191                 'public/WebIDBObjectStore.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/WebMutationEvent.h',
207                 'public/WebNamedNodeMap.h',
208                 'public/WebNavigationType.h',
209                 'public/WebNode.h',
210                 'public/WebNodeCollection.h',
211                 'public/WebNodeList.h',
212                 'public/WebNonCopyable.h',
213                 'public/WebNotification.h',
214                 'public/WebNotificationPresenter.h',
215                 'public/WebNotificationPermissionCallback.h',
216                 'public/WebOptionElement.h',
217                 'public/WebPageSerializer.h',
218                 'public/WebPageSerializerClient.h',
219                 'public/WebPasswordAutocompleteListener.h',
220                 'public/WebPasswordFormData.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                 'public/win/WebScreenInfoFactory.h',
283                 'src/ApplicationCacheHost.cpp',
284                 'src/ApplicationCacheHostInternal.h',
285                 'src/AssertMatchingEnums.cpp',
286                 'src/AutoFillPopupMenuClient.cpp',
287                 'src/AutoFillPopupMenuClient.h',
288                 'src/BackForwardListClientImpl.cpp',
289                 'src/BackForwardListClientImpl.h',
290                 'src/BoundObject.cpp',
291                 'src/BoundObject.h',
292                 'src/ChromeClientImpl.cpp',
293                 'src/ChromeClientImpl.h',
294                 'src/ChromiumBridge.cpp',
295                 'src/ChromiumCurrentTime.cpp',
296                 'src/ChromiumThreading.cpp',
297                 'src/CompositionUnderlineBuilder.h',
298                 'src/CompositionUnderlineVectorBuilder.cpp',
299                 'src/CompositionUnderlineVectorBuilder.h',
300                 'src/ContextMenuClientImpl.cpp',
301                 'src/ContextMenuClientImpl.h',
302                 'src/DatabaseObserver.cpp',
303                 'src/DebuggerAgentImpl.cpp',
304                 'src/DebuggerAgentImpl.h',
305                 'src/DebuggerAgentManager.cpp',
306                 'src/DebuggerAgentManager.h',
307                 'src/DeviceOrientationClientProxy.cpp',
308                 'src/DeviceOrientationClientProxy.h',
309                 'src/DOMUtilitiesPrivate.cpp',
310                 'src/DOMUtilitiesPrivate.h',
311                 'src/DragClientImpl.cpp',
312                 'src/DragClientImpl.h',
313                 'src/DragScrollTimer.cpp',
314                 'src/DragScrollTimer.h',
315                 'src/EditorClientImpl.cpp',
316                 'src/EditorClientImpl.h',
317                 'src/EventListenerWrapper.cpp',
318                 'src/EventListenerWrapper.h',
319                 'src/FrameLoaderClientImpl.cpp',
320                 'src/FrameLoaderClientImpl.h',
321                 'src/FrameNetworkingContextImpl.h',
322                 'src/GLES2Context.cpp',
323                 'src/GLES2ContextInternal.cpp',
324                 'src/GLES2ContextInternal.h',
325                 'src/GraphicsContext3D.cpp',
326                 'src/gtk/WebFontInfo.cpp',
327                 'src/gtk/WebFontInfo.h',
328                 'src/gtk/WebInputEventFactory.cpp',
329                 'src/IDBCallbacksProxy.cpp',
330                 'src/IDBCallbacksProxy.h',
331                 'src/IDBCursorBackendProxy.cpp',
332                 'src/IDBCursorBackendProxy.h',
333                 'src/IDBDatabaseProxy.cpp',
334                 'src/IDBDatabaseProxy.h',
335                 'src/IDBFactoryBackendProxy.cpp',
336                 'src/IDBFactoryBackendProxy.h',
337                 'src/IDBIndexBackendProxy.cpp',
338                 'src/IDBIndexBackendProxy.h',
339                 'src/IDBObjectStoreProxy.cpp',
340                 'src/IDBObjectStoreProxy.h',
341                 'src/InspectorClientImpl.cpp',
342                 'src/InspectorClientImpl.h',
343                 'src/InspectorFrontendClientImpl.cpp',
344                 'src/InspectorFrontendClientImpl.h',
345                 'src/linux/WebFontRendering.cpp',
346                 'src/linux/WebFontRenderStyle.cpp',
347                 'src/linux/WebRenderTheme.cpp',
348                 'src/x11/WebScreenInfoFactory.cpp',
349                 'src/mac/WebInputEventFactory.mm',
350                 'src/mac/WebScreenInfoFactory.mm',
351                 'src/LocalizedStrings.cpp',
352                 'src/MediaPlayerPrivateChromium.cpp',
353                 'src/NotificationPresenterImpl.h',
354                 'src/NotificationPresenterImpl.cpp',
355                 'src/PlatformMessagePortChannel.cpp',
356                 'src/PlatformMessagePortChannel.h',
357                 'src/ResourceHandle.cpp',
358                 'src/SharedWorkerRepository.cpp',
359                 'src/SocketStreamHandle.cpp',
360                 'src/SpeechInputClientImpl.cpp',
361                 'src/SpeechInputClientImpl.h',
362                 'src/StorageAreaProxy.cpp',
363                 'src/StorageAreaProxy.h',
364                 'src/StorageEventDispatcherChromium.cpp',
365                 'src/StorageEventDispatcherImpl.cpp',
366                 'src/StorageEventDispatcherImpl.h',
367                 'src/StorageNamespaceProxy.cpp',
368                 'src/StorageNamespaceProxy.h',
369                 'src/TemporaryGlue.h',
370                 'src/WebAccessibilityCache.cpp',
371                 'src/WebAccessibilityCacheImpl.cpp',
372                 'src/WebAccessibilityCacheImpl.h',
373                 'src/WebAccessibilityObject.cpp',
374                 'src/WebAnimationControllerImpl.cpp',
375                 'src/WebAnimationControllerImpl.h',
376                 'src/WebAttribute.cpp',
377                 'src/WebBindings.cpp',
378                 'src/WebCache.cpp',
379                 'src/WebColor.cpp',
380                 'src/WebCommon.cpp',
381                 'src/WebCrossOriginPreflightResultCache.cpp',
382                 'src/WebCString.cpp',
383                 'src/WebCursorInfo.cpp',
384                 'src/WebDOMStringList.cpp',
385                 'src/WebData.cpp',
386                 'src/WebDatabase.cpp',
387                 'src/WebDataSourceImpl.cpp',
388                 'src/WebDataSourceImpl.h',
389                 'src/WebDevToolsAgentImpl.cpp',
390                 'src/WebDevToolsAgentImpl.h',
391                 'src/WebDevToolsFrontendImpl.cpp',
392                 'src/WebDevToolsFrontendImpl.h',
393                 'src/WebDeviceOrientation.cpp',
394                 'src/WebDeviceOrientationClientMock.cpp',
395                 'src/WebDeviceOrientationController.cpp',
396                 'src/WebDocument.cpp',
397                 'src/WebDocumentType.cpp',
398                 'src/WebDragData.cpp',
399                 'src/WebElement.cpp',
400                 'src/WebEntities.cpp',
401                 'src/WebEntities.h',
402                 'src/WebEvent.cpp',
403                 'src/WebEventListener.cpp',
404                 'src/WebEventListenerPrivate.cpp',
405                 'src/WebEventListenerPrivate.h',
406                 'src/WebFileChooserCompletionImpl.cpp',
407                 'src/WebFileChooserCompletionImpl.h',
408                 'src/WebFontCache.cpp',
409                 'src/WebFontDescription.cpp',
410                 'src/WebFontImpl.cpp',
411                 'src/WebFontImpl.h',
412                 'src/WebFormControlElement.cpp',
413                 'src/WebFormElement.cpp',
414                 'src/WebFrameImpl.cpp',
415                 'src/WebFrameImpl.h',
416                 'src/WebGeolocationServiceBridgeImpl.cpp',
417                 'src/WebGeolocationServiceBridgeImpl.h',
418                 'src/WebGeolocationServiceMock.cpp',
419                 'src/WebGlyphCache.cpp',
420                 'src/WebGraphicsContext3D.cpp',
421                 'src/WebGraphicsContext3DDefaultImpl.cpp',
422                 'src/WebGraphicsContext3DDefaultImpl.h',
423                 'src/WebHistoryItem.cpp',
424                 'src/WebHTTPBody.cpp',
425                 'src/WebIDBCallbacksImpl.cpp',
426                 'src/WebIDBCallbacksImpl.h',
427                 'src/WebIDBCursorImpl.cpp',
428                 'src/WebIDBCursorImpl.h',
429                 'src/WebIDBDatabaseError.cpp',
430                 'src/WebIDBDatabaseImpl.cpp',
431                 'src/WebIDBDatabaseImpl.h',
432                 'src/WebIDBFactoryImpl.cpp',
433                 'src/WebIDBFactoryImpl.h',
434                 'src/WebIDBIndexImpl.cpp',
435                 'src/WebIDBIndexImpl.h',
436                 'src/WebIDBKey.cpp',
437                 'src/WebIDBKeyPath.cpp',
438                 'src/WebIDBKeyRange.cpp',
439                 'src/WebIDBObjectStoreImpl.cpp',
440                 'src/WebIDBObjectStoreImpl.h',
441                 'src/WebImageCG.cpp',
442                 'src/WebImageDecoder.cpp',
443                 'src/WebImageSkia.cpp',
444                 'src/WebInputElement.cpp',
445                 'src/WebInputEvent.cpp',
446                 'src/WebInputEventConversion.cpp',
447                 'src/WebInputEventConversion.h',
448                 'src/WebKit.cpp',
449                 'src/WebLabelElement.cpp',
450                 'src/WebMediaElement.cpp',
451                 'src/WebMediaPlayerClientImpl.cpp',
452                 'src/WebMediaPlayerClientImpl.h',
453                 'src/WebMutationEvent.cpp',
454                 'src/WebNamedNodeMap.cpp',
455                 'src/WebNode.cpp',
456                 'src/WebNodeCollection.cpp',
457                 'src/WebNodeList.cpp',
458                 'src/WebNotification.cpp',
459                 'src/WebOptionElement.cpp',
460                 'src/WebPageSerializer.cpp',
461                 'src/WebPageSerializerImpl.cpp',
462                 'src/WebPageSerializerImpl.h',
463                 'src/WebPasswordFormData.cpp',
464                 'src/WebPasswordFormUtils.cpp',
465                 'src/WebPasswordFormUtils.h',
466                 'src/WebPluginContainerImpl.h',
467                 'src/WebPluginContainerImpl.cpp',
468                 'src/WebPluginDocument.cpp',
469                 'src/WebPluginListBuilderImpl.cpp',
470                 'src/WebPluginListBuilderImpl.h',
471                 'src/WebPluginLoadObserver.cpp',
472                 'src/WebPluginLoadObserver.h',
473                 'src/WebPopupMenuImpl.cpp',
474                 'src/WebPopupMenuImpl.h',
475                 'src/WebRange.cpp',
476                 'src/WebRegularExpression.cpp',
477                 'src/WebRuntimeFeatures.cpp',
478                 'src/WebScriptController.cpp',
479                 'src/WebScrollbarImpl.cpp',
480                 'src/WebScrollbarImpl.h',
481                 'src/WebSearchableFormData.cpp',
482                 'src/WebSecurityOrigin.cpp',
483                 'src/WebSecurityPolicy.cpp',
484                 'src/WebSelectElement.cpp',
485                 'src/WebSerializedScriptValue.cpp',
486                 'src/WebSettingsImpl.cpp',
487                 'src/WebSettingsImpl.h',
488                 'src/WebSharedWorkerImpl.cpp',
489                 'src/WebSharedWorkerImpl.h',
490                 'src/WebSpeechInputControllerMockImpl.cpp',
491                 'src/WebSpeechInputControllerMockImpl.h',
492                 'src/WebStorageAreaImpl.cpp',
493                 'src/WebStorageAreaImpl.h',
494                 'src/WebStorageEventDispatcherImpl.cpp',
495                 'src/WebStorageEventDispatcherImpl.h',
496                 'src/WebStorageNamespaceImpl.cpp',
497                 'src/WebStorageNamespaceImpl.h',
498                 'src/WebString.cpp',
499                 'src/WebTextRun.cpp',
500                 'src/WebURL.cpp',
501                 'src/WebURLLoadTiming.cpp',
502                 'src/WebURLRequest.cpp',
503                 'src/WebURLRequestPrivate.h',
504                 'src/WebURLResponse.cpp',
505                 'src/WebURLResponsePrivate.h',
506                 'src/WebURLError.cpp',
507                 'src/WebViewImpl.cpp',
508                 'src/WebViewImpl.h',
509                 'src/WebWorkerBase.cpp',
510                 'src/WebWorkerBase.h',
511                 'src/WebWorkerClientImpl.cpp',
512                 'src/WebWorkerClientImpl.h',
513                 'src/WebWorkerImpl.cpp',
514                 'src/WebWorkerImpl.h',
515                 'src/WrappedResourceRequest.h',
516                 'src/WrappedResourceResponse.h',
517                 'src/win/WebInputEventFactory.cpp',
518                 'src/win/WebScreenInfoFactory.cpp',
519             ],
520             'conditions': [
521                 ['inside_chromium_build==1 and OS=="win"', {
522                     'type': '<(component)',
523
524                     'conditions': [
525                         ['component=="shared_library"', {
526                             'defines': [
527                                 'WEBKIT_DLL',
528                             ],
529                             'dependencies': [
530                                 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore_bindings',
531                                 '<(chromium_src_dir)/build/temp_gyp/googleurl.gyp:googleurl',
532                                 '<(chromium_src_dir)/gpu/gpu.gyp:gles2_c_lib',
533                                 '<(chromium_src_dir)/third_party/icu/icu.gyp:*',
534                                 '<(chromium_src_dir)/third_party/libjpeg/libjpeg.gyp:libjpeg',
535                                 '<(chromium_src_dir)/third_party/libpng/libpng.gyp:libpng',
536                                 '<(chromium_src_dir)/third_party/libxml/libxml.gyp:libxml',
537                                 '<(chromium_src_dir)/third_party/libxslt/libxslt.gyp:libxslt',
538                                 '<(chromium_src_dir)/third_party/modp_b64/modp_b64.gyp:modp_b64',
539                                 '<(chromium_src_dir)/third_party/nss/nss.gyp:*',
540                                 '<(chromium_src_dir)/third_party/ots/ots.gyp:ots',
541                                 '<(chromium_src_dir)/third_party/zlib/zlib.gyp:zlib',
542                                 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
543                             ],
544                             'direct_dependent_settings': {
545                                 'defines': [
546                                     'WEBKIT_DLL',
547                                 ],
548                             },
549                             'export_dependent_settings': [
550                                 '<(chromium_src_dir)/build/temp_gyp/googleurl.gyp:googleurl',
551                                 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
552                             ],
553                         }],
554                     ],
555                 }, {
556                     'type': '<(webkit_target_type)'
557                 }],
558                 ['OS=="linux" or OS=="freebsd"', {
559                     'dependencies': [
560                         '<(chromium_src_dir)/build/linux/system.gyp:fontconfig',
561                         '<(chromium_src_dir)/build/linux/system.gyp:gtk',
562                         '<(chromium_src_dir)/build/linux/system.gyp:x11',
563                     ],
564                     'include_dirs': [
565                         'public/x11',
566                         'public/gtk',
567                         'public/linux',
568                     ],
569                 }, { # else: OS!="linux" and OS!="freebsd"
570                     'sources/': [
571                         ['exclude', '/gtk/'],
572                         ['exclude', '/x11/'],
573                         ['exclude', '/linux/'],
574                     ],
575                 }],
576                 ['OS=="mac"', {
577                     'include_dirs': [
578                         'public/mac',
579                     ],
580                     'sources/': [
581                         ['exclude', 'Skia\\.cpp$'],
582                     ],
583                     'variables': {
584                         # FIXME: Turn on warnings on other platforms and for
585                         # other targets.
586                         'chromium_code': 1,
587                     }
588                 }, { # else: OS!="mac"
589                     'sources/': [
590                         ['exclude', '/mac/'],
591                         ['exclude', 'CG\\.cpp$'],
592                     ],
593                 }],
594                 ['OS=="win"', {
595                     'include_dirs': [
596                         'public/win',
597                     ],
598                 }, { # else: OS!="win"
599                     'sources/': [['exclude', '/win/']],
600                 }],
601                 ['"ENABLE_3D_CANVAS=1" in feature_defines', {
602                     'conditions': [
603                         ['OS=="mac"', {
604                             'link_settings': {
605                                 'libraries': [
606                                     '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
607                                 ],
608                             },
609                         }],
610                     ],
611                 }],
612             ],
613         },
614
615         {
616             'target_name': 'inspector_resources',
617             'type': 'none',
618             'dependencies': [
619                 'devtools_html',
620                 '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources',
621             ],
622             'conditions': [
623                 ['debug_devtools==0', {
624                     'dependencies': ['concatenated_devtools_js'],
625                 }],
626             ],
627             'copies': [
628                 {
629                     'destination': '<(PRODUCT_DIR)/resources/inspector',
630                     'files': [
631                         '<@(devtools_files)',
632                         '<@(webinspector_files)',
633                         '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js',
634                     ],
635                     'conditions': [
636                         ['debug_devtools==0', {
637                             'files/': [['exclude', '\\.js$']],
638                         }],
639                     ],
640                 },
641                 {
642                     'destination': '<(PRODUCT_DIR)/resources/inspector/Images',
643                     'files': [
644                         '<@(webinspector_image_files)',
645                         '<@(devtools_image_files)',
646                     ],
647                },
648             ],
649         },
650         {
651             'target_name': 'devtools_html',
652             'type': 'none',
653             'sources': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
654             'actions': [{
655                 'action_name': 'devtools_html',
656                 'inputs': [
657                     '<(chromium_src_dir)/webkit/build/generate_devtools_html.py',
658                     # See issue 29695: WebKit.gypi is a source file for devtools.html.
659                     'WebKit.gypi',
660                     '../../WebCore/inspector/front-end/inspector.html',
661                 ],
662                 'outputs': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
663                 'action': ['python', '<@(_inputs)', '<@(_outputs)', '<@(devtools_files)'],
664             }],
665         },
666         {
667             'target_name': 'concatenated_devtools_js',
668             'type': 'none',
669             'dependencies': ['devtools_html'],
670             'sources': ['<(PRODUCT_DIR)/resources/inspector/DevTools.js'],
671             'actions': [{
672                 'action_name': 'concatenate_devtools_js',
673                 'script_name': '<(chromium_src_dir)/webkit/build/concatenate_js_files.py',
674                 'input_page': '<(PRODUCT_DIR)/resources/inspector/devtools.html',
675                 'inputs': [
676                     '<@(_script_name)',
677                     '<@(_input_page)',
678                     '<@(webinspector_files)',
679                     '<@(devtools_files)',
680                     '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js',
681                 ],
682                 'search_path': [
683                     '../../WebCore/inspector/front-end',
684                     'src/js',
685                     '<(SHARED_INTERMEDIATE_DIR)/webcore',
686                     '<(chromium_src_dir)/v8/tools',
687                 ],
688                 'outputs': ['<(PRODUCT_DIR)/resources/inspector/DevTools.js'],
689                 'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_search_path)', '<@(_outputs)'],
690             }],
691         },
692
693         {
694             'target_name': 'webkit_unit_tests',
695             'conditions': [
696                 # FIXME: make webkit unit tests working for multi dll build.
697                 ['inside_chromium_build==1 and OS=="win" and component=="shared_library"', {
698                     'type': 'none',
699                 }, {
700                     'type': 'executable',
701                     'msvs_guid': '7CEFE800-8403-418A-AD6A-2D52C6FC3EAD',
702                     'dependencies': [
703                         'webkit',
704                         '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
705                         '<(chromium_src_dir)/testing/gtest.gyp:gtest',
706                         '<(chromium_src_dir)/base/base.gyp:base',
707                         '<(chromium_src_dir)/base/base.gyp:base_i18n',
708                         '<(chromium_src_dir)/base/base.gyp:test_support_base',
709                         '<(chromium_src_dir)/gpu/gpu.gyp:gles2_c_lib',
710                     ],
711                     'include_dirs': [
712                         'public',
713                         'src',
714                     ],
715                     'sources': [
716                         'tests/DragImageTest.cpp',
717                         'tests/IDBBindingUtilitiesTest.cpp',
718                         'tests/IDBKeyPathTest.cpp',
719                         'tests/KeyboardTest.cpp',
720                         'tests/KURLTest.cpp',
721                         'tests/RunAllTests.cpp',
722                         # FIXME: This test is compile failing on mac.
723                         # 'tests/TilingDataTest.cpp',
724                     ],
725                     'conditions': [
726                         ['OS=="win"', {
727                             'sources': [
728                                 # FIXME: Port PopupMenuTest to Linux and Mac.
729                                 'tests/PopupMenuTest.cpp',
730                                 'tests/TransparencyWinTest.cpp',
731                                 'tests/UniscribeHelperTest.cpp',
732                             ],
733                         }],
734                         ['OS=="mac"', {
735                             'sources!': [
736                                 # FIXME: Port DragImageTest to Mac.
737                                 'tests/DragImageTest.cpp',
738                             ],
739                         }],
740                         ['OS=="linux"', {
741                             'sources': [
742                                 'tests/WebInputEventFactoryTestGtk.cpp',
743                             ],
744                             'include_dirs': [
745                                 'public/gtk',
746                             ],
747                         }],
748                     ],
749                 }],
750             ],
751         },
752         {
753             'target_name': 'ImageDiff',
754             'type': 'executable',
755             'dependencies': [
756                 'webkit',
757                 '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf',
758                 '<(chromium_src_dir)/gfx/gfx.gyp:gfx',
759             ],
760             'include_dirs': [
761                 '../../JavaScriptCore',
762                 '<(DEPTH)',
763             ],
764             'sources': [
765                 '../../WebKitTools/DumpRenderTree/chromium/ImageDiff.cpp',
766             ],
767         },
768         {
769             'target_name': 'DumpRenderTree',
770             'type': 'executable',
771             'mac_bundle': 1,
772             'dependencies': [
773                 'ImageDiff',
774                 'inspector_resources',
775                 'webkit',
776                 '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf_config',
777                 '<(chromium_src_dir)/third_party/icu/icu.gyp:icuuc',
778                 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:copy_npapi_layout_test_plugin',
779                 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_support',
780                 '<(chromium_src_dir)/gpu/gpu.gyp:gles2_c_lib'
781             ],
782             'include_dirs': [
783                 '.',
784                 '../../JavaScriptCore',
785                 '../../JavaScriptCore/wtf', # wtf/text/*.h refers headers in wtf/ without wtf/.
786                 '<(DEPTH)',
787             ],
788             'defines': [
789                 # Technically not a unit test but require functions available only to
790                 # unit tests.
791                 'UNIT_TEST',
792             ],
793             'sources': [
794                 '<@(drt_files)',
795             ],
796             'conditions': [
797                 ['OS=="win"', {
798                     'dependencies': ['LayoutTestHelper'],
799
800                     'resource_include_dirs': ['<(SHARED_INTERMEDIATE_DIR)/webkit'],
801                     'sources': [
802                         '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
803                         '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.rc',
804                         '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc',
805                         '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc',
806                     ],
807                     'conditions': [
808                         ['inside_chromium_build==1 and component=="shared_library"', {
809                             'sources': [
810                                 'src/ChromiumCurrentTime.cpp',
811                                 'src/ChromiumThreading.cpp',
812                             ],
813                             'include_dirs': [
814                                 'public',
815                             ],
816                             'dependencies': [
817                                 '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf',
818                             ],
819                         }],
820                     ],
821                     'copies': [{
822                         'destination': '<(PRODUCT_DIR)',
823                         'files': ['<(ahem_path)'],
824                     }],
825                 },{ # OS!="win"
826                     'sources/': [
827                         ['exclude', 'Win\\.cpp$'],
828                     ],
829                     'actions': [
830                         {
831                             'action_name': 'repack_locale',
832                             'variables': {
833                                 'repack_path': '<(chromium_src_dir)/tools/data_pack/repack.py',
834                                 'pak_inputs': [
835                                     '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
836                                     '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.pak',
837                                     '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
838                                     '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak',
839                             ]},
840                             'inputs': [
841                                 '<(repack_path)',
842                                 '<@(pak_inputs)',
843                             ],
844                             'outputs': [
845                                 '<(INTERMEDIATE_DIR)/repack/DumpRenderTree.pak',
846                             ],
847                             'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inputs)'],
848                             'process_outputs_as_mac_bundle_resources': 1,
849                         },
850                     ], # actions
851                 }],
852                 ['OS=="mac"', {
853                     'dependencies': ['LayoutTestHelper'],
854
855                     'mac_bundle_resources': [
856                         '<(ahem_path)',
857                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher100.ttf',
858                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher200.ttf',
859                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher300.ttf',
860                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher400.ttf',
861                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher500.ttf',
862                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher600.ttf',
863                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher700.ttf',
864                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher800.ttf',
865                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher900.ttf',
866                         '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
867                     ],
868                     # Workaround for http://code.google.com/p/gyp/issues/detail?id=160
869                     'copies': [{
870                         'destination': '<(PRODUCT_DIR)/DumpRenderTree.app/Contents/PlugIns/',
871                         'files': ['<(PRODUCT_DIR)/TestNetscapePlugIn.plugin/'],
872                     }],
873                 },{ # OS!="mac"
874                     'sources/': [
875                         # .mm is already excluded by common.gypi
876                         ['exclude', 'Mac\\.cpp$'],
877                     ]
878                 }],
879                 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
880                     'dependencies': [
881                         '<(chromium_src_dir)/build/linux/system.gyp:fontconfig',
882                         '<(chromium_src_dir)/build/linux/system.gyp:gtk',
883                     ],
884                     'include_dirs': [
885                         'public/gtk',
886                     ],
887                     'copies': [{
888                         'destination': '<(PRODUCT_DIR)',
889                         'files': [
890                             '<(ahem_path)',
891                             '../../WebKitTools/DumpRenderTree/chromium/fonts.conf',
892                             '<(INTERMEDIATE_DIR)/repack/DumpRenderTree.pak',
893                         ]
894                     }],
895                 },{ # OS!="linux" and OS!="freebsd" and OS!="openbsd" and OS!="solaris"
896                     'sources/': [
897                         ['exclude', '(Gtk|Linux)\\.cpp$']
898                     ]
899                 }],
900             ],
901         },
902     ], # targets
903     'conditions': [
904         ['OS=="win"', {
905             'targets': [{
906                 'target_name': 'LayoutTestHelper',
907                 'type': 'executable',
908                 'sources': ['../../WebKitTools/DumpRenderTree/chromium/LayoutTestHelperWin.cpp'],
909             }],
910         }],
911         ['OS=="mac"', {
912             'targets': [
913                 {
914                     'target_name': 'LayoutTestHelper',
915                     'type': 'executable',
916                     'sources': ['../../WebKitTools/DumpRenderTree/chromium/LayoutTestHelper.mm'],
917                     'link_settings': {
918                         'libraries': [
919                             '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
920                         ],
921                     },
922                 },
923             ],
924         }],
925     ], # conditions
926 }
927
928 # Local Variables:
929 # tab-width:2
930 # indent-tabs-mode:nil
931 # End:
932 # vim: set expandtab tabstop=2 shiftwidth=2: