OSDN Git Service

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