OSDN Git Service

Merge WebKit at r61871: Initial merge by git.
[android-x86/external-webkit.git] / WebKit / chromium / WebKit.gyp
1 #
2 # Copyright (C) 2009 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         'features.gypi',
34         '../../WebKitTools/DumpRenderTree/DumpRenderTree.gypi',
35     ],
36     'variables': {
37         'webkit_target_type': 'static_library',
38         'conditions': [
39             # Location of the chromium src directory and target type is different
40             # if webkit is built inside chromium or as standalone project.
41             ['inside_chromium_build==0', {
42                 # Webkit is being built outside of the full chromium project.
43                 # e.g. via build-webkit --chromium
44                 'chromium_src_dir': '../../WebKit/chromium',
45             },{
46                 # WebKit is checked out in src/chromium/third_party/WebKit
47                 'chromium_src_dir': '../../../..',
48             }],
49         ],
50         'ahem_path': '../../WebKitTools/DumpRenderTree/qt/fonts/AHEM____.TTF',
51     },
52     'targets': [
53         {
54             'target_name': 'webkit',
55             'type': '<(webkit_target_type)',
56             'msvs_guid': '5ECEC9E5-8F23-47B6-93E0-C3B328B3BE65',
57             'dependencies': [
58                 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
59                 '<(chromium_src_dir)/skia/skia.gyp:skia',
60                 '<(chromium_src_dir)/third_party/npapi/npapi.gyp:npapi',
61             ],
62             'export_dependent_settings': [
63                 '<(chromium_src_dir)/skia/skia.gyp:skia',
64                 '<(chromium_src_dir)/third_party/npapi/npapi.gyp:npapi',
65             ],
66             'include_dirs': [
67                 'public',
68                 'src',
69             ],
70             'defines': [
71                 'WEBKIT_IMPLEMENTATION',
72             ],
73             'sources': [
74                 'public/gtk/WebInputEventFactory.h',
75                 'public/linux/WebFontRendering.h',
76                 'public/linux/WebFontRenderStyle.h',
77                 'public/linux/WebRenderTheme.h',
78                 'public/x11/WebScreenInfoFactory.h',
79                 'public/mac/WebInputEventFactory.h',
80                 'public/mac/WebSandboxSupport.h',
81                 'public/mac/WebScreenInfoFactory.h',
82                 'public/WebAccessibilityCache.h',
83                 'public/WebAccessibilityObject.h',
84                 'public/WebAccessibilityRole.h',
85                 'public/WebAnimationController.h',
86                 'public/WebApplicationCacheHost.h',
87                 'public/WebApplicationCacheHostClient.h',
88                 'public/WebBindings.h',
89                 'public/WebCache.h',
90                 'public/WebCanvas.h',
91                 'public/WebClipboard.h',
92                 'public/WebColor.h',
93                 'public/WebColorName.h',
94                 'public/WebCommon.h',
95                 'public/WebCommonWorkerClient.h',
96                 'public/WebCompositionCommand.h',
97                 'public/WebCompositionUnderline.h',
98                 'public/WebConsoleMessage.h',
99                 'public/WebContextMenuData.h',
100                 'public/WebCookie.h',
101                 'public/WebCookieJar.h',
102                 'public/WebCrossOriginPreflightResultCache.h',
103                 'public/WebCString.h',
104                 'public/WebCursorInfo.h',
105                 'public/WebDOMStringList.h',
106                 'public/WebData.h',
107                 'public/WebDatabase.h',
108                 'public/WebDatabaseObserver.h',
109                 'public/WebDataSource.h',
110                 'public/WebDevToolsAgent.h',
111                 'public/WebDevToolsAgentClient.h',
112                 'public/WebDevToolsFrontend.h',
113                 'public/WebDevToolsFrontendClient.h',
114                 'public/WebDevToolsMessageData.h',
115                 'public/WebDevToolsMessageTransport.h',
116                 'public/WebDocument.h',
117                 'public/WebDragData.h',
118                 'public/WebEditingAction.h',
119                 'public/WebElement.h',
120                 'public/WebEvent.h',
121                 'public/WebEventListener.h',
122                 'public/WebFileChooserCompletion.h',
123                 'public/WebFileChooserParams.h',
124                 'public/WebFileInfo.h',
125                 'public/WebFileSystem.h',
126                 'public/WebFindOptions.h',
127                 'public/WebFrame.h',
128                 'public/WebFrameClient.h',
129                 'public/WebFontCache.h',
130                 'public/WebFormControlElement.h',
131                 'public/WebFormElement.h',
132                 'public/WebGeolocationService.h',
133                 'public/WebGeolocationServiceBridge.h',
134                 'public/WebGeolocationServiceMock.h',
135                 'public/WebGlyphCache.h',
136                 'public/WebGLES2Context.h',
137                 'public/WebGraphicsContext3D.h',
138                 'public/WebHistoryItem.h',
139                 'public/WebHTTPBody.h',
140                 'public/WebImage.h',
141                 'public/WebImageDecoder.h',
142                 'public/WebIDBCallbacks.h',
143                 'public/WebIDBDatabase.h',
144                 'public/WebIDBDatabaseError.h',
145                 'public/WebIDBIndex.h',
146                 'public/WebIDBObjectStore.h',
147                 'public/WebIndexedDatabase.h',
148                 'public/WebInputElement.h',
149                 'public/WebInputEvent.h',
150                 'public/WebKit.h',
151                 'public/WebKitClient.h',
152                 'public/WebLabelElement.h',
153                 'public/WebLocalizedString.h',
154                 'public/WebMediaPlayer.h',
155                 'public/WebMediaPlayerAction.h',
156                 'public/WebMediaPlayerClient.h',
157                 'public/WebMenuItemInfo.h',
158                 'public/WebMessagePortChannel.h',
159                 'public/WebMessagePortChannelClient.h',
160                 'public/WebMimeRegistry.h',
161                 'public/WebMutationEvent.h',
162                 'public/WebNavigationType.h',
163                 'public/WebNode.h',
164                 'public/WebNodeCollection.h',
165                 'public/WebNodeList.h',
166                 'public/WebNonCopyable.h',
167                 'public/WebNotification.h',
168                 'public/WebNotificationPresenter.h',
169                 'public/WebNotificationPermissionCallback.h',
170                 'public/WebPageSerializer.h',
171                 'public/WebPageSerializerClient.h',
172                 'public/WebPasswordAutocompleteListener.h',
173                 'public/WebPasswordFormData.h',
174                 'public/WebPlugin.h',
175                 'public/WebPluginContainer.h',
176                 'public/WebPluginDocument.h',
177                 'public/WebPluginListBuilder.h',
178                 'public/WebPoint.h',
179                 'public/WebPopupMenu.h',
180                 'public/WebPopupMenuInfo.h',
181                 'public/WebPopupType.h',
182                 'public/WebPrivatePtr.h',
183                 'public/WebRange.h',
184                 'public/WebRect.h',
185                 'public/WebRegularExpression.h',
186                 'public/WebRuntimeFeatures.h',
187                 'public/WebScrollbar.h',
188                 'public/WebScrollbarClient.h',
189                 'public/WebScreenInfo.h',
190                 'public/WebScriptController.h',
191                 'public/WebScriptSource.h',
192                 'public/WebSearchableFormData.h',
193                 'public/WebSecurityOrigin.h',
194                 'public/WebSecurityPolicy.h',
195                 'public/WebSelectElement.h',
196                 'public/WebSerializedScriptValue.h',
197                 'public/WebSettings.h',
198                 'public/WebSharedWorker.h',
199                 'public/WebSharedWorkerRepository.h',
200                 'public/WebSize.h',
201                 'public/WebSocketStreamError.h',
202                 'public/WebSocketStreamHandle.h',
203                 'public/WebSocketStreamHandleClient.h',
204                 'public/WebStorageArea.h',
205                 'public/WebStorageEventDispatcher.h',
206                 'public/WebStorageNamespace.h',
207                 'public/WebString.h',
208                 'public/WebTextAffinity.h',
209                 'public/WebTextCaseSensitivity.h',
210                 'public/WebTextDirection.h',
211                 'public/WebTextInputType.h',
212                 'public/WebThemeEngine.h',
213                 'public/WebURL.h',
214                 'public/WebURLError.h',
215                 'public/WebURLLoader.h',
216                 'public/WebURLLoaderClient.h',
217                 'public/WebURLRequest.h',
218                 'public/WebURLResponse.h',
219                 'public/WebVector.h',
220                 'public/WebView.h',
221                 'public/WebViewClient.h',
222                 'public/WebWidget.h',
223                 'public/WebWidgetClient.h',
224                 'public/WebWorker.h',
225                 'public/WebWorkerClient.h',
226                 'public/win/WebInputEventFactory.h',
227                 'public/win/WebSandboxSupport.h',
228                 'public/win/WebScreenInfoFactory.h',
229                 'public/win/WebScreenInfoFactory.h',
230                 'src/APUAgentDelegate.h',
231                 'src/ApplicationCacheHost.cpp',
232                 'src/ApplicationCacheHostInternal.h',
233                 'src/AssertMatchingEnums.cpp',
234                 'src/AutocompletePopupMenuClient.cpp',
235                 'src/AutocompletePopupMenuClient.h',
236                 'src/AutoFillPopupMenuClient.cpp',
237                 'src/AutoFillPopupMenuClient.h',
238                 'src/BackForwardListClientImpl.cpp',
239                 'src/BackForwardListClientImpl.h',
240                 'src/BoundObject.cpp',
241                 'src/BoundObject.h',
242                 'src/ChromeClientImpl.cpp',
243                 'src/ChromeClientImpl.h',
244                 'src/ChromiumBridge.cpp',
245                 'src/ChromiumCurrentTime.cpp',
246                 'src/ChromiumThreading.cpp',
247                 'src/CompositionUnderlineBuilder.h',
248                 'src/CompositionUnderlineVectorBuilder.cpp',
249                 'src/CompositionUnderlineVectorBuilder.h',
250                 'src/ContextMenuClientImpl.cpp',
251                 'src/ContextMenuClientImpl.h',
252                 'src/DatabaseObserver.cpp',
253                 'src/DebuggerAgent.h',
254                 'src/DebuggerAgentImpl.cpp',
255                 'src/DebuggerAgentImpl.h',
256                 'src/DebuggerAgentManager.cpp',
257                 'src/DebuggerAgentManager.h',
258                 'src/DevToolsRPC.h',
259                 'src/DevToolsRPCJS.h',
260                 'src/DOMUtilitiesPrivate.cpp',
261                 'src/DOMUtilitiesPrivate.h',
262                 'src/DragClientImpl.cpp',
263                 'src/DragClientImpl.h',
264                 'src/DragScrollTimer.cpp',
265                 'src/DragScrollTimer.h',
266                 'src/EditorClientImpl.cpp',
267                 'src/EditorClientImpl.h',
268                 'src/EventListenerWrapper.cpp',
269                 'src/EventListenerWrapper.h',
270                 'src/FrameLoaderClientImpl.cpp',
271                 'src/FrameLoaderClientImpl.h',
272                 'src/GLES2Context.cpp',
273                 'src/gtk/WebFontInfo.cpp',
274                 'src/gtk/WebFontInfo.h',
275                 'src/gtk/WebInputEventFactory.cpp',
276                 'src/IDBCallbacksProxy.cpp',
277                 'src/IDBCallbacksProxy.h',
278                 'src/IDBDatabaseProxy.cpp',
279                 'src/IDBDatabaseProxy.h',
280                 'src/IDBIndexProxy.cpp',
281                 'src/IDBIndexProxy.h',
282                 'src/IDBObjectStoreProxy.cpp',
283                 'src/IDBObjectStoreProxy.h',
284                 'src/IndexedDatabaseProxy.cpp',
285                 'src/IndexedDatabaseProxy.h',
286                 'src/InspectorClientImpl.cpp',
287                 'src/InspectorClientImpl.h',
288                 'src/InspectorFrontendClientImpl.cpp',
289                 'src/InspectorFrontendClientImpl.h',
290                 'src/linux/WebFontRendering.cpp',
291                 'src/linux/WebFontRenderStyle.cpp',
292                 'src/linux/WebRenderTheme.cpp',
293                 'src/x11/WebScreenInfoFactory.cpp',
294                 'src/mac/WebInputEventFactory.mm',
295                 'src/mac/WebScreenInfoFactory.mm',
296                 'src/LocalizedStrings.cpp',
297                 'src/MediaPlayerPrivateChromium.cpp',
298                 'src/NotificationPresenterImpl.h',
299                 'src/NotificationPresenterImpl.cpp',
300                 'src/PlatformMessagePortChannel.cpp',
301                 'src/PlatformMessagePortChannel.h',
302                 'src/ProfilerAgent.h',
303                 'src/ProfilerAgentImpl.cpp',
304                 'src/ProfilerAgentImpl.h',
305                 'src/ResourceHandle.cpp',
306                 'src/SharedWorkerRepository.cpp',
307                 'src/SocketStreamHandle.cpp',
308                 'src/StorageAreaProxy.cpp',
309                 'src/StorageAreaProxy.h',
310                 'src/StorageEventDispatcherChromium.cpp',
311                 'src/StorageEventDispatcherImpl.cpp',
312                 'src/StorageEventDispatcherImpl.h',
313                 'src/StorageNamespaceProxy.cpp',
314                 'src/StorageNamespaceProxy.h',
315                 'src/SuggestionsPopupMenuClient.cpp',
316                 'src/SuggestionsPopupMenuClient.h',
317                 'src/TemporaryGlue.h',
318                 'src/ToolsAgent.h',
319                 'src/WebAccessibilityCache.cpp',
320                 'src/WebAccessibilityCacheImpl.cpp',
321                 'src/WebAccessibilityCacheImpl.h',
322                 'src/WebAccessibilityObject.cpp',
323                 'src/WebAnimationControllerImpl.cpp',
324                 'src/WebAnimationControllerImpl.h',
325                 'src/WebBindings.cpp',
326                 'src/WebCache.cpp',
327                 'src/WebColor.cpp',
328                 'src/WebCommon.cpp',
329                 'src/WebCrossOriginPreflightResultCache.cpp',
330                 'src/WebCString.cpp',
331                 'src/WebCursorInfo.cpp',
332                 'src/WebDOMStringList.cpp',
333                 'src/WebData.cpp',
334                 'src/WebDatabase.cpp',
335                 'src/WebDataSourceImpl.cpp',
336                 'src/WebDataSourceImpl.h',
337                 'src/WebDevToolsAgentImpl.cpp',
338                 'src/WebDevToolsAgentImpl.h',
339                 'src/WebDevToolsFrontendImpl.cpp',
340                 'src/WebDevToolsFrontendImpl.h',
341                 'src/WebDocument.cpp',
342                 'src/WebDragData.cpp',
343                 'src/WebElement.cpp',
344                 'src/WebEntities.cpp',
345                 'src/WebEntities.h',
346                 'src/WebEvent.cpp',
347                 'src/WebEventListener.cpp',
348                 'src/WebEventListenerPrivate.cpp',
349                 'src/WebEventListenerPrivate.h',
350                 'src/WebFileChooserCompletionImpl.cpp',
351                 'src/WebFileChooserCompletionImpl.h',
352                 'src/WebFontCache.cpp',
353                 'src/WebFormControlElement.cpp',
354                 'src/WebFormElement.cpp',
355                 'src/WebFrameImpl.cpp',
356                 'src/WebFrameImpl.h',
357                 'src/WebGeolocationServiceBridgeImpl.cpp',
358                 'src/WebGeolocationServiceBridgeImpl.h',
359                 'src/WebGeolocationServiceMock.cpp',
360                 'src/WebGlyphCache.cpp',
361                 'src/WebGraphicsContext3D.cpp',
362                 'src/WebGraphicsContext3DDefaultImpl.cpp',
363                 'src/WebGraphicsContext3DDefaultImpl.h',
364                 'src/WebHistoryItem.cpp',
365                 'src/WebHTTPBody.cpp',
366                 'src/WebIDBCallbacksImpl.cpp',
367                 'src/WebIDBCallbacksImpl.h',
368                 'src/WebIDBDatabaseError.cpp',
369                 'src/WebIDBDatabaseImpl.cpp',
370                 'src/WebIDBDatabaseImpl.h',
371                 'src/WebIDBIndexImpl.cpp',
372                 'src/WebIDBIndexImpl.h',
373                 'src/WebIDBObjectStoreImpl.cpp',
374                 'src/WebIDBObjectStoreImpl.h',
375                 'src/WebImageCG.cpp',
376                 'src/WebImageDecoder.cpp',
377                 'src/WebImageSkia.cpp',
378                 'src/WebIndexedDatabaseImpl.cpp',
379                 'src/WebIndexedDatabaseImpl.h',
380                 'src/WebInputElement.cpp',
381                 'src/WebInputEvent.cpp',
382                 'src/WebInputEventConversion.cpp',
383                 'src/WebInputEventConversion.h',
384                 'src/WebKit.cpp',
385                 'src/WebLabelElement.cpp',
386                 'src/WebMediaPlayerClientImpl.cpp',
387                 'src/WebMediaPlayerClientImpl.h',
388                 'src/WebMutationEvent.cpp',
389                 'src/WebNode.cpp',
390                 'src/WebNodeCollection.cpp',
391                 'src/WebNodeList.cpp',
392                 'src/WebNotification.cpp',
393                 'src/WebPageSerializer.cpp',
394                 'src/WebPageSerializerImpl.cpp',
395                 'src/WebPageSerializerImpl.h',
396                 'src/WebPasswordFormData.cpp',
397                 'src/WebPasswordFormUtils.cpp',
398                 'src/WebPasswordFormUtils.h',
399                 'src/WebPluginContainerImpl.h',
400                 'src/WebPluginContainerImpl.cpp',
401                 'src/WebPluginDocument.cpp',
402                 'src/WebPluginListBuilderImpl.cpp',
403                 'src/WebPluginListBuilderImpl.h',
404                 'src/WebPluginLoadObserver.cpp',
405                 'src/WebPluginLoadObserver.h',
406                 'src/WebPopupMenuImpl.cpp',
407                 'src/WebPopupMenuImpl.h',
408                 'src/WebRange.cpp',
409                 'src/WebRegularExpression.cpp',
410                 'src/WebRuntimeFeatures.cpp',
411                 'src/WebScriptController.cpp',
412                 'src/WebScrollbarImpl.cpp',
413                 'src/WebScrollbarImpl.h',
414                 'src/WebSearchableFormData.cpp',
415                 'src/WebSecurityOrigin.cpp',
416                 'src/WebSecurityPolicy.cpp',
417                 'src/WebSelectElement.cpp',
418                 'src/WebSerializedScriptValue.cpp',
419                 'src/WebSettingsImpl.cpp',
420                 'src/WebSettingsImpl.h',
421                 'src/WebSharedWorkerImpl.cpp',
422                 'src/WebSharedWorkerImpl.h',
423                 'src/WebStorageAreaImpl.cpp',
424                 'src/WebStorageAreaImpl.h',
425                 'src/WebStorageEventDispatcherImpl.cpp',
426                 'src/WebStorageEventDispatcherImpl.h',
427                 'src/WebStorageNamespaceImpl.cpp',
428                 'src/WebStorageNamespaceImpl.h',
429                 'src/WebString.cpp',
430                 'src/WebURL.cpp',
431                 'src/WebURLRequest.cpp',
432                 'src/WebURLRequestPrivate.h',
433                 'src/WebURLResponse.cpp',
434                 'src/WebURLResponsePrivate.h',
435                 'src/WebURLError.cpp',
436                 'src/WebViewImpl.cpp',
437                 'src/WebViewImpl.h',
438                 'src/WebWorkerBase.cpp',
439                 'src/WebWorkerBase.h',
440                 'src/WebWorkerClientImpl.cpp',
441                 'src/WebWorkerClientImpl.h',
442                 'src/WebWorkerImpl.cpp',
443                 'src/WebWorkerImpl.h',
444                 'src/WrappedResourceRequest.h',
445                 'src/WrappedResourceResponse.h',
446                 'src/win/WebInputEventFactory.cpp',
447                 'src/win/WebScreenInfoFactory.cpp',
448             ],
449             'conditions': [
450                 ['OS=="linux" or OS=="freebsd"', {
451                     'dependencies': [
452                         '<(chromium_src_dir)/build/linux/system.gyp:fontconfig',
453                         '<(chromium_src_dir)/build/linux/system.gyp:gtk',
454                         '<(chromium_src_dir)/build/linux/system.gyp:x11',
455                     ],
456                     'include_dirs': [
457                         'public/x11',
458                         'public/gtk',
459                         'public/linux',
460                     ],
461                 }, { # else: OS!="linux" and OS!="freebsd"
462                     'sources/': [
463                         ['exclude', '/gtk/'],
464                         ['exclude', '/x11/'],
465                         ['exclude', '/linux/'],
466                     ],
467                 }],
468                 ['OS=="mac"', {
469                     'include_dirs': [
470                         'public/mac',
471                     ],
472                     'sources/': [
473                         ['exclude', 'Skia\\.cpp$'],
474                     ],
475                     'variables': {
476                         # FIXME: Turn on warnings on other platforms and for
477                         # other targets.
478                         'chromium_code': 1,
479                     }
480                 }, { # else: OS!="mac"
481                     'sources/': [
482                         ['exclude', '/mac/'],
483                         ['exclude', 'CG\\.cpp$'],
484                     ],
485                 }],
486                 ['OS=="win"', {
487                     'include_dirs': [
488                         'public/win',
489                     ],
490                 }, { # else: OS!="win"
491                     'sources/': [['exclude', '/win/']],
492                 }],
493                 ['"ENABLE_3D_CANVAS=1" in feature_defines', {
494                     # Conditionally compile in GLEW and our GraphicsContext3D implementation.
495                     'sources+': [
496                         'src/GraphicsContext3D.cpp',
497                         '<(chromium_src_dir)/third_party/glew/src/glew.c'
498                     ],
499                     'include_dirs+': [
500                         '<(chromium_src_dir)/third_party/glew/include'
501                     ],
502                     'defines+': [
503                         'GLEW_STATIC=1',
504                         'GLEW_NO_GLU=1',
505                     ],
506                     'conditions': [
507                         ['OS=="win"', {
508                             'link_settings': {
509                                 'libraries': [
510                                     '-lopengl32.lib',
511                                 ],
512                             },
513                         }],
514                         ['OS=="mac"', {
515                             'link_settings': {
516                                 'libraries': [
517                                     '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
518                                 ],
519                             },
520                         }],
521                     ],
522                 }],
523             ],
524         },
525         {
526             'target_name': 'webkit_unit_tests',
527             'type': 'executable',
528             'msvs_guid': '7CEFE800-8403-418A-AD6A-2D52C6FC3EAD',
529             'dependencies': [
530                 'webkit',
531                 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
532                 '<(chromium_src_dir)/testing/gtest.gyp:gtest',
533                 '<(chromium_src_dir)/base/base.gyp:base',
534                 '<(chromium_src_dir)/base/base.gyp:base_i18n',
535                 '<(chromium_src_dir)/gpu/gpu.gyp:gles2_c_lib',
536             ],
537             'include_dirs': [
538                 'public',
539                 'src',
540             ],
541             'sources': [
542                 'tests/DragImageTest.cpp',
543                 'tests/KeyboardTest.cpp',
544                 'tests/KURLTest.cpp',
545                 'tests/RunAllTests.cpp',
546             ],
547             'conditions': [
548                 ['OS=="win"', {
549                     'sources': [
550                         # FIXME: Port PopupMenuTest to Linux and Mac.
551                         'tests/PopupMenuTest.cpp',
552                         'tests/TransparencyWinTest.cpp',
553                         'tests/UniscribeHelperTest.cpp',
554                     ],
555                 }],
556                 ['OS=="mac"', {
557                     'sources!': [
558                         # FIXME: Port DragImageTest to Mac.
559                         'tests/DragImageTest.cpp',
560                     ],
561                 }],
562             ],
563         },
564         {
565             'target_name': 'ImageDiff',
566             'type': 'executable',
567             'dependencies': [
568                 'webkit',
569                 '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf',
570                 '<(chromium_src_dir)/gfx/gfx.gyp:gfx',
571             ],
572             'include_dirs': [
573                 '../../JavaScriptCore',
574                 '<(DEPTH)',
575             ],
576             'sources': [
577                 '../../WebKitTools/DumpRenderTree/chromium/ImageDiff.cpp',
578             ],
579         },
580         {
581             'target_name': 'DumpRenderTree',
582             'type': 'executable',
583             'mac_bundle': 1,
584             'dependencies': [
585                 'webkit',
586                 '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf_config',
587                 '<(chromium_src_dir)/third_party/icu/icu.gyp:icuuc',
588                 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:npapi_layout_test_plugin',
589                 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_support',
590                 '<(chromium_src_dir)/gpu/gpu.gyp:gles2_c_lib'
591             ],
592             'include_dirs': [
593                 '.',
594                 '../../JavaScriptCore',
595                 '../../JavaScriptCore/wtf', # wtf/text/*.h refers headers in wtf/ without wtf/.
596                 '<(DEPTH)',
597             ],
598             'defines': [
599                 # Technically not a unit test but require functions available only to
600                 # unit tests.
601                 'UNIT_TEST',
602             ],
603             'sources': [
604                 '<@(drt_files)',
605             ],
606             'conditions': [
607                 ['OS=="win"', {
608                     'dependencies': ['LayoutTestHelper'],
609
610                     'resource_include_dirs': ['<(SHARED_INTERMEDIATE_DIR)/webkit'],
611                     'sources': [
612                         '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
613                         '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.rc',
614                         '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc',
615                         '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc',
616                     ],
617                     'copies': [{
618                         'destination': '<(PRODUCT_DIR)',
619                         'files': ['<(ahem_path)'],
620                     }, {
621                         # This should really be done in the 'npapi_layout_test_plugin'
622                         # target, but the current VS generator handles 'copies'
623                         # settings as AdditionalDependencies, which means that
624                         # when it's over there, it tries to do the copy *before*
625                         # the file is built, instead of after.  We work around this
626                         # by attaching the copy here, since it depends on that
627                         # target.
628                         'destination': '<(PRODUCT_DIR)/plugins',
629                         'files': ['<(PRODUCT_DIR)/npapi_layout_test_plugin.dll'],
630                     }],
631                 },{ # OS!="win"
632                     'sources/': [
633                         ['exclude', 'Win\\.cpp$'],
634                     ],
635                     'actions': [
636                         {
637                             'action_name': 'repack_locale',
638                             'variables': {
639                                 'repack_path': '<(chromium_src_dir)/tools/data_pack/repack.py',
640                                 'pak_inputs': [
641                                     '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
642                                     '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.pak',
643                                     '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
644                                     '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak',
645                             ]},
646                             'inputs': [
647                                 '<(repack_path)',
648                                 '<@(pak_inputs)',
649                             ],
650                             'outputs': [
651                                 '<(INTERMEDIATE_DIR)/repack/DumpRenderTree.pak',
652                             ],
653                             'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inputs)'],
654                             'process_outputs_as_mac_bundle_resources': 1,
655                         },
656                     ], # actions
657                 }],
658                 ['OS=="mac"', {
659                     'dependencies': ['LayoutTestHelper'],
660
661                     'mac_bundle_resources': [
662                         '<(ahem_path)',
663                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher100.ttf',
664                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher200.ttf',
665                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher300.ttf',
666                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher400.ttf',
667                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher500.ttf',
668                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher600.ttf',
669                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher700.ttf',
670                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher800.ttf',
671                         '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher900.ttf',
672                         '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
673                     ],
674                     'copies': [{
675                         'destination': '<(PRODUCT_DIR)/DumpRenderTree.app/Contents/PlugIns/',
676                         'files': ['<(PRODUCT_DIR)/TestNetscapePlugIn.plugin/'],
677                     }],
678                 },{ # OS!="mac"
679                     'sources/': [
680                         # .mm is already excluded by common.gypi
681                         ['exclude', 'Mac\\.cpp$'],
682                     ]
683                 }],
684                 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
685                     'copies': [{
686                         'destination': '<(PRODUCT_DIR)',
687                         'files': [
688                             '<(ahem_path)',
689                             '../../WebKitTools/DumpRenderTree/chromium/fonts.conf',
690                             '<(INTERMEDIATE_DIR)/repack/DumpRenderTree.pak',
691                         ]
692                     }, {
693                         'destination': '<(PRODUCT_DIR)/plugins',
694                         'files': ['<(PRODUCT_DIR)/libnpapi_layout_test_plugin.so'],
695                     }],
696                 },{ # OS!="linux" and OS!="freebsd" and OS!="openbsd" and OS!="solaris"
697                     'sources/': [
698                         ['exclude', '(Gtk|Linux)\\.cpp$']
699                     ]
700                 }],
701             ],
702         },
703     ], # targets
704     'conditions': [
705         ['OS=="win"', {
706             'targets': [{
707                 'target_name': 'LayoutTestHelper',
708                 'type': 'executable',
709                 'sources': ['../../WebKitTools/DumpRenderTree/chromium/LayoutTestHelperWin.cpp'],
710             }],
711         }],
712         ['OS=="mac"', {
713             'targets': [
714                 {
715                     'target_name': 'LayoutTestHelper',
716                     'type': 'executable',
717                     'sources': ['../../WebKitTools/DumpRenderTree/chromium/LayoutTestHelper.mm'],
718                     'link_settings': {
719                         'libraries': [
720                             '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
721                         ],
722                     },
723                 },
724             ],
725         }],
726     ], # conditions
727 }
728
729 # Local Variables:
730 # tab-width:2
731 # indent-tabs-mode:nil
732 # End:
733 # vim: set expandtab tabstop=2 shiftwidth=2: