Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: third_party/WebKit/WebKit/chromium/WebKit.gyp

Issue 3058055: Implemented way to share video frames between WebKit and Chromium (Closed)
Patch Set: Adding WebKit side for easy reading (will delete in final patch) Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #
2 # Copyright (C) 2010 Google Inc. All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
6 # met:
7 #
8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above
11 # copyright notice, this list of conditions and the following disclaimer
12 # in the documentation and/or other materials provided with the
13 # distribution.
14 # * Neither the name of Google Inc. nor the names of its
15 # contributors may be used to endorse or promote products derived from
16 # this software without specific prior written permission.
17 #
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 #
30
31 {
32 'includes': [
33 '../../WebCore/WebCore.gypi',
34 '../../WebKitTools/DumpRenderTree/DumpRenderTree.gypi',
35 'WebKit.gypi',
36 'features.gypi',
37 ],
38 'variables': {
39 'webkit_target_type': 'static_library',
40 'conditions': [
41 # Location of the chromium src directory and target type is differen t
42 # if webkit is built inside chromium or as standalone project.
43 ['inside_chromium_build==0', {
44 # Webkit is being built outside of the full chromium project.
45 # e.g. via build-webkit --chromium
46 'chromium_src_dir': '../../WebKit/chromium',
47
48 # List of DevTools source files, ordered by dependencies. It is used both
49 # for copying them to resource dir, and for generating 'devtools .html' file.
50 'devtools_files': [
51 '<@(devtools_css_files)',
52 '../../WebKit/chromium/v8/tools/codemap.js',
53 '../../WebKit/chromium/v8/tools/consarray.js',
54 '../../WebKit/chromium/v8/tools/csvparser.js',
55 '../../WebKit/chromium/v8/tools/logreader.js',
56 '../../WebKit/chromium/v8/tools/profile.js',
57 '../../WebKit/chromium/v8/tools/profile_view.js',
58 '../../WebKit/chromium/v8/tools/splaytree.js',
59 '<@(devtools_js_files)',
60 ],
61 },{
62 # WebKit is checked out in src/chromium/third_party/WebKit
63 'chromium_src_dir': '../../../..',
64
65 'devtools_files': [
66 '<@(devtools_css_files)',
67 '../../../../v8/tools/codemap.js',
68 '../../../../v8/tools/consarray.js',
69 '../../../../v8/tools/csvparser.js',
70 '../../../../v8/tools/logreader.js',
71 '../../../../v8/tools/profile.js',
72 '../../../../v8/tools/profile_view.js',
73 '../../../../v8/tools/splaytree.js',
74 '<@(devtools_js_files)',
75 ],
76 }],
77 ],
78 'ahem_path': '../../WebKitTools/DumpRenderTree/qt/fonts/AHEM____.TTF',
79
80 # If debug_devtools is set to 1, JavaScript files for DevTools are
81 # stored as is. Otherwise, a concatenated file is stored.
82 'debug_devtools%': 0,
83 },
84 'targets': [
85 {
86 'target_name': 'webkit',
87 'msvs_guid': '5ECEC9E5-8F23-47B6-93E0-C3B328B3BE65',
88 'dependencies': [
89 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
90 '<(chromium_src_dir)/skia/skia.gyp:skia',
91 '<(chromium_src_dir)/third_party/npapi/npapi.gyp:npapi',
92 ],
93 'export_dependent_settings': [
94 '<(chromium_src_dir)/skia/skia.gyp:skia',
95 '<(chromium_src_dir)/third_party/npapi/npapi.gyp:npapi',
96 ],
97 'include_dirs': [
98 'public',
99 'src',
100 ],
101 'defines': [
102 'WEBKIT_IMPLEMENTATION=1',
103 ],
104 'sources': [
105 'public/gtk/WebInputEventFactory.h',
106 'public/linux/WebFontRendering.h',
107 'public/linux/WebFontRenderStyle.h',
108 'public/linux/WebRenderTheme.h',
109 'public/x11/WebScreenInfoFactory.h',
110 'public/mac/WebInputEventFactory.h',
111 'public/mac/WebSandboxSupport.h',
112 'public/mac/WebScreenInfoFactory.h',
113 'public/WebAccessibilityCache.h',
114 'public/WebAccessibilityObject.h',
115 'public/WebAccessibilityRole.h',
116 'public/WebAnimationController.h',
117 'public/WebApplicationCacheHost.h',
118 'public/WebApplicationCacheHostClient.h',
119 'public/WebAttribute.h',
120 'public/WebBindings.h',
121 'public/WebCache.h',
122 'public/WebCanvas.h',
123 'public/WebClipboard.h',
124 'public/WebColor.h',
125 'public/WebColorName.h',
126 'public/WebCommon.h',
127 'public/WebCommonWorkerClient.h',
128 'public/WebCompositionUnderline.h',
129 'public/WebConsoleMessage.h',
130 'public/WebContextMenuData.h',
131 'public/WebCookie.h',
132 'public/WebCookieJar.h',
133 'public/WebCrossOriginPreflightResultCache.h',
134 'public/WebCString.h',
135 'public/WebCursorInfo.h',
136 'public/WebDOMStringList.h',
137 'public/WebData.h',
138 'public/WebDatabase.h',
139 'public/WebDatabaseObserver.h',
140 'public/WebDataSource.h',
141 'public/WebDevToolsAgent.h',
142 'public/WebDevToolsAgentClient.h',
143 'public/WebDevToolsFrontend.h',
144 'public/WebDevToolsFrontendClient.h',
145 'public/WebDocument.h',
146 'public/WebDocumentType.h',
147 'public/WebDragData.h',
148 'public/WebEditingAction.h',
149 'public/WebElement.h',
150 'public/WebEvent.h',
151 'public/WebEventListener.h',
152 'public/WebFileChooserCompletion.h',
153 'public/WebFileChooserParams.h',
154 'public/WebFileInfo.h',
155 'public/WebFileSystem.h',
156 'public/WebFindOptions.h',
157 'public/WebFloatPoint.h',
158 'public/WebFloatRect.h',
159 'public/WebFont.h',
160 'public/WebFontDescription.h',
161 'public/WebFrame.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',
174 'public/WebImage.h',
175 'public/WebImageDecoder.h',
176 'public/WebIDBCallbacks.h',
177 'public/WebIDBDatabase.h',
178 'public/WebIDBDatabaseError.h',
179 'public/WebIDBFactory.h',
180 'public/WebIDBIndex.h',
181 'public/WebIDBKey.h',
182 'public/WebIDBObjectStore.h',
183 'public/WebInputElement.h',
184 'public/WebInputEvent.h',
185 'public/WebKit.h',
186 'public/WebKitClient.h',
187 'public/WebLabelElement.h',
188 'public/WebLocalizedString.h',
189 'public/WebMediaElement.h',
190 'public/WebMediaPlayer.h',
191 'public/WebMediaPlayerAction.h',
192 'public/WebMediaPlayerClient.h',
193 'public/WebMenuItemInfo.h',
194 'public/WebMessagePortChannel.h',
195 'public/WebMessagePortChannelClient.h',
196 'public/WebMimeRegistry.h',
197 'public/WebMutationEvent.h',
198 'public/WebNamedNodeMap.h',
199 'public/WebNavigationType.h',
200 'public/WebNode.h',
201 'public/WebNodeCollection.h',
202 'public/WebNodeList.h',
203 'public/WebNonCopyable.h',
204 'public/WebNotification.h',
205 'public/WebNotificationPresenter.h',
206 'public/WebNotificationPermissionCallback.h',
207 'public/WebOptionElement.h',
208 'public/WebPageSerializer.h',
209 'public/WebPageSerializerClient.h',
210 'public/WebPasswordAutocompleteListener.h',
211 'public/WebPasswordFormData.h',
212 'public/WebPlugin.h',
213 'public/WebPluginContainer.h',
214 'public/WebPluginDocument.h',
215 'public/WebPluginListBuilder.h',
216 'public/WebPoint.h',
217 'public/WebPopupMenu.h',
218 'public/WebPopupMenuInfo.h',
219 'public/WebPopupType.h',
220 'public/WebPrivatePtr.h',
221 'public/WebRange.h',
222 'public/WebRect.h',
223 'public/WebRegularExpression.h',
224 'public/WebRuntimeFeatures.h',
225 'public/WebScrollbar.h',
226 'public/WebScrollbarClient.h',
227 'public/WebScreenInfo.h',
228 'public/WebScriptController.h',
229 'public/WebScriptSource.h',
230 'public/WebSearchableFormData.h',
231 'public/WebSecurityOrigin.h',
232 'public/WebSecurityPolicy.h',
233 'public/WebSelectElement.h',
234 'public/WebSerializedScriptValue.h',
235 'public/WebSettings.h',
236 'public/WebSharedWorker.h',
237 'public/WebSharedWorkerRepository.h',
238 'public/WebSize.h',
239 'public/WebSocketStreamError.h',
240 'public/WebSocketStreamHandle.h',
241 'public/WebSocketStreamHandleClient.h',
242 'public/WebSpeechInputController.h',
243 'public/WebSpeechInputControllerMock.h',
244 'public/WebSpeechInputListener.h',
245 'public/WebStorageArea.h',
246 'public/WebStorageEventDispatcher.h',
247 'public/WebStorageNamespace.h',
248 'public/WebString.h',
249 'public/WebTextAffinity.h',
250 'public/WebTextCaseSensitivity.h',
251 'public/WebTextDirection.h',
252 'public/WebTextInputType.h',
253 'public/WebTextRun.h',
254 'public/WebThemeEngine.h',
255 'public/WebURL.h',
256 'public/WebURLError.h',
257 'public/WebURLLoader.h',
258 'public/WebURLLoadTiming.h',
259 'public/WebURLLoaderClient.h',
260 'public/WebURLRequest.h',
261 'public/WebURLResponse.h',
262 'public/WebVector.h',
263 'public/WebView.h',
264 'public/WebViewClient.h',
265 'public/WebWidget.h',
266 'public/WebWidgetClient.h',
267 'public/WebWorker.h',
268 'public/WebWorkerClient.h',
269 'public/win/WebInputEventFactory.h',
270 'public/win/WebSandboxSupport.h',
271 'public/win/WebScreenInfoFactory.h',
272 'public/win/WebScreenInfoFactory.h',
273 'src/ApplicationCacheHost.cpp',
274 'src/ApplicationCacheHostInternal.h',
275 'src/AssertMatchingEnums.cpp',
276 'src/AutoFillPopupMenuClient.cpp',
277 'src/AutoFillPopupMenuClient.h',
278 'src/BackForwardListClientImpl.cpp',
279 'src/BackForwardListClientImpl.h',
280 'src/BoundObject.cpp',
281 'src/BoundObject.h',
282 'src/ChromeClientImpl.cpp',
283 'src/ChromeClientImpl.h',
284 'src/ChromiumBridge.cpp',
285 'src/ChromiumCurrentTime.cpp',
286 'src/ChromiumThreading.cpp',
287 'src/CompositionUnderlineBuilder.h',
288 'src/CompositionUnderlineVectorBuilder.cpp',
289 'src/CompositionUnderlineVectorBuilder.h',
290 'src/ContextMenuClientImpl.cpp',
291 'src/ContextMenuClientImpl.h',
292 'src/DatabaseObserver.cpp',
293 'src/DebuggerAgentImpl.cpp',
294 'src/DebuggerAgentImpl.h',
295 'src/DebuggerAgentManager.cpp',
296 'src/DebuggerAgentManager.h',
297 'src/DOMUtilitiesPrivate.cpp',
298 'src/DOMUtilitiesPrivate.h',
299 'src/DragClientImpl.cpp',
300 'src/DragClientImpl.h',
301 'src/DragScrollTimer.cpp',
302 'src/DragScrollTimer.h',
303 'src/EditorClientImpl.cpp',
304 'src/EditorClientImpl.h',
305 'src/EventListenerWrapper.cpp',
306 'src/EventListenerWrapper.h',
307 'src/FrameLoaderClientImpl.cpp',
308 'src/FrameLoaderClientImpl.h',
309 'src/GLES2Context.cpp',
310 'src/GLES2ContextInternal.cpp',
311 'src/GLES2ContextInternal.h',
312 'src/gtk/WebFontInfo.cpp',
313 'src/gtk/WebFontInfo.h',
314 'src/gtk/WebInputEventFactory.cpp',
315 'src/IDBCallbacksProxy.cpp',
316 'src/IDBCallbacksProxy.h',
317 'src/IDBDatabaseProxy.cpp',
318 'src/IDBDatabaseProxy.h',
319 'src/IDBFactoryBackendProxy.cpp',
320 'src/IDBFactoryBackendProxy.h',
321 'src/IDBIndexBackendProxy.cpp',
322 'src/IDBIndexBackendProxy.h',
323 'src/IDBObjectStoreProxy.cpp',
324 'src/IDBObjectStoreProxy.h',
325 'src/InspectorClientImpl.cpp',
326 'src/InspectorClientImpl.h',
327 'src/InspectorFrontendClientImpl.cpp',
328 'src/InspectorFrontendClientImpl.h',
329 'src/linux/WebFontRendering.cpp',
330 'src/linux/WebFontRenderStyle.cpp',
331 'src/linux/WebRenderTheme.cpp',
332 'src/x11/WebScreenInfoFactory.cpp',
333 'src/mac/WebInputEventFactory.mm',
334 'src/mac/WebScreenInfoFactory.mm',
335 'src/LocalizedStrings.cpp',
336 'src/MediaPlayerPrivateChromium.cpp',
337 'src/NotificationPresenterImpl.h',
338 'src/NotificationPresenterImpl.cpp',
339 'src/PlatformMessagePortChannel.cpp',
340 'src/PlatformMessagePortChannel.h',
341 'src/ResourceHandle.cpp',
342 'src/SharedWorkerRepository.cpp',
343 'src/SocketStreamHandle.cpp',
344 'src/SpeechInputClientImpl.cpp',
345 'src/SpeechInputClientImpl.h',
346 'src/StorageAreaProxy.cpp',
347 'src/StorageAreaProxy.h',
348 'src/StorageEventDispatcherChromium.cpp',
349 'src/StorageEventDispatcherImpl.cpp',
350 'src/StorageEventDispatcherImpl.h',
351 'src/StorageNamespaceProxy.cpp',
352 'src/StorageNamespaceProxy.h',
353 'src/TemporaryGlue.h',
354 'src/VideoFrameChromiumImpl.cpp',
355 'src/VideoFrameChromiumImpl.h',
356 'src/WebAccessibilityCache.cpp',
357 'src/WebAccessibilityCacheImpl.cpp',
358 'src/WebAccessibilityCacheImpl.h',
359 'src/WebAccessibilityObject.cpp',
360 'src/WebAnimationControllerImpl.cpp',
361 'src/WebAnimationControllerImpl.h',
362 'src/WebAttribute.cpp',
363 'src/WebBindings.cpp',
364 'src/WebCache.cpp',
365 'src/WebColor.cpp',
366 'src/WebCommon.cpp',
367 'src/WebCrossOriginPreflightResultCache.cpp',
368 'src/WebCString.cpp',
369 'src/WebCursorInfo.cpp',
370 'src/WebDOMStringList.cpp',
371 'src/WebData.cpp',
372 'src/WebDatabase.cpp',
373 'src/WebDataSourceImpl.cpp',
374 'src/WebDataSourceImpl.h',
375 'src/WebDevToolsAgentImpl.cpp',
376 'src/WebDevToolsAgentImpl.h',
377 'src/WebDevToolsFrontendImpl.cpp',
378 'src/WebDevToolsFrontendImpl.h',
379 'src/WebDocument.cpp',
380 'src/WebDocumentType.cpp',
381 'src/WebDragData.cpp',
382 'src/WebElement.cpp',
383 'src/WebEntities.cpp',
384 'src/WebEntities.h',
385 'src/WebEvent.cpp',
386 'src/WebEventListener.cpp',
387 'src/WebEventListenerPrivate.cpp',
388 'src/WebEventListenerPrivate.h',
389 'src/WebFileChooserCompletionImpl.cpp',
390 'src/WebFileChooserCompletionImpl.h',
391 'src/WebFontCache.cpp',
392 'src/WebFontDescription.cpp',
393 'src/WebFontImpl.cpp',
394 'src/WebFontImpl.h',
395 'src/WebFormControlElement.cpp',
396 'src/WebFormElement.cpp',
397 'src/WebFrameImpl.cpp',
398 'src/WebFrameImpl.h',
399 'src/WebGeolocationServiceBridgeImpl.cpp',
400 'src/WebGeolocationServiceBridgeImpl.h',
401 'src/WebGeolocationServiceMock.cpp',
402 'src/WebGlyphCache.cpp',
403 'src/WebGraphicsContext3D.cpp',
404 'src/WebGraphicsContext3DDefaultImpl.cpp',
405 'src/WebGraphicsContext3DDefaultImpl.h',
406 'src/WebHistoryItem.cpp',
407 'src/WebHTTPBody.cpp',
408 'src/WebIDBCallbacksImpl.cpp',
409 'src/WebIDBCallbacksImpl.h',
410 'src/WebIDBDatabaseError.cpp',
411 'src/WebIDBDatabaseImpl.cpp',
412 'src/WebIDBDatabaseImpl.h',
413 'src/WebIDBFactoryImpl.cpp',
414 'src/WebIDBFactoryImpl.h',
415 'src/WebIDBIndexImpl.cpp',
416 'src/WebIDBIndexImpl.h',
417 'src/WebIDBKey.cpp',
418 'src/WebIDBObjectStoreImpl.cpp',
419 'src/WebIDBObjectStoreImpl.h',
420 'src/WebImageCG.cpp',
421 'src/WebImageDecoder.cpp',
422 'src/WebImageSkia.cpp',
423 'src/WebInputElement.cpp',
424 'src/WebInputEvent.cpp',
425 'src/WebInputEventConversion.cpp',
426 'src/WebInputEventConversion.h',
427 'src/WebKit.cpp',
428 'src/WebLabelElement.cpp',
429 'src/WebMediaElement.cpp',
430 'src/WebMediaPlayerClientImpl.cpp',
431 'src/WebMediaPlayerClientImpl.h',
432 'src/WebMutationEvent.cpp',
433 'src/WebNamedNodeMap.cpp',
434 'src/WebNode.cpp',
435 'src/WebNodeCollection.cpp',
436 'src/WebNodeList.cpp',
437 'src/WebNotification.cpp',
438 'src/WebOptionElement.cpp',
439 'src/WebPageSerializer.cpp',
440 'src/WebPageSerializerImpl.cpp',
441 'src/WebPageSerializerImpl.h',
442 'src/WebPasswordFormData.cpp',
443 'src/WebPasswordFormUtils.cpp',
444 'src/WebPasswordFormUtils.h',
445 'src/WebPluginContainerImpl.h',
446 'src/WebPluginContainerImpl.cpp',
447 'src/WebPluginDocument.cpp',
448 'src/WebPluginListBuilderImpl.cpp',
449 'src/WebPluginListBuilderImpl.h',
450 'src/WebPluginLoadObserver.cpp',
451 'src/WebPluginLoadObserver.h',
452 'src/WebPopupMenuImpl.cpp',
453 'src/WebPopupMenuImpl.h',
454 'src/WebRange.cpp',
455 'src/WebRegularExpression.cpp',
456 'src/WebRuntimeFeatures.cpp',
457 'src/WebScriptController.cpp',
458 'src/WebScrollbarImpl.cpp',
459 'src/WebScrollbarImpl.h',
460 'src/WebSearchableFormData.cpp',
461 'src/WebSecurityOrigin.cpp',
462 'src/WebSecurityPolicy.cpp',
463 'src/WebSelectElement.cpp',
464 'src/WebSerializedScriptValue.cpp',
465 'src/WebSettingsImpl.cpp',
466 'src/WebSettingsImpl.h',
467 'src/WebSharedWorkerImpl.cpp',
468 'src/WebSharedWorkerImpl.h',
469 'src/WebSpeechInputControllerMockImpl.cpp',
470 'src/WebSpeechInputControllerMockImpl.h',
471 'src/WebStorageAreaImpl.cpp',
472 'src/WebStorageAreaImpl.h',
473 'src/WebStorageEventDispatcherImpl.cpp',
474 'src/WebStorageEventDispatcherImpl.h',
475 'src/WebStorageNamespaceImpl.cpp',
476 'src/WebStorageNamespaceImpl.h',
477 'src/WebString.cpp',
478 'src/WebTextRun.cpp',
479 'src/WebURL.cpp',
480 'src/WebURLLoadTiming.cpp',
481 'src/WebURLRequest.cpp',
482 'src/WebURLRequestPrivate.h',
483 'src/WebURLResponse.cpp',
484 'src/WebURLResponsePrivate.h',
485 'src/WebURLError.cpp',
486 'src/WebViewImpl.cpp',
487 'src/WebViewImpl.h',
488 'src/WebWorkerBase.cpp',
489 'src/WebWorkerBase.h',
490 'src/WebWorkerClientImpl.cpp',
491 'src/WebWorkerClientImpl.h',
492 'src/WebWorkerImpl.cpp',
493 'src/WebWorkerImpl.h',
494 'src/WrappedResourceRequest.h',
495 'src/WrappedResourceResponse.h',
496 'src/win/WebInputEventFactory.cpp',
497 'src/win/WebScreenInfoFactory.cpp',
498 ],
499 'conditions': [
500 ['inside_chromium_build==1 and OS=="win"', {
501 'type': '<(component)',
502
503 'conditions': [
504 ['component=="shared_library"', {
505 'defines': [
506 'WEBKIT_DLL',
507 ],
508 'dependencies': [
509 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore_b indings',
510 '<(chromium_src_dir)/build/temp_gyp/googleurl.gy p:googleurl',
511 '<(chromium_src_dir)/gpu/gpu.gyp:gles2_c_lib',
512 '<(chromium_src_dir)/third_party/icu/icu.gyp:*',
513 '<(chromium_src_dir)/third_party/libjpeg/libjpeg .gyp:libjpeg',
514 '<(chromium_src_dir)/third_party/libpng/libpng.g yp:libpng',
515 '<(chromium_src_dir)/third_party/libxml/libxml.g yp:libxml',
516 '<(chromium_src_dir)/third_party/libxslt/libxslt .gyp:libxslt',
517 '<(chromium_src_dir)/third_party/modp_b64/modp_b 64.gyp:modp_b64',
518 '<(chromium_src_dir)/third_party/nss/nss.gyp:*',
519 '<(chromium_src_dir)/third_party/ots/ots.gyp:ots ',
520 '<(chromium_src_dir)/third_party/zlib/zlib.gyp:z lib',
521 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
522 ],
523 'direct_dependent_settings': {
524 'defines': [
525 'WEBKIT_DLL',
526 ],
527 },
528 'export_dependent_settings': [
529 '<(chromium_src_dir)/build/temp_gyp/googleurl.gy p:googleurl',
530 '<(chromium_src_dir)/v8/tools/gyp/v8.gyp:v8',
531 ],
532 }],
533 ],
534 }, {
535 'type': '<(webkit_target_type)'
536 }],
537 ['OS=="linux" or OS=="freebsd"', {
538 'dependencies': [
539 '<(chromium_src_dir)/build/linux/system.gyp:fontconfig',
540 '<(chromium_src_dir)/build/linux/system.gyp:gtk',
541 '<(chromium_src_dir)/build/linux/system.gyp:x11',
542 ],
543 'include_dirs': [
544 'public/x11',
545 'public/gtk',
546 'public/linux',
547 ],
548 }, { # else: OS!="linux" and OS!="freebsd"
549 'sources/': [
550 ['exclude', '/gtk/'],
551 ['exclude', '/x11/'],
552 ['exclude', '/linux/'],
553 ],
554 }],
555 ['OS=="mac"', {
556 'include_dirs': [
557 'public/mac',
558 ],
559 'sources/': [
560 ['exclude', 'Skia\\.cpp$'],
561 ],
562 'variables': {
563 # FIXME: Turn on warnings on other platforms and for
564 # other targets.
565 'chromium_code': 1,
566 }
567 }, { # else: OS!="mac"
568 'sources/': [
569 ['exclude', '/mac/'],
570 ['exclude', 'CG\\.cpp$'],
571 ],
572 }],
573 ['OS=="win"', {
574 'include_dirs': [
575 'public/win',
576 ],
577 }, { # else: OS!="win"
578 'sources/': [['exclude', '/win/']],
579 }],
580 ['"ENABLE_3D_CANVAS=1" in feature_defines', {
581 # Conditionally compile in GLEW and our GraphicsContext3D im plementation.
582 'sources+': [
583 'src/GraphicsContext3D.cpp',
584 '<(chromium_src_dir)/third_party/glew/src/glew.c'
585 ],
586 'include_dirs+': [
587 '<(chromium_src_dir)/third_party/glew/include'
588 ],
589 'defines+': [
590 'GLEW_STATIC=1',
591 'GLEW_NO_GLU=1',
592 ],
593 'conditions': [
594 ['OS=="mac"', {
595 'link_settings': {
596 'libraries': [
597 '$(SDKROOT)/System/Library/Frameworks/OpenGL .framework',
598 ],
599 },
600 }],
601 ],
602 }],
603 ],
604 },
605
606 {
607 'target_name': 'inspector_resources',
608 'type': 'none',
609 'dependencies': ['devtools_html'],
610 'conditions': [
611 ['debug_devtools==0', {
612 'dependencies': ['concatenated_devtools_js'],
613 }],
614 ],
615 'copies': [
616 {
617 'destination': '<(PRODUCT_DIR)/resources/inspector',
618 'files': [
619 '<@(devtools_files)',
620 '<@(webinspector_files)',
621 ],
622 'conditions': [
623 ['debug_devtools==0', {
624 'files/': [['exclude', '\\.js$']],
625 }],
626 ],
627 },
628 {
629 'destination': '<(PRODUCT_DIR)/resources/inspector/Images',
630 'files': [
631 '<@(webinspector_image_files)',
632 '<@(devtools_image_files)',
633 ],
634 },
635 ],
636 },
637 {
638 'target_name': 'devtools_html',
639 'type': 'none',
640 'sources': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
641 'actions': [{
642 'action_name': 'devtools_html',
643 'inputs': [
644 '<(chromium_src_dir)/webkit/build/generate_devtools_html.py' ,
645 # See issue 29695: WebKit.gypi is a source file for devtools .html.
646 'WebKit.gypi',
647 '../../WebCore/inspector/front-end/inspector.html',
648 ],
649 'outputs': ['<(PRODUCT_DIR)/resources/inspector/devtools.html'],
650 'action': ['python', '<@(_inputs)', '<@(_outputs)', '<@(devtools _files)'],
651 }],
652 },
653 {
654 'target_name': 'concatenated_devtools_js',
655 'type': 'none',
656 'dependencies': ['devtools_html'],
657 'sources': ['<(PRODUCT_DIR)/resources/inspector/DevTools.js'],
658 'actions': [{
659 'action_name': 'concatenate_devtools_js',
660 'script_name': '<(chromium_src_dir)/webkit/build/concatenate_js_ files.py',
661 'input_page': '<(PRODUCT_DIR)/resources/inspector/devtools.html' ,
662 'inputs': [
663 '<@(_script_name)',
664 '<@(_input_page)',
665 '<@(webinspector_files)',
666 '<@(devtools_files)',
667 ],
668 'search_path': [
669 '../../WebCore/inspector/front-end',
670 'src/js',
671 '<(chromium_src_dir)/v8/tools',
672 ],
673 'outputs': ['<(PRODUCT_DIR)/resources/inspector/DevTools.js'],
674 'action': ['python', '<@(_script_name)', '<@(_input_page)', '<@( _search_path)', '<@(_outputs)'],
675 }],
676 },
677
678 {
679 'target_name': 'webkit_unit_tests',
680 'conditions': [
681 # FIXME: make webkit unit tests working for multi dll build.
682 ['inside_chromium_build==1 and OS=="win" and component=="shared_ library"', {
683 'type': 'none',
684 }, {
685 'type': 'executable',
686 'msvs_guid': '7CEFE800-8403-418A-AD6A-2D52C6FC3EAD',
687 'dependencies': [
688 'webkit',
689 '../../WebCore/WebCore.gyp/WebCore.gyp:webcore',
690 '<(chromium_src_dir)/testing/gtest.gyp:gtest',
691 '<(chromium_src_dir)/base/base.gyp:base',
692 '<(chromium_src_dir)/base/base.gyp:base_i18n',
693 '<(chromium_src_dir)/base/base.gyp:test_support_base',
694 '<(chromium_src_dir)/gpu/gpu.gyp:gles2_c_lib',
695 ],
696 'include_dirs': [
697 'public',
698 'src',
699 ],
700 'sources': [
701 'tests/DragImageTest.cpp',
702 'tests/KeyboardTest.cpp',
703 'tests/KURLTest.cpp',
704 'tests/RunAllTests.cpp',
705 ],
706 'conditions': [
707 ['OS=="win"', {
708 'sources': [
709 # FIXME: Port PopupMenuTest to Linux and Mac.
710 'tests/PopupMenuTest.cpp',
711 'tests/TransparencyWinTest.cpp',
712 'tests/UniscribeHelperTest.cpp',
713 ],
714 }],
715 ['OS=="mac"', {
716 'sources!': [
717 # FIXME: Port DragImageTest to Mac.
718 'tests/DragImageTest.cpp',
719 ],
720 }],
721 ],
722 }],
723 ],
724 },
725 {
726 'target_name': 'ImageDiff',
727 'type': 'executable',
728 'dependencies': [
729 'webkit',
730 '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf' ,
731 '<(chromium_src_dir)/gfx/gfx.gyp:gfx',
732 ],
733 'include_dirs': [
734 '../../JavaScriptCore',
735 '<(DEPTH)',
736 ],
737 'sources': [
738 '../../WebKitTools/DumpRenderTree/chromium/ImageDiff.cpp',
739 ],
740 },
741 {
742 'target_name': 'DumpRenderTree',
743 'type': 'executable',
744 'mac_bundle': 1,
745 'dependencies': [
746 'ImageDiff',
747 'inspector_resources',
748 'webkit',
749 '../../JavaScriptCore/JavaScriptCore.gyp/JavaScriptCore.gyp:wtf_ config',
750 '<(chromium_src_dir)/third_party/icu/icu.gyp:icuuc',
751 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:copy_npap i_layout_test_plugin',
752 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_su pport',
753 '<(chromium_src_dir)/gpu/gpu.gyp:gles2_c_lib'
754 ],
755 'include_dirs': [
756 '.',
757 '../../JavaScriptCore',
758 '../../JavaScriptCore/wtf', # wtf/text/*.h refers headers in wtf / without wtf/.
759 '<(DEPTH)',
760 ],
761 'defines': [
762 # Technically not a unit test but require functions available on ly to
763 # unit tests.
764 'UNIT_TEST',
765 ],
766 'sources': [
767 '<@(drt_files)',
768 ],
769 'conditions': [
770 ['OS=="win"', {
771 'dependencies': ['LayoutTestHelper'],
772
773 'resource_include_dirs': ['<(SHARED_INTERMEDIATE_DIR)/webkit '],
774 'sources': [
775 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
776 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resou rces.rc',
777 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.rc',
778 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_strings_en-US. rc',
779 ],
780 'conditions': [
781 ['inside_chromium_build==1 and component=="shared_librar y"', {
782 'sources': [
783 'src/ChromiumCurrentTime.cpp',
784 'src/ChromiumThreading.cpp',
785 ],
786 'include_dirs': [
787 'public',
788 ],
789 'dependencies': [
790 '../../JavaScriptCore/JavaScriptCore.gyp/JavaScr iptCore.gyp:wtf',
791 ],
792 }],
793 ],
794 'copies': [{
795 'destination': '<(PRODUCT_DIR)',
796 'files': ['<(ahem_path)'],
797 }],
798 },{ # OS!="win"
799 'sources/': [
800 ['exclude', 'Win\\.cpp$'],
801 ],
802 'actions': [
803 {
804 'action_name': 'repack_locale',
805 'variables': {
806 'repack_path': '<(chromium_src_dir)/tools/data_p ack/repack.py',
807 'pak_inputs': [
808 '<(SHARED_INTERMEDIATE_DIR)/net/net_resource s.pak',
809 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_ch romium_resources.pak',
810 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_st rings_en-US.pak',
811 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_re sources.pak',
812 ]},
813 'inputs': [
814 '<(repack_path)',
815 '<@(pak_inputs)',
816 ],
817 'outputs': [
818 '<(INTERMEDIATE_DIR)/repack/DumpRenderTree.pak',
819 ],
820 'action': ['python', '<(repack_path)', '<@(_outputs) ', '<@(pak_inputs)'],
821 'process_outputs_as_mac_bundle_resources': 1,
822 },
823 ], # actions
824 }],
825 ['OS=="mac"', {
826 'dependencies': ['LayoutTestHelper'],
827
828 'mac_bundle_resources': [
829 '<(ahem_path)',
830 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatc her100.ttf',
831 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatc her200.ttf',
832 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatc her300.ttf',
833 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatc her400.ttf',
834 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatc her500.ttf',
835 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatc her600.ttf',
836 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatc her700.ttf',
837 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatc her800.ttf',
838 '../../WebKitTools/DumpRenderTree/fonts/WebKitWeightWatc her900.ttf',
839 '<(SHARED_INTERMEDIATE_DIR)/webkit/textAreaResizeCorner. png',
840 ],
841 # Workaround for http://code.google.com/p/gyp/issues/detail? id=160
842 'copies': [{
843 'destination': '<(PRODUCT_DIR)/DumpRenderTree.app/Conten ts/PlugIns/',
844 'files': ['<(PRODUCT_DIR)/TestNetscapePlugIn.plugin/'],
845 }],
846 },{ # OS!="mac"
847 'sources/': [
848 # .mm is already excluded by common.gypi
849 ['exclude', 'Mac\\.cpp$'],
850 ]
851 }],
852 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" ', {
853 'dependencies': [
854 '<(chromium_src_dir)/build/linux/system.gyp:fontconfig',
855 '<(chromium_src_dir)/build/linux/system.gyp:gtk',
856 ],
857 'include_dirs': [
858 'public/gtk',
859 ],
860 'copies': [{
861 'destination': '<(PRODUCT_DIR)',
862 'files': [
863 '<(ahem_path)',
864 '../../WebKitTools/DumpRenderTree/chromium/fonts.con f',
865 '<(INTERMEDIATE_DIR)/repack/DumpRenderTree.pak',
866 ]
867 }],
868 },{ # OS!="linux" and OS!="freebsd" and OS!="openbsd" and OS!="s olaris"
869 'sources/': [
870 ['exclude', '(Gtk|Linux)\\.cpp$']
871 ]
872 }],
873 ],
874 },
875 ], # targets
876 'conditions': [
877 ['OS=="win"', {
878 'targets': [{
879 'target_name': 'LayoutTestHelper',
880 'type': 'executable',
881 'sources': ['../../WebKitTools/DumpRenderTree/chromium/LayoutTes tHelperWin.cpp'],
882 }],
883 }],
884 ['OS=="mac"', {
885 'targets': [
886 {
887 'target_name': 'LayoutTestHelper',
888 'type': 'executable',
889 'sources': ['../../WebKitTools/DumpRenderTree/chromium/Layou tTestHelper.mm'],
890 'link_settings': {
891 'libraries': [
892 '$(SDKROOT)/System/Library/Frameworks/AppKit.framewo rk',
893 ],
894 },
895 },
896 ],
897 }],
898 ], # conditions
899 }
900
901 # Local Variables:
902 # tab-width:2
903 # indent-tabs-mode:nil
904 # End:
905 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698