2 # Copyright (C) 2010 Google Inc. All rights reserved.
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
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
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.
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.
33 '../../WebCore/WebCore.gypi',
34 '../../WebKitTools/DumpRenderTree/DumpRenderTree.gypi',
39 'webkit_target_type': 'static_library',
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',
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.
51 '<@(devtools_css_files)',
52 '<@(devtools_js_files)',
55 # WebKit is checked out in src/chromium/third_party/WebKit
56 'chromium_src_dir': '../../../..',
59 '<@(devtools_css_files)',
60 '<@(devtools_js_files)',
64 'ahem_path': '../../WebKitTools/DumpRenderTree/qt/fonts/AHEM____.TTF',
66 # If debug_devtools is set to 1, JavaScript files for DevTools are
67 # stored as is. Otherwise, a concatenated file is stored.
72 'target_name': 'webkit',
73 'msvs_guid': '5ECEC9E5-8F23-47B6-93E0-C3B328B3BE65',
75 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
76 '<(chromium_src_dir)/app/app.gyp:app_base', # For GLContext
77 '<(chromium_src_dir)/skia/skia.gyp:skia',
78 '<(chromium_src_dir)/third_party/npapi/npapi.gyp:npapi',
80 'export_dependent_settings': [
81 '<(chromium_src_dir)/skia/skia.gyp:skia',
82 '<(chromium_src_dir)/third_party/npapi/npapi.gyp:npapi',
89 'WEBKIT_IMPLEMENTATION=1',
92 'public/gtk/WebInputEventFactory.h',
93 'public/linux/WebFontRendering.h',
94 'public/linux/WebFontRenderStyle.h',
95 'public/linux/WebRenderTheme.h',
96 'public/x11/WebScreenInfoFactory.h',
97 'public/mac/WebInputEventFactory.h',
98 'public/mac/WebSandboxSupport.h',
99 'public/mac/WebScreenInfoFactory.h',
100 'public/WebAccessibilityCache.h',
101 'public/WebAccessibilityObject.h',
102 'public/WebAccessibilityRole.h',
103 'public/WebAnimationController.h',
104 'public/WebApplicationCacheHost.h',
105 'public/WebApplicationCacheHostClient.h',
106 'public/WebAttribute.h',
107 'public/WebBindings.h',
108 'public/WebBlobData.h',
109 'public/WebBlobRegistry.h',
110 'public/WebBlobStorageData.h',
112 'public/WebCanvas.h',
113 'public/WebClipboard.h',
115 'public/WebColorName.h',
116 'public/WebCommon.h',
117 'public/WebCommonWorkerClient.h',
118 'public/WebCompositionUnderline.h',
119 'public/WebConsoleMessage.h',
120 'public/WebContextMenuData.h',
121 'public/WebCookie.h',
122 'public/WebCookieJar.h',
123 'public/WebCrossOriginPreflightResultCache.h',
124 'public/WebCString.h',
125 'public/WebCursorInfo.h',
126 'public/WebDOMEvent.h',
127 'public/WebDOMEventListener.h',
128 'public/WebDOMMouseEvent.h',
129 'public/WebDOMMutationEvent.h',
130 'public/WebDOMStringList.h',
132 'public/WebDatabase.h',
133 'public/WebDatabaseObserver.h',
134 'public/WebDataSource.h',
135 'public/WebDevToolsAgent.h',
136 'public/WebDevToolsAgentClient.h',
137 'public/WebDevToolsFrontend.h',
138 'public/WebDevToolsFrontendClient.h',
139 'public/WebDeviceOrientation.h',
140 'public/WebDeviceOrientationClient.h',
141 'public/WebDeviceOrientationClientMock.h',
142 'public/WebDeviceOrientationController.h',
143 'public/WebDocument.h',
144 'public/WebDocumentType.h',
145 'public/WebDragData.h',
146 'public/WebEditingAction.h',
147 'public/WebElement.h',
148 'public/WebFileChooserCompletion.h',
149 'public/WebFileChooserParams.h',
150 'public/WebFileError.h',
151 'public/WebFileInfo.h',
152 'public/WebFileSystem.h',
153 'public/WebFileSystemCallbacks.h',
154 'public/WebFileSystemEntry.h',
155 'public/WebFileUtilities.h',
156 'public/WebFindOptions.h',
157 'public/WebFloatPoint.h',
158 'public/WebFloatRect.h',
160 'public/WebFontDescription.h',
162 'public/WebFrameClient.h',
163 'public/WebFontCache.h',
164 'public/WebFormControlElement.h',
165 'public/WebFormElement.h',
166 'public/WebGeolocationService.h',
167 'public/WebGeolocationServiceBridge.h',
168 'public/WebGeolocationServiceMock.h',
169 'public/WebGlyphCache.h',
170 'public/WebGLES2Context.h',
171 'public/WebGraphicsContext3D.h',
172 'public/WebHistoryItem.h',
173 'public/WebHTTPBody.h',
175 'public/WebImageDecoder.h',
176 'public/WebIDBCallbacks.h',
177 'public/WebIDBCursor.h',
178 'public/WebIDBDatabase.h',
179 'public/WebIDBDatabaseError.h',
180 'public/WebIDBFactory.h',
181 'public/WebIDBKeyRange.h',
182 'public/WebIDBIndex.h',
183 'public/WebIDBKey.h',
184 'public/WebIDBKeyPath.h',
185 'public/WebIDBObjectStore.h',
186 'public/WebIDBTransaction.h',
187 'public/WebIDBTransactionCallbacks.h',
188 'public/WebInputElement.h',
189 'public/WebInputEvent.h',
191 'public/WebKitClient.h',
192 'public/WebLabelElement.h',
193 'public/WebLocalizedString.h',
194 'public/WebMediaElement.h',
195 'public/WebMediaPlayer.h',
196 'public/WebMediaPlayerAction.h',
197 'public/WebMediaPlayerClient.h',
198 'public/WebMenuItemInfo.h',
199 'public/WebMessagePortChannel.h',
200 'public/WebMessagePortChannelClient.h',
201 'public/WebMimeRegistry.h',
202 'public/WebNamedNodeMap.h',
203 'public/WebNavigationType.h',
205 'public/WebNodeCollection.h',
206 'public/WebNodeList.h',
207 'public/WebNonCopyable.h',
208 'public/WebNotification.h',
209 'public/WebNotificationPresenter.h',
210 'public/WebNotificationPermissionCallback.h',
211 'public/WebOptionElement.h',
212 'public/WebPageSerializer.h',
213 'public/WebPageSerializerClient.h',
214 'public/WebPasswordAutocompleteListener.h',
215 'public/WebPasswordFormData.h',
216 'public/WebPlugin.h',
217 'public/WebPluginContainer.h',
218 'public/WebPluginDocument.h',
219 'public/WebPluginListBuilder.h',
221 'public/WebPopupMenu.h',
222 'public/WebPopupMenuInfo.h',
223 'public/WebPopupType.h',
224 'public/WebPrivatePtr.h',
225 'public/WebPrivateOwnPtr.h',
228 'public/WebRegularExpression.h',
229 'public/WebRuntimeFeatures.h',
230 'public/WebScrollbar.h',
231 'public/WebScrollbarClient.h',
232 'public/WebScreenInfo.h',
233 'public/WebScriptController.h',
234 'public/WebScriptSource.h',
235 'public/WebSearchableFormData.h',
236 'public/WebSecurityOrigin.h',
237 'public/WebSecurityPolicy.h',
238 'public/WebSelectElement.h',
239 'public/WebSerializedScriptValue.h',
240 'public/WebSettings.h',
241 'public/WebSharedWorker.h',
242 'public/WebSharedWorkerRepository.h',
244 'public/WebSocketStreamError.h',
245 'public/WebSocketStreamHandle.h',
246 'public/WebSocketStreamHandleClient.h',
247 'public/WebSpeechInputController.h',
248 'public/WebSpeechInputControllerMock.h',
249 'public/WebSpeechInputListener.h',
250 'public/WebStorageArea.h',
251 'public/WebStorageEventDispatcher.h',
252 'public/WebStorageNamespace.h',
253 'public/WebString.h',
254 'public/WebTextAffinity.h',
255 'public/WebTextCaseSensitivity.h',
256 'public/WebTextDirection.h',
257 'public/WebTextInputType.h',
258 'public/WebTextRun.h',
259 'public/WebThemeEngine.h',
261 'public/WebURLError.h',
262 'public/WebURLLoader.h',
263 'public/WebURLLoadTiming.h',
264 'public/WebURLLoaderClient.h',
265 'public/WebURLRequest.h',
266 'public/WebURLResponse.h',
267 'public/WebVector.h',
269 'public/WebViewClient.h',
270 'public/WebWidget.h',
271 'public/WebWidgetClient.h',
272 'public/WebWorker.h',
273 'public/WebWorkerClient.h',
274 'public/win/WebInputEventFactory.h',
275 'public/win/WebSandboxSupport.h',
276 'public/win/WebScreenInfoFactory.h',
277 'public/win/WebScreenInfoFactory.h',
278 'src/ApplicationCacheHost.cpp',
279 'src/ApplicationCacheHostInternal.h',
280 'src/AssertMatchingEnums.cpp',
281 'src/AsyncFileSystemChromium.cpp',
282 'src/AsyncFileSystemChromium.h',
283 'src/AutoFillPopupMenuClient.cpp',
284 'src/AutoFillPopupMenuClient.h',
285 'src/BackForwardListClientImpl.cpp',
286 'src/BackForwardListClientImpl.h',
287 'src/BlobRegistryProxy.cpp',
288 'src/BlobRegistryProxy.h',
289 'src/BoundObject.cpp',
291 'src/ChromeClientImpl.cpp',
292 'src/ChromeClientImpl.h',
293 'src/ChromiumBridge.cpp',
294 'src/ChromiumCurrentTime.cpp',
295 'src/ChromiumThreading.cpp',
296 'src/CompositionUnderlineBuilder.h',
297 'src/CompositionUnderlineVectorBuilder.cpp',
298 'src/CompositionUnderlineVectorBuilder.h',
299 'src/ContextMenuClientImpl.cpp',
300 'src/ContextMenuClientImpl.h',
301 'src/DatabaseObserver.cpp',
302 'src/DebuggerAgentImpl.cpp',
303 'src/DebuggerAgentImpl.h',
304 'src/DebuggerAgentManager.cpp',
305 'src/DebuggerAgentManager.h',
306 'src/DeviceOrientationClientProxy.cpp',
307 'src/DeviceOrientationClientProxy.h',
308 'src/DOMUtilitiesPrivate.cpp',
309 'src/DOMUtilitiesPrivate.h',
310 'src/DragClientImpl.cpp',
311 'src/DragClientImpl.h',
312 'src/DragScrollTimer.cpp',
313 'src/DragScrollTimer.h',
314 'src/EditorClientImpl.cpp',
315 'src/EditorClientImpl.h',
316 'src/EventListenerWrapper.cpp',
317 'src/EventListenerWrapper.h',
318 'src/FrameLoaderClientImpl.cpp',
319 'src/FrameLoaderClientImpl.h',
320 'src/FrameNetworkingContextImpl.h',
321 'src/GLES2Context.cpp',
322 'src/GLES2ContextInternal.cpp',
323 'src/GLES2ContextInternal.h',
324 'src/GraphicsContext3D.cpp',
325 'src/gtk/WebFontInfo.cpp',
326 'src/gtk/WebFontInfo.h',
327 'src/gtk/WebInputEventFactory.cpp',
328 'src/IDBCallbacksProxy.cpp',
329 'src/IDBCallbacksProxy.h',
330 'src/IDBCursorBackendProxy.cpp',
331 'src/IDBCursorBackendProxy.h',
332 'src/IDBDatabaseProxy.cpp',
333 'src/IDBDatabaseProxy.h',
334 'src/IDBFactoryBackendProxy.cpp',
335 'src/IDBFactoryBackendProxy.h',
336 'src/IDBIndexBackendProxy.cpp',
337 'src/IDBIndexBackendProxy.h',
338 'src/IDBObjectStoreProxy.cpp',
339 'src/IDBObjectStoreProxy.h',
340 'src/IDBTransactionBackendProxy.cpp',
341 'src/IDBTransactionBackendProxy.h',
342 'src/IDBTransactionCallbacksProxy.cpp',
343 'src/IDBTransactionCallbacksProxy.h',
344 'src/InspectorClientImpl.cpp',
345 'src/InspectorClientImpl.h',
346 'src/InspectorFrontendClientImpl.cpp',
347 'src/InspectorFrontendClientImpl.h',
348 'src/linux/WebFontRendering.cpp',
349 'src/linux/WebFontRenderStyle.cpp',
350 'src/linux/WebRenderTheme.cpp',
351 'src/x11/WebScreenInfoFactory.cpp',
352 'src/mac/WebInputEventFactory.mm',
353 'src/mac/WebScreenInfoFactory.mm',
354 'src/LocalFileSystemChromium.cpp',
355 'src/LocalizedStrings.cpp',
356 'src/MediaPlayerPrivateChromium.cpp',
357 'src/NotificationPresenterImpl.h',
358 'src/NotificationPresenterImpl.cpp',
359 'src/PlatformMessagePortChannel.cpp',
360 'src/PlatformMessagePortChannel.h',
361 'src/ResourceHandle.cpp',
362 'src/SharedWorkerRepository.cpp',
363 'src/SocketStreamHandle.cpp',
364 'src/SpeechInputClientImpl.cpp',
365 'src/SpeechInputClientImpl.h',
366 'src/StorageAreaProxy.cpp',
367 'src/StorageAreaProxy.h',
368 'src/StorageEventDispatcherChromium.cpp',
369 'src/StorageEventDispatcherImpl.cpp',
370 'src/StorageEventDispatcherImpl.h',
371 'src/StorageNamespaceProxy.cpp',
372 'src/StorageNamespaceProxy.h',
373 'src/TemporaryGlue.h',
374 'src/VideoFrameChromiumImpl.cpp',
375 'src/VideoFrameChromiumImpl.h',
376 'src/WebAccessibilityCache.cpp',
377 'src/WebAccessibilityCacheImpl.cpp',
378 'src/WebAccessibilityCacheImpl.h',
379 'src/WebAccessibilityObject.cpp',
380 'src/WebAnimationControllerImpl.cpp',
381 'src/WebAnimationControllerImpl.h',
382 'src/WebAttribute.cpp',
383 'src/WebBindings.cpp',
384 'src/WebBlobData.cpp',
385 'src/WebBlobStorageData.cpp',
389 'src/WebCrossOriginPreflightResultCache.cpp',
390 'src/WebCString.cpp',
391 'src/WebCursorInfo.cpp',
392 'src/WebDOMEvent.cpp',
393 'src/WebDOMEventListener.cpp',
394 'src/WebDOMEventListenerPrivate.cpp',
395 'src/WebDOMEventListenerPrivate.h',
396 'src/WebDOMMouseEvent.cpp',
397 'src/WebDOMMutationEvent.cpp',
398 'src/WebDOMStringList.cpp',
400 'src/WebDatabase.cpp',
401 'src/WebDataSourceImpl.cpp',
402 'src/WebDataSourceImpl.h',
403 'src/WebDevToolsAgentImpl.cpp',
404 'src/WebDevToolsAgentImpl.h',
405 'src/WebDevToolsFrontendImpl.cpp',
406 'src/WebDevToolsFrontendImpl.h',
407 'src/WebDeviceOrientation.cpp',
408 'src/WebDeviceOrientationClientMock.cpp',
409 'src/WebDeviceOrientationController.cpp',
410 'src/WebDocument.cpp',
411 'src/WebDocumentType.cpp',
412 'src/WebDragData.cpp',
413 'src/WebElement.cpp',
414 'src/WebEntities.cpp',
416 'src/WebFileChooserCompletionImpl.cpp',
417 'src/WebFileChooserCompletionImpl.h',
418 'src/WebFileSystemCallbacksImpl.cpp',
419 'src/WebFileSystemCallbacksImpl.h',
420 'src/WebFontCache.cpp',
421 'src/WebFontDescription.cpp',
422 'src/WebFontImpl.cpp',
424 'src/WebFormControlElement.cpp',
425 'src/WebFormElement.cpp',
426 'src/WebFrameImpl.cpp',
427 'src/WebFrameImpl.h',
428 'src/WebGeolocationServiceBridgeImpl.cpp',
429 'src/WebGeolocationServiceBridgeImpl.h',
430 'src/WebGeolocationServiceMock.cpp',
431 'src/WebGlyphCache.cpp',
432 'src/WebGraphicsContext3D.cpp',
433 'src/WebGraphicsContext3DDefaultImpl.cpp',
434 'src/WebGraphicsContext3DDefaultImpl.h',
435 'src/WebHistoryItem.cpp',
436 'src/WebHTTPBody.cpp',
437 'src/WebIDBCallbacksImpl.cpp',
438 'src/WebIDBCallbacksImpl.h',
439 'src/WebIDBCursorImpl.cpp',
440 'src/WebIDBCursorImpl.h',
441 'src/WebIDBDatabaseError.cpp',
442 'src/WebIDBDatabaseImpl.cpp',
443 'src/WebIDBDatabaseImpl.h',
444 'src/WebIDBFactoryImpl.cpp',
445 'src/WebIDBFactoryImpl.h',
446 'src/WebIDBIndexImpl.cpp',
447 'src/WebIDBIndexImpl.h',
449 'src/WebIDBKeyPath.cpp',
450 'src/WebIDBKeyRange.cpp',
451 'src/WebIDBObjectStoreImpl.cpp',
452 'src/WebIDBObjectStoreImpl.h',
453 'src/WebIDBTransactionImpl.cpp',
454 'src/WebIDBTransactionImpl.h',
455 'src/WebIDBTransactionCallbacksImpl.cpp',
456 'src/WebIDBTransactionCallbacksImpl.h',
457 'src/WebImageCG.cpp',
458 'src/WebImageDecoder.cpp',
459 'src/WebImageSkia.cpp',
460 'src/WebInputElement.cpp',
461 'src/WebInputEvent.cpp',
462 'src/WebInputEventConversion.cpp',
463 'src/WebInputEventConversion.h',
465 'src/WebLabelElement.cpp',
466 'src/WebMediaElement.cpp',
467 'src/WebMediaPlayerClientImpl.cpp',
468 'src/WebMediaPlayerClientImpl.h',
469 'src/WebNamedNodeMap.cpp',
471 'src/WebNodeCollection.cpp',
472 'src/WebNodeList.cpp',
473 'src/WebNotification.cpp',
474 'src/WebOptionElement.cpp',
475 'src/WebPageSerializer.cpp',
476 'src/WebPageSerializerImpl.cpp',
477 'src/WebPageSerializerImpl.h',
478 'src/WebPasswordFormData.cpp',
479 'src/WebPasswordFormUtils.cpp',
480 'src/WebPasswordFormUtils.h',
481 'src/WebPluginContainerImpl.h',
482 'src/WebPluginContainerImpl.cpp',
483 'src/WebPluginDocument.cpp',
484 'src/WebPluginListBuilderImpl.cpp',
485 'src/WebPluginListBuilderImpl.h',
486 'src/WebPluginLoadObserver.cpp',
487 'src/WebPluginLoadObserver.h',
488 'src/WebPopupMenuImpl.cpp',
489 'src/WebPopupMenuImpl.h',
491 'src/WebRegularExpression.cpp',
492 'src/WebRuntimeFeatures.cpp',
493 'src/WebScriptController.cpp',
494 'src/WebScrollbarImpl.cpp',
495 'src/WebScrollbarImpl.h',
496 'src/WebSearchableFormData.cpp',
497 'src/WebSecurityOrigin.cpp',
498 'src/WebSecurityPolicy.cpp',
499 'src/WebSelectElement.cpp',
500 'src/WebSerializedScriptValue.cpp',
501 'src/WebSettingsImpl.cpp',
502 'src/WebSettingsImpl.h',
503 'src/WebSharedWorkerImpl.cpp',
504 'src/WebSharedWorkerImpl.h',
505 'src/WebSpeechInputControllerMockImpl.cpp',
506 'src/WebSpeechInputControllerMockImpl.h',
507 'src/WebStorageAreaImpl.cpp',
508 'src/WebStorageAreaImpl.h',
509 'src/WebStorageEventDispatcherImpl.cpp',
510 'src/WebStorageEventDispatcherImpl.h',
511 'src/WebStorageNamespaceImpl.cpp',
512 'src/WebStorageNamespaceImpl.h',
514 'src/WebTextRun.cpp',
516 'src/WebURLLoadTiming.cpp',
517 'src/WebURLRequest.cpp',
518 'src/WebURLRequestPrivate.h',
519 'src/WebURLResponse.cpp',
520 'src/WebURLResponsePrivate.h',
521 'src/WebURLError.cpp',
522 'src/WebViewImpl.cpp',
524 'src/WebWorkerBase.cpp',
525 'src/WebWorkerBase.h',
526 'src/WebWorkerClientImpl.cpp',
527 'src/WebWorkerClientImpl.h',
528 'src/WebWorkerImpl.cpp',
529 'src/WebWorkerImpl.h',
530 'src/WrappedResourceRequest.h',
531 'src/WrappedResourceResponse.h',
532 'src/win/WebInputEventFactory.cpp',
533 'src/win/WebScreenInfoFactory.cpp',
536 ['inside_chromium_build==1 and OS=="win"', {
537 'type': '<(component)',
540 ['component=="shared_library"', {
545 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore_bindings',
546 '<(chromium_src_dir)/build/temp_gyp/googleurl.gyp:googleurl',
547 '<(chromium_src_dir)/gpu/gpu.gyp:gles2_c_lib',
548 '<(chromium_src_dir)/third_party/icu/icu.gyp:*',
549 '<(chromium_src_dir)/third_party/libjpeg/libjpeg.gyp:libjpeg',
550 '<(chromium_src_dir)/third_party/libpng/libpng.gyp:libpng',
551 '<(chromium_src_dir)/third_party/libxml/libxml.gyp:libxml',
552 '<(chromium_src_dir)/third_party/libxslt/libxslt.gyp:libxslt',
553 '<(chromium_src_dir)/third_party/modp_b64/modp_b64.gyp:modp_b64',
554 '<(chromium_src_dir)/third_party/nss/nss.gyp:*',
555 '<(chromium_src_dir)/third_party/ots/ots.gyp:ots',
556 '<(chromium_src_dir)/third_party/zlib/zlib.gyp:zlib',
557 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
559 'direct_dependent_settings': {
564 'export_dependent_settings': [
565 '<(chromium_src_dir)/build/temp_gyp/googleurl.gyp:googleurl',
566 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
571 'type': '<(webkit_target_type)'
573 ['OS=="linux" or OS=="freebsd"', {
575 '<(chromium_src_dir)/build/linux/system.gyp:fontconfig',
576 '<(chromium_src_dir)/build/linux/system.gyp:gtk',
577 '<(chromium_src_dir)/build/linux/system.gyp:x11',
584 }, { # else: OS!="linux" and OS!="freebsd"
586 ['exclude', '/gtk/'],
587 ['exclude', '/x11/'],
588 ['exclude', '/linux/'],
596 ['exclude', 'Skia\\.cpp$'],
599 # FIXME: Turn on warnings on other platforms and for
603 }, { # else: OS!="mac"
605 ['exclude', '/mac/'],
606 ['exclude', 'CG\\.cpp$'],
613 }, { # else: OS!="win"
614 'sources/': [['exclude', '/win/']],
616 ['"ENABLE_3D_CANVAS=1" in feature_defines', {
621 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
631 'target_name': 'inspector_resources',
635 '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources',
638 ['debug_devtools==0', {
639 'dependencies': ['concatenated_devtools_js'],
644 'destination': '<(PRODUCT_DIR)/resources/inspector',
646 '<@(devtools_files)',
647 '<@(webinspector_files)',
648 '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js',
651 ['debug_devtools==0', {
652 'files/': [['exclude', '\\.js$']],
657 'destination': '<(PRODUCT_DIR)/resources/inspector/Images',
659 '<@(webinspector_image_files)',
660 '<@(devtools_image_files)',
666 'target_name': 'devtools_html',
668 'sources': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
670 'action_name': 'devtools_html',
672 '<(chromium_src_dir)/webkit/build/generate_devtools_html.py',
673 # See issue 29695: WebKit.gypi is a source file for devtools.html.
675 '../../WebCore/inspector/front-end/inspector.html',
677 'outputs': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
678 'action': ['python', '<@(_inputs)', '<@(_outputs)', '<@(devtools_files)'],
682 'target_name': 'concatenated_devtools_js',
686 '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources'
688 'sources': ['<(PRODUCT_DIR)/resources/inspector/DevTools.js'],
690 'action_name': 'concatenate_devtools_js',
691 'script_name': '<(chromium_src_dir)/webkit/build/concatenate_js_files.py',
692 'input_page': '<(PRODUCT_DIR)/resources/inspector/devtools.html',
696 '<@(webinspector_files)',
697 '<@(devtools_files)',
698 '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js',
701 '../../WebCore/inspector/front-end',
703 '<(SHARED_INTERMEDIATE_DIR)/webcore',
704 '<(chromium_src_dir)/v8/tools',
706 'outputs': ['<(PRODUCT_DIR)/resources/inspector/DevTools.js'],
707 'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_search_path)', '<@(_outputs)'],
712 'target_name': 'webkit_unit_tests',
714 # FIXME: make webkit unit tests working for multi dll build.
715 ['inside_chromium_build==1 and OS=="win" and component=="shared_library"', {
718 'type': 'executable',
719 'msvs_guid': '7CEFE800-8403-418A-AD6A-2D52C6FC3EAD',
722 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
723 '<(chromium_src_dir)/testing/gtest.gyp:gtest',
724 '<(chromium_src_dir)/base/base.gyp:base',
725 '<(chromium_src_dir)/base/base.gyp:base_i18n',
726 '<(chromium_src_dir)/base/base.gyp:test_support_base',
727 '<(chromium_src_dir)/gpu/gpu.gyp:gles2_c_lib',
728 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:blob',
729 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_support',
736 'tests/ArenaTestHelpers.h',
737 'tests/DragImageTest.cpp',
738 'tests/IDBBindingUtilitiesTest.cpp',
739 'tests/IDBKeyPathTest.cpp',
740 'tests/KeyboardTest.cpp',
741 'tests/KURLTest.cpp',
742 'tests/PODArenaTest.cpp',
743 'tests/PODIntervalTreeTest.cpp',
744 'tests/PODRedBlackTreeTest.cpp',
745 'tests/RunAllTests.cpp',
746 'tests/TilingDataTest.cpp',
747 'tests/TreeTestHelpers.cpp',
748 'tests/TreeTestHelpers.h',
753 # FIXME: Port PopupMenuTest and WebFrameTest to Linux and Mac.
754 'tests/PopupMenuTest.cpp',
755 'tests/TransparencyWinTest.cpp',
756 'tests/UniscribeHelperTest.cpp',
757 'tests/WebFrameTest.cpp',
762 # FIXME: Port DragImageTest to Mac.
763 'tests/DragImageTest.cpp',
768 'tests/WebInputEventFactoryTestGtk.cpp',
779 'target_name': 'ImageDiff',
780 'type': 'executable',
783 '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf',
784 '<(chromium_src_dir)/gfx/gfx.gyp:gfx',
787 '../../JavaScriptCore',
791 '../../WebKitTools/DumpRenderTree/chromium/ImageDiff.cpp',
795 'target_name': 'DumpRenderTree',
796 'type': 'executable',
800 'inspector_resources',
802 '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf_config',
803 '<(chromium_src_dir)/third_party/icu/icu.gyp:icuuc',
804 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:blob',
805 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:copy_npapi_layout_test_plugin',
806 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_support',
807 '<(chromium_src_dir)/gpu/gpu.gyp:gles2_c_lib'
811 '../../JavaScriptCore',
812 '../../JavaScriptCore/wtf', # wtf/text/*.h refers headers in wtf/ without wtf/.
816 # Technically not a unit test but require functions available only to
825 'dependencies': ['LayoutTestHelper'],
827 'resource_include_dirs': ['<(SHARED_INTERMEDIATE_DIR)/webkit'],
829 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
830 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.rc',
831 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc',
832 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc',
835 ['inside_chromium_build==1 and component=="shared_library"', {
837 'src/ChromiumCurrentTime.cpp',
838 'src/ChromiumThreading.cpp',
844 '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf',
849 'destination': '<(PRODUCT_DIR)',
850 'files': ['<(ahem_path)'],
854 ['exclude', 'Win\\.cpp$'],
858 'action_name': 'repack_locale',
860 'repack_path': '<(chromium_src_dir)/tools/data_pack/repack.py',
862 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
863 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.pak',
864 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
865 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak',
872 '<(INTERMEDIATE_DIR)/repack/DumpRenderTree.pak',
874 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inputs)'],
875 'process_outputs_as_mac_bundle_resources': 1,
880 'dependencies': ['LayoutTestHelper'],
882 'mac_bundle_resources': [
884 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher100.ttf',
885 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher200.ttf',
886 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher300.ttf',
887 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher400.ttf',
888 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher500.ttf',
889 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher600.ttf',
890 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher700.ttf',
891 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher800.ttf',
892 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher900.ttf',
893 '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
895 # Workaround for http://code.google.com/p/gyp/issues/detail?id=160
897 'destination': '<(PRODUCT_DIR)/DumpRenderTree.app/Contents/PlugIns/',
898 'files': ['<(PRODUCT_DIR)/TestNetscapePlugIn.plugin/'],
902 # .mm is already excluded by common.gypi
903 ['exclude', 'Mac\\.cpp$'],
906 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
908 '<(chromium_src_dir)/build/linux/system.gyp:fontconfig',
909 '<(chromium_src_dir)/build/linux/system.gyp:gtk',
915 'destination': '<(PRODUCT_DIR)',
918 '../../WebKitTools/DumpRenderTree/chromium/fonts.conf',
919 '<(INTERMEDIATE_DIR)/repack/DumpRenderTree.pak',
922 },{ # OS!="linux" and OS!="freebsd" and OS!="openbsd" and OS!="solaris"
924 ['exclude', '(Gtk|Linux)\\.cpp$']
933 'target_name': 'LayoutTestHelper',
934 'type': 'executable',
935 'sources': ['../../WebKitTools/DumpRenderTree/chromium/LayoutTestHelperWin.cpp'],
941 'target_name': 'LayoutTestHelper',
942 'type': 'executable',
943 'sources': ['../../WebKitTools/DumpRenderTree/chromium/LayoutTestHelper.mm'],
946 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
957 # indent-tabs-mode:nil
959 # vim: set expandtab tabstop=2 shiftwidth=2: