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 '../../WebKit/chromium/v8/tools/codemap.js',
53 '../../WebKit/chromium/v8/tools/consarray.js',
54 '../../WebKit/chromium/v8/tools/csvparser.js',
55 '../../WebKit/chromium/v8/tools/logreader.js',
56 '../../WebKit/chromium/v8/tools/profile.js',
57 '../../WebKit/chromium/v8/tools/profile_view.js',
58 '../../WebKit/chromium/v8/tools/splaytree.js',
59 '<@(devtools_js_files)',
62 # WebKit is checked out in src/chromium/third_party/WebKit
63 'chromium_src_dir': '../../../..',
66 '<@(devtools_css_files)',
67 '../../../../v8/tools/codemap.js',
68 '../../../../v8/tools/consarray.js',
69 '../../../../v8/tools/csvparser.js',
70 '../../../../v8/tools/logreader.js',
71 '../../../../v8/tools/profile.js',
72 '../../../../v8/tools/profile_view.js',
73 '../../../../v8/tools/splaytree.js',
74 '<@(devtools_js_files)',
78 'ahem_path': '../../WebKitTools/DumpRenderTree/qt/fonts/AHEM____.TTF',
80 # If debug_devtools is set to 1, JavaScript files for DevTools are
81 # stored as is. Otherwise, a concatenated file is stored.
86 'target_name': 'webkit',
87 'msvs_guid': '5ECEC9E5-8F23-47B6-93E0-C3B328B3BE65',
89 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
90 '<(chromium_src_dir)/app/app.gyp:app_base', # For GLContext
91 '<(chromium_src_dir)/skia/skia.gyp:skia',
92 '<(chromium_src_dir)/third_party/npapi/npapi.gyp:npapi',
94 'export_dependent_settings': [
95 '<(chromium_src_dir)/skia/skia.gyp:skia',
96 '<(chromium_src_dir)/third_party/npapi/npapi.gyp:npapi',
103 'WEBKIT_IMPLEMENTATION=1',
106 'public/gtk/WebInputEventFactory.h',
107 'public/linux/WebFontRendering.h',
108 'public/linux/WebFontRenderStyle.h',
109 'public/linux/WebRenderTheme.h',
110 'public/x11/WebScreenInfoFactory.h',
111 'public/mac/WebInputEventFactory.h',
112 'public/mac/WebSandboxSupport.h',
113 'public/mac/WebScreenInfoFactory.h',
114 'public/WebAccessibilityCache.h',
115 'public/WebAccessibilityObject.h',
116 'public/WebAccessibilityRole.h',
117 'public/WebAnimationController.h',
118 'public/WebApplicationCacheHost.h',
119 'public/WebApplicationCacheHostClient.h',
120 'public/WebAttribute.h',
121 'public/WebBindings.h',
123 'public/WebCanvas.h',
124 'public/WebClipboard.h',
126 'public/WebColorName.h',
127 'public/WebCommon.h',
128 'public/WebCommonWorkerClient.h',
129 'public/WebCompositionUnderline.h',
130 'public/WebConsoleMessage.h',
131 'public/WebContextMenuData.h',
132 'public/WebCookie.h',
133 'public/WebCookieJar.h',
134 'public/WebCrossOriginPreflightResultCache.h',
135 'public/WebCString.h',
136 'public/WebCursorInfo.h',
137 'public/WebDOMStringList.h',
139 'public/WebDatabase.h',
140 'public/WebDatabaseObserver.h',
141 'public/WebDataSource.h',
142 'public/WebDevToolsAgent.h',
143 'public/WebDevToolsAgentClient.h',
144 'public/WebDevToolsFrontend.h',
145 'public/WebDevToolsFrontendClient.h',
146 'public/WebDeviceOrientation.h',
147 'public/WebDeviceOrientationClient.h',
148 'public/WebDeviceOrientationClientMock.h',
149 'public/WebDeviceOrientationController.h',
150 'public/WebDocument.h',
151 'public/WebDocumentType.h',
152 'public/WebDragData.h',
153 'public/WebEditingAction.h',
154 'public/WebElement.h',
156 'public/WebEventListener.h',
157 'public/WebFileChooserCompletion.h',
158 'public/WebFileChooserParams.h',
159 'public/WebFileInfo.h',
160 'public/WebFileSystem.h',
161 'public/WebFileUtilities.h',
162 'public/WebFindOptions.h',
163 'public/WebFloatPoint.h',
164 'public/WebFloatRect.h',
166 'public/WebFontDescription.h',
168 'public/WebFrameClient.h',
169 'public/WebFontCache.h',
170 'public/WebFormControlElement.h',
171 'public/WebFormElement.h',
172 'public/WebGeolocationService.h',
173 'public/WebGeolocationServiceBridge.h',
174 'public/WebGeolocationServiceMock.h',
175 'public/WebGlyphCache.h',
176 'public/WebGLES2Context.h',
177 'public/WebGraphicsContext3D.h',
178 'public/WebHistoryItem.h',
179 'public/WebHTTPBody.h',
181 'public/WebImageDecoder.h',
182 'public/WebIDBCallbacks.h',
183 'public/WebIDBCursor.h',
184 'public/WebIDBDatabase.h',
185 'public/WebIDBDatabaseError.h',
186 'public/WebIDBFactory.h',
187 'public/WebIDBKeyRange.h',
188 'public/WebIDBIndex.h',
189 'public/WebIDBKey.h',
190 'public/WebIDBKeyPath.h',
191 'public/WebIDBObjectStore.h',
192 'public/WebInputElement.h',
193 'public/WebInputEvent.h',
195 'public/WebKitClient.h',
196 'public/WebLabelElement.h',
197 'public/WebLocalizedString.h',
198 'public/WebMediaElement.h',
199 'public/WebMediaPlayer.h',
200 'public/WebMediaPlayerAction.h',
201 'public/WebMediaPlayerClient.h',
202 'public/WebMenuItemInfo.h',
203 'public/WebMessagePortChannel.h',
204 'public/WebMessagePortChannelClient.h',
205 'public/WebMimeRegistry.h',
206 'public/WebMutationEvent.h',
207 'public/WebNamedNodeMap.h',
208 'public/WebNavigationType.h',
210 'public/WebNodeCollection.h',
211 'public/WebNodeList.h',
212 'public/WebNonCopyable.h',
213 'public/WebNotification.h',
214 'public/WebNotificationPresenter.h',
215 'public/WebNotificationPermissionCallback.h',
216 'public/WebOptionElement.h',
217 'public/WebPageSerializer.h',
218 'public/WebPageSerializerClient.h',
219 'public/WebPasswordAutocompleteListener.h',
220 'public/WebPasswordFormData.h',
221 'public/WebPlugin.h',
222 'public/WebPluginContainer.h',
223 'public/WebPluginDocument.h',
224 'public/WebPluginListBuilder.h',
226 'public/WebPopupMenu.h',
227 'public/WebPopupMenuInfo.h',
228 'public/WebPopupType.h',
229 'public/WebPrivatePtr.h',
230 'public/WebPrivateOwnPtr.h',
233 'public/WebRegularExpression.h',
234 'public/WebRuntimeFeatures.h',
235 'public/WebScrollbar.h',
236 'public/WebScrollbarClient.h',
237 'public/WebScreenInfo.h',
238 'public/WebScriptController.h',
239 'public/WebScriptSource.h',
240 'public/WebSearchableFormData.h',
241 'public/WebSecurityOrigin.h',
242 'public/WebSecurityPolicy.h',
243 'public/WebSelectElement.h',
244 'public/WebSerializedScriptValue.h',
245 'public/WebSettings.h',
246 'public/WebSharedWorker.h',
247 'public/WebSharedWorkerRepository.h',
249 'public/WebSocketStreamError.h',
250 'public/WebSocketStreamHandle.h',
251 'public/WebSocketStreamHandleClient.h',
252 'public/WebSpeechInputController.h',
253 'public/WebSpeechInputControllerMock.h',
254 'public/WebSpeechInputListener.h',
255 'public/WebStorageArea.h',
256 'public/WebStorageEventDispatcher.h',
257 'public/WebStorageNamespace.h',
258 'public/WebString.h',
259 'public/WebTextAffinity.h',
260 'public/WebTextCaseSensitivity.h',
261 'public/WebTextDirection.h',
262 'public/WebTextInputType.h',
263 'public/WebTextRun.h',
264 'public/WebThemeEngine.h',
266 'public/WebURLError.h',
267 'public/WebURLLoader.h',
268 'public/WebURLLoadTiming.h',
269 'public/WebURLLoaderClient.h',
270 'public/WebURLRequest.h',
271 'public/WebURLResponse.h',
272 'public/WebVector.h',
274 'public/WebViewClient.h',
275 'public/WebWidget.h',
276 'public/WebWidgetClient.h',
277 'public/WebWorker.h',
278 'public/WebWorkerClient.h',
279 'public/win/WebInputEventFactory.h',
280 'public/win/WebSandboxSupport.h',
281 'public/win/WebScreenInfoFactory.h',
282 'public/win/WebScreenInfoFactory.h',
283 'src/ApplicationCacheHost.cpp',
284 'src/ApplicationCacheHostInternal.h',
285 'src/AssertMatchingEnums.cpp',
286 'src/AutoFillPopupMenuClient.cpp',
287 'src/AutoFillPopupMenuClient.h',
288 'src/BackForwardListClientImpl.cpp',
289 'src/BackForwardListClientImpl.h',
290 'src/BoundObject.cpp',
292 'src/ChromeClientImpl.cpp',
293 'src/ChromeClientImpl.h',
294 'src/ChromiumBridge.cpp',
295 'src/ChromiumCurrentTime.cpp',
296 'src/ChromiumThreading.cpp',
297 'src/CompositionUnderlineBuilder.h',
298 'src/CompositionUnderlineVectorBuilder.cpp',
299 'src/CompositionUnderlineVectorBuilder.h',
300 'src/ContextMenuClientImpl.cpp',
301 'src/ContextMenuClientImpl.h',
302 'src/DatabaseObserver.cpp',
303 'src/DebuggerAgentImpl.cpp',
304 'src/DebuggerAgentImpl.h',
305 'src/DebuggerAgentManager.cpp',
306 'src/DebuggerAgentManager.h',
307 'src/DeviceOrientationClientProxy.cpp',
308 'src/DeviceOrientationClientProxy.h',
309 'src/DOMUtilitiesPrivate.cpp',
310 'src/DOMUtilitiesPrivate.h',
311 'src/DragClientImpl.cpp',
312 'src/DragClientImpl.h',
313 'src/DragScrollTimer.cpp',
314 'src/DragScrollTimer.h',
315 'src/EditorClientImpl.cpp',
316 'src/EditorClientImpl.h',
317 'src/EventListenerWrapper.cpp',
318 'src/EventListenerWrapper.h',
319 'src/FrameLoaderClientImpl.cpp',
320 'src/FrameLoaderClientImpl.h',
321 'src/FrameNetworkingContextImpl.h',
322 'src/GLES2Context.cpp',
323 'src/GLES2ContextInternal.cpp',
324 'src/GLES2ContextInternal.h',
325 'src/GraphicsContext3D.cpp',
326 'src/gtk/WebFontInfo.cpp',
327 'src/gtk/WebFontInfo.h',
328 'src/gtk/WebInputEventFactory.cpp',
329 'src/IDBCallbacksProxy.cpp',
330 'src/IDBCallbacksProxy.h',
331 'src/IDBCursorBackendProxy.cpp',
332 'src/IDBCursorBackendProxy.h',
333 'src/IDBDatabaseProxy.cpp',
334 'src/IDBDatabaseProxy.h',
335 'src/IDBFactoryBackendProxy.cpp',
336 'src/IDBFactoryBackendProxy.h',
337 'src/IDBIndexBackendProxy.cpp',
338 'src/IDBIndexBackendProxy.h',
339 'src/IDBObjectStoreProxy.cpp',
340 'src/IDBObjectStoreProxy.h',
341 'src/InspectorClientImpl.cpp',
342 'src/InspectorClientImpl.h',
343 'src/InspectorFrontendClientImpl.cpp',
344 'src/InspectorFrontendClientImpl.h',
345 'src/linux/WebFontRendering.cpp',
346 'src/linux/WebFontRenderStyle.cpp',
347 'src/linux/WebRenderTheme.cpp',
348 'src/x11/WebScreenInfoFactory.cpp',
349 'src/mac/WebInputEventFactory.mm',
350 'src/mac/WebScreenInfoFactory.mm',
351 'src/LocalizedStrings.cpp',
352 'src/MediaPlayerPrivateChromium.cpp',
353 'src/NotificationPresenterImpl.h',
354 'src/NotificationPresenterImpl.cpp',
355 'src/PlatformMessagePortChannel.cpp',
356 'src/PlatformMessagePortChannel.h',
357 'src/ResourceHandle.cpp',
358 'src/SharedWorkerRepository.cpp',
359 'src/SocketStreamHandle.cpp',
360 'src/SpeechInputClientImpl.cpp',
361 'src/SpeechInputClientImpl.h',
362 'src/StorageAreaProxy.cpp',
363 'src/StorageAreaProxy.h',
364 'src/StorageEventDispatcherChromium.cpp',
365 'src/StorageEventDispatcherImpl.cpp',
366 'src/StorageEventDispatcherImpl.h',
367 'src/StorageNamespaceProxy.cpp',
368 'src/StorageNamespaceProxy.h',
369 'src/TemporaryGlue.h',
370 'src/WebAccessibilityCache.cpp',
371 'src/WebAccessibilityCacheImpl.cpp',
372 'src/WebAccessibilityCacheImpl.h',
373 'src/WebAccessibilityObject.cpp',
374 'src/WebAnimationControllerImpl.cpp',
375 'src/WebAnimationControllerImpl.h',
376 'src/WebAttribute.cpp',
377 'src/WebBindings.cpp',
381 'src/WebCrossOriginPreflightResultCache.cpp',
382 'src/WebCString.cpp',
383 'src/WebCursorInfo.cpp',
384 'src/WebDOMStringList.cpp',
386 'src/WebDatabase.cpp',
387 'src/WebDataSourceImpl.cpp',
388 'src/WebDataSourceImpl.h',
389 'src/WebDevToolsAgentImpl.cpp',
390 'src/WebDevToolsAgentImpl.h',
391 'src/WebDevToolsFrontendImpl.cpp',
392 'src/WebDevToolsFrontendImpl.h',
393 'src/WebDeviceOrientation.cpp',
394 'src/WebDeviceOrientationClientMock.cpp',
395 'src/WebDeviceOrientationController.cpp',
396 'src/WebDocument.cpp',
397 'src/WebDocumentType.cpp',
398 'src/WebDragData.cpp',
399 'src/WebElement.cpp',
400 'src/WebEntities.cpp',
403 'src/WebEventListener.cpp',
404 'src/WebEventListenerPrivate.cpp',
405 'src/WebEventListenerPrivate.h',
406 'src/WebFileChooserCompletionImpl.cpp',
407 'src/WebFileChooserCompletionImpl.h',
408 'src/WebFontCache.cpp',
409 'src/WebFontDescription.cpp',
410 'src/WebFontImpl.cpp',
412 'src/WebFormControlElement.cpp',
413 'src/WebFormElement.cpp',
414 'src/WebFrameImpl.cpp',
415 'src/WebFrameImpl.h',
416 'src/WebGeolocationServiceBridgeImpl.cpp',
417 'src/WebGeolocationServiceBridgeImpl.h',
418 'src/WebGeolocationServiceMock.cpp',
419 'src/WebGlyphCache.cpp',
420 'src/WebGraphicsContext3D.cpp',
421 'src/WebGraphicsContext3DDefaultImpl.cpp',
422 'src/WebGraphicsContext3DDefaultImpl.h',
423 'src/WebHistoryItem.cpp',
424 'src/WebHTTPBody.cpp',
425 'src/WebIDBCallbacksImpl.cpp',
426 'src/WebIDBCallbacksImpl.h',
427 'src/WebIDBCursorImpl.cpp',
428 'src/WebIDBCursorImpl.h',
429 'src/WebIDBDatabaseError.cpp',
430 'src/WebIDBDatabaseImpl.cpp',
431 'src/WebIDBDatabaseImpl.h',
432 'src/WebIDBFactoryImpl.cpp',
433 'src/WebIDBFactoryImpl.h',
434 'src/WebIDBIndexImpl.cpp',
435 'src/WebIDBIndexImpl.h',
437 'src/WebIDBKeyPath.cpp',
438 'src/WebIDBKeyRange.cpp',
439 'src/WebIDBObjectStoreImpl.cpp',
440 'src/WebIDBObjectStoreImpl.h',
441 'src/WebImageCG.cpp',
442 'src/WebImageDecoder.cpp',
443 'src/WebImageSkia.cpp',
444 'src/WebInputElement.cpp',
445 'src/WebInputEvent.cpp',
446 'src/WebInputEventConversion.cpp',
447 'src/WebInputEventConversion.h',
449 'src/WebLabelElement.cpp',
450 'src/WebMediaElement.cpp',
451 'src/WebMediaPlayerClientImpl.cpp',
452 'src/WebMediaPlayerClientImpl.h',
453 'src/WebMutationEvent.cpp',
454 'src/WebNamedNodeMap.cpp',
456 'src/WebNodeCollection.cpp',
457 'src/WebNodeList.cpp',
458 'src/WebNotification.cpp',
459 'src/WebOptionElement.cpp',
460 'src/WebPageSerializer.cpp',
461 'src/WebPageSerializerImpl.cpp',
462 'src/WebPageSerializerImpl.h',
463 'src/WebPasswordFormData.cpp',
464 'src/WebPasswordFormUtils.cpp',
465 'src/WebPasswordFormUtils.h',
466 'src/WebPluginContainerImpl.h',
467 'src/WebPluginContainerImpl.cpp',
468 'src/WebPluginDocument.cpp',
469 'src/WebPluginListBuilderImpl.cpp',
470 'src/WebPluginListBuilderImpl.h',
471 'src/WebPluginLoadObserver.cpp',
472 'src/WebPluginLoadObserver.h',
473 'src/WebPopupMenuImpl.cpp',
474 'src/WebPopupMenuImpl.h',
476 'src/WebRegularExpression.cpp',
477 'src/WebRuntimeFeatures.cpp',
478 'src/WebScriptController.cpp',
479 'src/WebScrollbarImpl.cpp',
480 'src/WebScrollbarImpl.h',
481 'src/WebSearchableFormData.cpp',
482 'src/WebSecurityOrigin.cpp',
483 'src/WebSecurityPolicy.cpp',
484 'src/WebSelectElement.cpp',
485 'src/WebSerializedScriptValue.cpp',
486 'src/WebSettingsImpl.cpp',
487 'src/WebSettingsImpl.h',
488 'src/WebSharedWorkerImpl.cpp',
489 'src/WebSharedWorkerImpl.h',
490 'src/WebSpeechInputControllerMockImpl.cpp',
491 'src/WebSpeechInputControllerMockImpl.h',
492 'src/WebStorageAreaImpl.cpp',
493 'src/WebStorageAreaImpl.h',
494 'src/WebStorageEventDispatcherImpl.cpp',
495 'src/WebStorageEventDispatcherImpl.h',
496 'src/WebStorageNamespaceImpl.cpp',
497 'src/WebStorageNamespaceImpl.h',
499 'src/WebTextRun.cpp',
501 'src/WebURLLoadTiming.cpp',
502 'src/WebURLRequest.cpp',
503 'src/WebURLRequestPrivate.h',
504 'src/WebURLResponse.cpp',
505 'src/WebURLResponsePrivate.h',
506 'src/WebURLError.cpp',
507 'src/WebViewImpl.cpp',
509 'src/WebWorkerBase.cpp',
510 'src/WebWorkerBase.h',
511 'src/WebWorkerClientImpl.cpp',
512 'src/WebWorkerClientImpl.h',
513 'src/WebWorkerImpl.cpp',
514 'src/WebWorkerImpl.h',
515 'src/WrappedResourceRequest.h',
516 'src/WrappedResourceResponse.h',
517 'src/win/WebInputEventFactory.cpp',
518 'src/win/WebScreenInfoFactory.cpp',
521 ['inside_chromium_build==1 and OS=="win"', {
522 'type': '<(component)',
525 ['component=="shared_library"', {
530 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore_bindings',
531 '<(chromium_src_dir)/build/temp_gyp/googleurl.gyp:googleurl',
532 '<(chromium_src_dir)/gpu/gpu.gyp:gles2_c_lib',
533 '<(chromium_src_dir)/third_party/icu/icu.gyp:*',
534 '<(chromium_src_dir)/third_party/libjpeg/libjpeg.gyp:libjpeg',
535 '<(chromium_src_dir)/third_party/libpng/libpng.gyp:libpng',
536 '<(chromium_src_dir)/third_party/libxml/libxml.gyp:libxml',
537 '<(chromium_src_dir)/third_party/libxslt/libxslt.gyp:libxslt',
538 '<(chromium_src_dir)/third_party/modp_b64/modp_b64.gyp:modp_b64',
539 '<(chromium_src_dir)/third_party/nss/nss.gyp:*',
540 '<(chromium_src_dir)/third_party/ots/ots.gyp:ots',
541 '<(chromium_src_dir)/third_party/zlib/zlib.gyp:zlib',
542 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
544 'direct_dependent_settings': {
549 'export_dependent_settings': [
550 '<(chromium_src_dir)/build/temp_gyp/googleurl.gyp:googleurl',
551 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
556 'type': '<(webkit_target_type)'
558 ['OS=="linux" or OS=="freebsd"', {
560 '<(chromium_src_dir)/build/linux/system.gyp:fontconfig',
561 '<(chromium_src_dir)/build/linux/system.gyp:gtk',
562 '<(chromium_src_dir)/build/linux/system.gyp:x11',
569 }, { # else: OS!="linux" and OS!="freebsd"
571 ['exclude', '/gtk/'],
572 ['exclude', '/x11/'],
573 ['exclude', '/linux/'],
581 ['exclude', 'Skia\\.cpp$'],
584 # FIXME: Turn on warnings on other platforms and for
588 }, { # else: OS!="mac"
590 ['exclude', '/mac/'],
591 ['exclude', 'CG\\.cpp$'],
598 }, { # else: OS!="win"
599 'sources/': [['exclude', '/win/']],
601 ['"ENABLE_3D_CANVAS=1" in feature_defines', {
606 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
616 'target_name': 'inspector_resources',
620 '../../WebCore/WebCore.gyp/WebCore.gyp:inspector_protocol_sources',
623 ['debug_devtools==0', {
624 'dependencies': ['concatenated_devtools_js'],
629 'destination': '<(PRODUCT_DIR)/resources/inspector',
631 '<@(devtools_files)',
632 '<@(webinspector_files)',
633 '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js',
636 ['debug_devtools==0', {
637 'files/': [['exclude', '\\.js$']],
642 'destination': '<(PRODUCT_DIR)/resources/inspector/Images',
644 '<@(webinspector_image_files)',
645 '<@(devtools_image_files)',
651 'target_name': 'devtools_html',
653 'sources': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
655 'action_name': 'devtools_html',
657 '<(chromium_src_dir)/webkit/build/generate_devtools_html.py',
658 # See issue 29695: WebKit.gypi is a source file for devtools.html.
660 '../../WebCore/inspector/front-end/inspector.html',
662 'outputs': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
663 'action': ['python', '<@(_inputs)', '<@(_outputs)', '<@(devtools_files)'],
667 'target_name': 'concatenated_devtools_js',
669 'dependencies': ['devtools_html'],
670 'sources': ['<(PRODUCT_DIR)/resources/inspector/DevTools.js'],
672 'action_name': 'concatenate_devtools_js',
673 'script_name': '<(chromium_src_dir)/webkit/build/concatenate_js_files.py',
674 'input_page': '<(PRODUCT_DIR)/resources/inspector/devtools.html',
678 '<@(webinspector_files)',
679 '<@(devtools_files)',
680 '<(SHARED_INTERMEDIATE_DIR)/webcore/InspectorBackendStub.js',
683 '../../WebCore/inspector/front-end',
685 '<(SHARED_INTERMEDIATE_DIR)/webcore',
686 '<(chromium_src_dir)/v8/tools',
688 'outputs': ['<(PRODUCT_DIR)/resources/inspector/DevTools.js'],
689 'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@(_search_path)', '<@(_outputs)'],
694 'target_name': 'webkit_unit_tests',
696 # FIXME: make webkit unit tests working for multi dll build.
697 ['inside_chromium_build==1 and OS=="win" and component=="shared_library"', {
700 'type': 'executable',
701 'msvs_guid': '7CEFE800-8403-418A-AD6A-2D52C6FC3EAD',
704 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
705 '<(chromium_src_dir)/testing/gtest.gyp:gtest',
706 '<(chromium_src_dir)/base/base.gyp:base',
707 '<(chromium_src_dir)/base/base.gyp:base_i18n',
708 '<(chromium_src_dir)/base/base.gyp:test_support_base',
709 '<(chromium_src_dir)/gpu/gpu.gyp:gles2_c_lib',
716 'tests/DragImageTest.cpp',
717 'tests/IDBBindingUtilitiesTest.cpp',
718 'tests/IDBKeyPathTest.cpp',
719 'tests/KeyboardTest.cpp',
720 'tests/KURLTest.cpp',
721 'tests/RunAllTests.cpp',
722 # FIXME: This test is compile failing on mac.
723 # 'tests/TilingDataTest.cpp',
728 # FIXME: Port PopupMenuTest to Linux and Mac.
729 'tests/PopupMenuTest.cpp',
730 'tests/TransparencyWinTest.cpp',
731 'tests/UniscribeHelperTest.cpp',
736 # FIXME: Port DragImageTest to Mac.
737 'tests/DragImageTest.cpp',
742 'tests/WebInputEventFactoryTestGtk.cpp',
753 'target_name': 'ImageDiff',
754 'type': 'executable',
757 '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf',
758 '<(chromium_src_dir)/gfx/gfx.gyp:gfx',
761 '../../JavaScriptCore',
765 '../../WebKitTools/DumpRenderTree/chromium/ImageDiff.cpp',
769 'target_name': 'DumpRenderTree',
770 'type': 'executable',
774 'inspector_resources',
776 '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf_config',
777 '<(chromium_src_dir)/third_party/icu/icu.gyp:icuuc',
778 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:copy_npapi_layout_test_plugin',
779 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_support',
780 '<(chromium_src_dir)/gpu/gpu.gyp:gles2_c_lib'
784 '../../JavaScriptCore',
785 '../../JavaScriptCore/wtf', # wtf/text/*.h refers headers in wtf/ without wtf/.
789 # Technically not a unit test but require functions available only to
798 'dependencies': ['LayoutTestHelper'],
800 'resource_include_dirs': ['<(SHARED_INTERMEDIATE_DIR)/webkit'],
802 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
803 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.rc',
804 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc',
805 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.rc',
808 ['inside_chromium_build==1 and component=="shared_library"', {
810 'src/ChromiumCurrentTime.cpp',
811 'src/ChromiumThreading.cpp',
817 '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf',
822 'destination': '<(PRODUCT_DIR)',
823 'files': ['<(ahem_path)'],
827 ['exclude', 'Win\\.cpp$'],
831 'action_name': 'repack_locale',
833 'repack_path': '<(chromium_src_dir)/tools/data_pack/repack.py',
835 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
836 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.pak',
837 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US.pak',
838 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak',
845 '<(INTERMEDIATE_DIR)/repack/DumpRenderTree.pak',
847 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inputs)'],
848 'process_outputs_as_mac_bundle_resources': 1,
853 'dependencies': ['LayoutTestHelper'],
855 'mac_bundle_resources': [
857 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher100.ttf',
858 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher200.ttf',
859 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher300.ttf',
860 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher400.ttf',
861 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher500.ttf',
862 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher600.ttf',
863 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher700.ttf',
864 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher800.ttf',
865 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatcher900.ttf',
866 '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner.png',
868 # Workaround for http://code.google.com/p/gyp/issues/detail?id=160
870 'destination': '<(PRODUCT_DIR)/DumpRenderTree.app/Contents/PlugIns/',
871 'files': ['<(PRODUCT_DIR)/TestNetscapePlugIn.plugin/'],
875 # .mm is already excluded by common.gypi
876 ['exclude', 'Mac\\.cpp$'],
879 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
881 '<(chromium_src_dir)/build/linux/system.gyp:fontconfig',
882 '<(chromium_src_dir)/build/linux/system.gyp:gtk',
888 'destination': '<(PRODUCT_DIR)',
891 '../../WebKitTools/DumpRenderTree/chromium/fonts.conf',
892 '<(INTERMEDIATE_DIR)/repack/DumpRenderTree.pak',
895 },{ # OS!="linux" and OS!="freebsd" and OS!="openbsd" and OS!="solaris"
897 ['exclude', '(Gtk|Linux)\\.cpp$']
906 'target_name': 'LayoutTestHelper',
907 'type': 'executable',
908 'sources': ['../../WebKitTools/DumpRenderTree/chromium/LayoutTestHelperWin.cpp'],
914 'target_name': 'LayoutTestHelper',
915 'type': 'executable',
916 'sources': ['../../WebKitTools/DumpRenderTree/chromium/LayoutTestHelper.mm'],
919 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
930 # indent-tabs-mode:nil
932 # vim: set expandtab tabstop=2 shiftwidth=2: