OLD | NEW |
---|---|
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'target_defaults': { | 9 'target_defaults': { |
10 'sources/': [ | 10 'sources/': [ |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
93 'compositor_cc.h', | 93 'compositor_cc.h', |
94 ], | 94 ], |
95 } | 95 } |
96 ], | 96 ], |
97 ], | 97 ], |
98 }, | 98 }, |
99 { | 99 { |
100 'target_name': 'compositor_test_support', | 100 'target_name': 'compositor_test_support', |
101 'type': 'static_library', | 101 'type': 'static_library', |
102 'dependencies': [ | 102 'dependencies': [ |
103 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_support', | 103 '<(DEPTH)/base/base.gyp:base', |
104 '<(DEPTH)/third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit', | 104 '<(DEPTH)/skia/skia.gyp:skia', |
105 ], | 105 ], |
106 'sources': [ | 106 'sources': [ |
107 'compositor_test_support.cc', | 107 'compositor_test_support.cc', |
108 'compositor_test_support.h', | 108 'compositor_test_support.h', |
109 ], | 109 ], |
110 'conditions': [ | 110 'conditions': [ |
111 ['use_webkit_compositor == 1', { | 111 ['use_webkit_compositor == 1', { |
112 'dependencies': [ | 112 'dependencies': [ |
113 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_support', | 113 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_support', |
114 '<(DEPTH)/third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:web kit', | |
114 ], | 115 ], |
115 }], | 116 }], |
117 ['views_compositor==1', { | |
118 'sources': [ | |
119 'compositor.cc', | |
piman
2011/10/25 18:06:51
Why are we compiling these twice? Also, won't we h
jonathan.backer
2011/10/25 20:10:09
The idea is to avoid pulling in the actual impleme
| |
120 'compositor.h', | |
121 'layer.cc', | |
122 'layer.h', | |
123 'layer_animator.cc', | |
124 'layer_animator.h', | |
125 'layer_animator_delegate.h', | |
126 'test_compositor.cc', | |
127 'test_compositor.h', | |
128 'test_texture.cc', | |
129 'test_texture.h', | |
130 ], | |
131 }], | |
116 ], | 132 ], |
117 }, | 133 }, |
118 { | 134 { |
119 'target_name': 'compositor_unittests', | 135 'target_name': 'compositor_unittests', |
120 'type': 'executable', | 136 'type': 'executable', |
121 'dependencies': [ | 137 'dependencies': [ |
122 '<(DEPTH)/base/base.gyp:base', | 138 '<(DEPTH)/base/base.gyp:base', |
123 '<(DEPTH)/base/base.gyp:test_support_base', | 139 '<(DEPTH)/base/base.gyp:test_support_base', |
124 '<(DEPTH)/skia/skia.gyp:skia', | 140 '<(DEPTH)/skia/skia.gyp:skia', |
125 '<(DEPTH)/testing/gtest.gyp:gtest', | 141 '<(DEPTH)/testing/gtest.gyp:gtest', |
126 '<(DEPTH)/ui/gfx/gl/gl.gyp:gl', | 142 '<(DEPTH)/ui/gfx/gl/gl.gyp:gl', |
127 '<(DEPTH)/ui/ui.gyp:gfx_resources', | 143 '<(DEPTH)/ui/ui.gyp:gfx_resources', |
128 '<(DEPTH)/ui/ui.gyp:ui', | 144 '<(DEPTH)/ui/ui.gyp:ui', |
129 '<(DEPTH)/ui/ui.gyp:ui_resources', | 145 '<(DEPTH)/ui/ui.gyp:ui_resources', |
130 'compositor', | 146 'compositor', |
131 'compositor_test_support', | 147 'compositor_test_support', |
132 ], | 148 ], |
133 'sources': [ | 149 'sources': [ |
134 'layer_unittest.cc', | 150 'layer_unittest.cc', |
135 'run_all_unittests.cc', | 151 'run_all_unittests.cc', |
136 'test_compositor.cc', | |
137 'test_compositor.h', | |
138 'test_compositor_host.h', | 152 'test_compositor_host.h', |
139 'test_compositor_host_linux.cc', | 153 'test_compositor_host_linux.cc', |
140 'test_compositor_host_win.cc', | 154 'test_compositor_host_win.cc', |
141 'test_suite.cc', | 155 'test_suite.cc', |
142 'test_suite.h', | 156 'test_suite.h', |
143 'test_texture.cc', | |
144 'test_texture.h', | |
145 '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.rc', | 157 '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.rc', |
146 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.rc', | 158 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.rc', |
147 ], | 159 ], |
148 'conditions': [ | 160 'conditions': [ |
149 # osmesa GL implementation is used on linux. | 161 # osmesa GL implementation is used on linux. |
150 ['OS=="linux"', { | 162 ['OS=="linux"', { |
151 'dependencies': [ | 163 'dependencies': [ |
152 '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa', | 164 '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa', |
153 ], | 165 ], |
154 }], | 166 }], |
155 ['OS!="mac"', { | 167 ['OS!="mac"', { |
156 'dependencies': [ | 168 'dependencies': [ |
157 '<(DEPTH)/chrome/chrome.gyp:packed_resources', | 169 '<(DEPTH)/chrome/chrome.gyp:packed_resources', |
158 ], | 170 ], |
159 }], | 171 }], |
160 ], | 172 ], |
161 }, | 173 }, |
162 ], | 174 ], |
163 } | 175 } |
OLD | NEW |