OSDN Git Service

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