| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'chromium_code': 0, | 7 'chromium_code': 0, |
| 8 'use_libcc_for_compositor%': 0, | 8 'use_libcc_for_compositor%': 0, |
| 9 'webkit_compositor_bindings_sources': [ | 9 'webkit_compositor_bindings_sources': [ |
| 10 'CCThreadImpl.cpp', | 10 'CCThreadImpl.cpp', |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 'WebTransformAnimationCurveImpl.cpp', | 40 'WebTransformAnimationCurveImpl.cpp', |
| 41 'WebTransformAnimationCurveImpl.h', | 41 'WebTransformAnimationCurveImpl.h', |
| 42 ], | 42 ], |
| 43 'conditions': [ | 43 'conditions': [ |
| 44 ['inside_chromium_build==0', { | 44 ['inside_chromium_build==0', { |
| 45 'webkit_src_dir': '../../../../..', | 45 'webkit_src_dir': '../../../../..', |
| 46 },{ | 46 },{ |
| 47 'webkit_src_dir': '../../third_party/WebKit', | 47 'webkit_src_dir': '../../third_party/WebKit', |
| 48 }], | 48 }], |
| 49 ], | 49 ], |
| 50 | |
| 51 | |
| 52 }, | 50 }, |
| 53 'targets': [ | 51 'targets': [ |
| 54 { | 52 { |
| 55 'target_name': 'webkit_compositor_support', | 53 'target_name': 'webkit_compositor_support', |
| 56 'type': 'static_library', | 54 'type': 'static_library', |
| 57 'dependencies': [ | 55 'dependencies': [ |
| 58 '../../skia/skia.gyp:skia', | 56 '../../skia/skia.gyp:skia', |
| 59 '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit', | |
| 60 ], | 57 ], |
| 61 'sources': [ | 58 'sources': [ |
| 62 'web_compositor_support_impl.cc', | 59 'web_compositor_support_impl.cc', |
| 63 'web_compositor_support_impl.h', | 60 'web_compositor_support_impl.h', |
| 64 ], | 61 ], |
| 65 'include_dirs': [ | 62 'include_dirs': [ |
| 66 '../..', | 63 '../..', |
| 67 '<(webkit_src_dir)/Source/Platform/chromium', | 64 '<(webkit_src_dir)/Source/Platform/chromium', |
| 68 ], | 65 ], |
| 69 'conditions': [ | 66 'conditions': [ |
| 70 ['use_libcc_for_compositor==1', { | 67 ['use_libcc_for_compositor==1', { |
| 71 'include_dirs': [ | 68 'include_dirs': [ |
| 72 '../../cc', | 69 '../../cc', |
| 73 '../../cc/stubs', | 70 '../../cc/stubs', |
| 74 ], | 71 ], |
| 75 'dependencies': [ | 72 'dependencies': [ |
| 76 'webkit_compositor_bindings', | 73 'webkit_compositor_bindings', |
| 77 '../../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', | 74 '<(webkit_src_dir)/Source/WTF/WTF.gyp/WTF.gyp:wtf', |
| 78 ], | 75 ], |
| 79 'defines': [ | 76 'defines': [ |
| 80 'USE_LIBCC_FOR_COMPOSITOR', | 77 'USE_LIBCC_FOR_COMPOSITOR', |
| 81 ], | 78 ], |
| 82 }], | 79 }], |
| 83 ], | 80 ], |
| 84 }, | 81 }, |
| 85 ], | 82 ], |
| 86 'conditions': [ | 83 'conditions': [ |
| 87 ['use_libcc_for_compositor==1', { | 84 ['use_libcc_for_compositor==1', { |
| 88 'targets': [ | 85 'targets': [ |
| 89 { | 86 { |
| 90 'target_name': 'webkit_compositor_bindings', | 87 'target_name': 'webkit_compositor_bindings', |
| 91 'type': 'static_library', | 88 'type': 'static_library', |
| 92 'dependencies': [ | 89 'dependencies': [ |
| 93 '../../base/base.gyp:base', | 90 '../../base/base.gyp:base', |
| 94 '../../cc/cc.gyp:cc', | 91 '../../cc/cc.gyp:cc', |
| 95 '../../skia/skia.gyp:skia', | 92 '../../skia/skia.gyp:skia', |
| 96 '../../third_party/WebKit/Source/Platform/Platform.gyp/Platform.gyp:
webkit_platform', | |
| 97 # We have to depend on WTF directly to pick up the correct defines f
or WTF headers - for instance USE_SYSTEM_MALLOC. | 93 # We have to depend on WTF directly to pick up the correct defines f
or WTF headers - for instance USE_SYSTEM_MALLOC. |
| 98 '../../third_party/WebKit/Source/WTF/WTF.gyp/WTF.gyp:wtf', | 94 '<(webkit_src_dir)/Source/WTF/WTF.gyp/WTF.gyp:wtf', |
| 99 ], | |
| 100 'defines': [ | |
| 101 'WEBKIT_IMPLEMENTATION=1', | |
| 102 ], | 95 ], |
| 103 'include_dirs': [ | 96 'include_dirs': [ |
| 104 '../../cc', | 97 '../../cc', |
| 105 '../../cc/stubs', | 98 '../../cc/stubs', |
| 106 'stubs', | 99 '<(webkit_src_dir)/Source/Platform/chromium', |
| 107 '../../third_party/WebKit/Source/WebKit/chromium/public', | |
| 108 ], | 100 ], |
| 109 'sources': [ | 101 'sources': [ |
| 110 '<@(webkit_compositor_bindings_sources)', | 102 '<@(webkit_compositor_bindings_sources)', |
| 111 'stubs/public/WebTransformationMatrix.h', | |
| 112 'webcore_convert.cc', | 103 'webcore_convert.cc', |
| 113 'webcore_convert.h', | 104 'webcore_convert.h', |
| 114 ], | 105 ], |
| 115 'conditions': [ | 106 'defines': [ |
| 116 ['component=="shared_library"', { | 107 'USE_LIBCC_FOR_COMPOSITOR', |
| 117 'defines': [ | 108 ], |
| 118 'WEBKIT_DLL', | |
| 119 ], | |
| 120 }], | |
| 121 ] | |
| 122 }, | 109 }, |
| 123 ], | 110 ], |
| 124 }], | 111 }], |
| 125 ], | 112 ], |
| 126 } | 113 } |
| OLD | NEW |