OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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 # This is defined here because we need to compile this set of files | |
9 # twice with different defines. Once so it calls real GL, again so it | |
10 # calls mock GL for the unit tests. | |
11 'gpu_service_source_files': [ | |
12 'command_buffer/service/buffer_manager.h', | |
13 'command_buffer/service/buffer_manager.cc', | |
14 'command_buffer/service/framebuffer_manager.h', | |
15 'command_buffer/service/framebuffer_manager.cc', | |
16 'command_buffer/service/context_group.h', | |
17 'command_buffer/service/context_group.cc', | |
18 'command_buffer/service/gles2_cmd_decoder.h', | |
19 'command_buffer/service/gles2_cmd_decoder_autogen.h', | |
20 'command_buffer/service/gles2_cmd_decoder.cc', | |
21 'command_buffer/service/gles2_cmd_validation.h', | |
22 'command_buffer/service/gles2_cmd_validation.cc', | |
23 'command_buffer/service/gles2_cmd_validation_autogen.h', | |
24 'command_buffer/service/gles2_cmd_validation_implementation_autogen.h', | |
25 'command_buffer/service/gl_utils.h', | |
26 'command_buffer/service/gpu_processor.h', | |
27 'command_buffer/service/gpu_processor.cc', | |
28 'command_buffer/service/gpu_processor_linux.cc', | |
29 'command_buffer/service/gpu_processor_mac.cc', | |
30 'command_buffer/service/gpu_processor_win.cc', | |
31 'command_buffer/service/gpu_processor_mock.h', | |
32 'command_buffer/service/id_manager.h', | |
33 'command_buffer/service/id_manager.cc', | |
34 'command_buffer/service/program_manager.h', | |
35 'command_buffer/service/program_manager.cc', | |
36 'command_buffer/service/renderbuffer_manager.h', | |
37 'command_buffer/service/renderbuffer_manager.cc', | |
38 'command_buffer/service/shader_manager.h', | |
39 'command_buffer/service/shader_manager.cc', | |
40 'command_buffer/service/texture_manager.h', | |
41 'command_buffer/service/texture_manager.cc', | |
42 ], | |
43 }, | 8 }, |
44 'targets': [ | 9 'targets': [ |
45 { | 10 { |
46 'target_name': 'gl_libs', | |
47 'type': 'static_library', | |
48 'include_dirs': [ | |
49 '../third_party/glew/include', | |
50 ], | |
51 'defines': [ | |
52 'GLEW_STATIC', | |
53 ], | |
54 'all_dependent_settings': { | |
55 'include_dirs': [ | |
56 '../third_party/glew/include', | |
57 ], | |
58 'defines': [ | |
59 'GLEW_STATIC', | |
60 ], | |
61 }, | |
62 'sources': [ | |
63 '../third_party/glew/src/glew.c', | |
64 ], | |
65 'conditions': [ | |
66 [ 'OS=="linux"', | |
67 { | |
68 'all_dependent_settings': { | |
69 'defines': [ | |
70 'GL_GLEXT_PROTOTYPES', | |
71 ], | |
72 'ldflags': [ | |
73 '-L<(PRODUCT_DIR)', | |
74 ], | |
75 'link_settings': { | |
76 'libraries': [ | |
77 '-lX11', | |
78 # For dlsym() in '../third_party/glew/src/glew.c' | |
79 '-ldl', | |
80 ], | |
81 }, | |
82 }, | |
83 }, | |
84 ], | |
85 [ 'OS=="mac"', | |
86 { | |
87 'link_settings': { | |
88 'libraries': [ | |
89 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', | |
90 ], | |
91 }, | |
92 }, | |
93 ], | |
94 [ 'OS=="win"', | |
95 { | |
96 'all_dependent_settings': { | |
97 'link_settings': { | |
98 'libraries': [ | |
99 '-lOpenGL32.lib', | |
100 ], | |
101 }, | |
102 }, | |
103 }, | |
104 ], | |
105 ], | |
106 }, | |
107 { | |
108 'target_name': 'command_buffer_common', | 11 'target_name': 'command_buffer_common', |
109 'type': 'static_library', | 12 'type': 'static_library', |
110 'include_dirs': [ | 13 'include_dirs': [ |
111 '.', | 14 '.', |
112 '..', | 15 '..', |
113 ], | 16 ], |
114 'all_dependent_settings': { | 17 'all_dependent_settings': { |
115 'include_dirs': [ | 18 'include_dirs': [ |
116 '.', | 19 '.', |
117 '..', | 20 '..', |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 'sources': [ | 114 'sources': [ |
212 'command_buffer/client/cmd_buffer_helper.cc', | 115 'command_buffer/client/cmd_buffer_helper.cc', |
213 'command_buffer/client/cmd_buffer_helper.h', | 116 'command_buffer/client/cmd_buffer_helper.h', |
214 'command_buffer/client/fenced_allocator.cc', | 117 'command_buffer/client/fenced_allocator.cc', |
215 'command_buffer/client/fenced_allocator.h', | 118 'command_buffer/client/fenced_allocator.h', |
216 'command_buffer/client/ring_buffer.cc', | 119 'command_buffer/client/ring_buffer.cc', |
217 'command_buffer/client/ring_buffer.h', | 120 'command_buffer/client/ring_buffer.h', |
218 ], | 121 ], |
219 }, | 122 }, |
220 { | 123 { |
221 'target_name': 'command_buffer_service_impl', | 124 'target_name': 'command_buffer_service', |
222 'type': 'static_library', | 125 'type': 'static_library', |
223 'include_dirs': [ | 126 'include_dirs': [ |
224 '..', | 127 '..', |
225 ], | 128 ], |
226 'all_dependent_settings': { | 129 'all_dependent_settings': { |
227 'include_dirs': [ | 130 'include_dirs': [ |
228 '..', | 131 '..', |
229 ], | 132 ], |
230 }, | 133 }, |
231 'dependencies': [ | 134 'dependencies': [ |
232 'command_buffer_common', | 135 'command_buffer_common', |
233 'gl_libs', | 136 '../app/app.gyp:app_base', |
234 '../gfx/gfx.gyp:gfx', | 137 '../gfx/gfx.gyp:gfx', |
235 ], | 138 ], |
236 'sources': [ | 139 'sources': [ |
| 140 'command_buffer/service/buffer_manager.h', |
| 141 'command_buffer/service/buffer_manager.cc', |
| 142 'command_buffer/service/framebuffer_manager.h', |
| 143 'command_buffer/service/framebuffer_manager.cc', |
| 144 'command_buffer/service/cmd_buffer_engine.h', |
| 145 'command_buffer/service/cmd_parser.cc', |
| 146 'command_buffer/service/cmd_parser.h', |
| 147 'command_buffer/service/command_buffer_service.cc', |
| 148 'command_buffer/service/command_buffer_service.h', |
237 'command_buffer/service/common_decoder.cc', | 149 'command_buffer/service/common_decoder.cc', |
238 'command_buffer/service/common_decoder.h', | 150 'command_buffer/service/common_decoder.h', |
239 'command_buffer/service/cmd_buffer_engine.h', | 151 'command_buffer/service/context_group.h', |
240 'command_buffer/service/command_buffer_service.cc', | 152 'command_buffer/service/context_group.cc', |
241 'command_buffer/service/command_buffer_service.h', | 153 'command_buffer/service/gles2_cmd_decoder.h', |
242 'command_buffer/service/cmd_parser.cc', | 154 'command_buffer/service/gles2_cmd_decoder_autogen.h', |
243 'command_buffer/service/cmd_parser.h', | 155 'command_buffer/service/gles2_cmd_decoder.cc', |
| 156 'command_buffer/service/gles2_cmd_validation.h', |
| 157 'command_buffer/service/gles2_cmd_validation.cc', |
| 158 'command_buffer/service/gles2_cmd_validation_autogen.h', |
| 159 'command_buffer/service/gles2_cmd_validation_implementation_autogen.h', |
| 160 'command_buffer/service/gl_utils.h', |
| 161 'command_buffer/service/gpu_processor.h', |
| 162 'command_buffer/service/gpu_processor.cc', |
| 163 'command_buffer/service/gpu_processor_linux.cc', |
| 164 'command_buffer/service/gpu_processor_mac.cc', |
| 165 'command_buffer/service/gpu_processor_mock.h', |
| 166 'command_buffer/service/gpu_processor_win.cc', |
| 167 'command_buffer/service/id_manager.h', |
| 168 'command_buffer/service/id_manager.cc', |
244 'command_buffer/service/mocks.h', | 169 'command_buffer/service/mocks.h', |
245 ], | 170 'command_buffer/service/program_manager.h', |
246 }, | 171 'command_buffer/service/program_manager.cc', |
247 { | 172 'command_buffer/service/renderbuffer_manager.h', |
248 'target_name': 'command_buffer_service', | 173 'command_buffer/service/renderbuffer_manager.cc', |
249 'type': 'static_library', | 174 'command_buffer/service/shader_manager.h', |
250 'include_dirs': [ | 175 'command_buffer/service/shader_manager.cc', |
251 '..', | 176 'command_buffer/service/texture_manager.h', |
252 ], | 177 'command_buffer/service/texture_manager.cc', |
253 'all_dependent_settings': { | |
254 'include_dirs': [ | |
255 '..', | |
256 ], | |
257 }, | |
258 'dependencies': [ | |
259 'command_buffer_service_impl', | |
260 'gl_libs', | |
261 '../app/app.gyp:app_base', | |
262 ], | |
263 'sources': [ | |
264 '<@(gpu_service_source_files)', | |
265 ], | 178 ], |
266 'conditions': [ | 179 'conditions': [ |
267 ['OS == "linux"', { | 180 ['OS == "linux"', { |
268 'dependencies': [ | 181 'dependencies': [ |
269 '../build/linux/system.gyp:gtk', | 182 '../build/linux/system.gyp:gtk', |
270 ], | 183 ], |
271 }], | 184 }], |
272 # TODO(gman): Change this condition to be false if the backend is | 185 # TODO(gman): Change this condition to be false if the backend is |
273 # native OpenGL ES 2.0 and false if the backend is OpenGL. | 186 # native OpenGL ES 2.0 and false if the backend is OpenGL. |
274 ['1==1', { | 187 ['1==1', { |
(...skipping 23 matching lines...) Expand all Loading... |
298 }, | 211 }, |
299 'sources': [ | 212 'sources': [ |
300 'gpu_plugin/gpu_plugin.cc', | 213 'gpu_plugin/gpu_plugin.cc', |
301 'gpu_plugin/gpu_plugin.h', | 214 'gpu_plugin/gpu_plugin.h', |
302 ], | 215 ], |
303 }, | 216 }, |
304 { | 217 { |
305 'target_name': 'gpu_unittests', | 218 'target_name': 'gpu_unittests', |
306 'type': 'executable', | 219 'type': 'executable', |
307 'dependencies': [ | 220 'dependencies': [ |
| 221 '../app/app.gyp:app_base', |
308 '../testing/gmock.gyp:gmock', | 222 '../testing/gmock.gyp:gmock', |
309 '../testing/gmock.gyp:gmockmain', | 223 '../testing/gmock.gyp:gmockmain', |
310 '../testing/gtest.gyp:gtest', | 224 '../testing/gtest.gyp:gtest', |
311 'command_buffer_client', | 225 'command_buffer_client', |
312 'command_buffer_common', | 226 'command_buffer_common', |
313 'command_buffer_service_impl', | 227 'command_buffer_service', |
314 'gles2_lib', | 228 'gles2_lib', |
315 'gles2_implementation', | 229 'gles2_implementation', |
316 'gles2_cmd_helper', | 230 'gles2_cmd_helper', |
317 ], | 231 ], |
318 'sources': [ | 232 'sources': [ |
319 '<@(gpu_service_source_files)', | |
320 'command_buffer/client/cmd_buffer_helper_test.cc', | 233 'command_buffer/client/cmd_buffer_helper_test.cc', |
321 'command_buffer/client/fenced_allocator_test.cc', | 234 'command_buffer/client/fenced_allocator_test.cc', |
322 'command_buffer/client/gles2_implementation_unittest.cc', | 235 'command_buffer/client/gles2_implementation_unittest.cc', |
323 'command_buffer/client/ring_buffer_test.cc', | 236 'command_buffer/client/ring_buffer_test.cc', |
324 'command_buffer/common/bitfield_helpers_test.cc', | 237 'command_buffer/common/bitfield_helpers_test.cc', |
325 'command_buffer/common/gles2_cmd_format_test.cc', | 238 'command_buffer/common/gles2_cmd_format_test.cc', |
326 'command_buffer/common/gles2_cmd_format_test_autogen.h', | 239 'command_buffer/common/gles2_cmd_format_test_autogen.h', |
327 'command_buffer/common/gles2_cmd_id_test.cc', | 240 'command_buffer/common/gles2_cmd_id_test.cc', |
328 'command_buffer/common/gles2_cmd_id_test_autogen.h', | 241 'command_buffer/common/gles2_cmd_id_test_autogen.h', |
329 'command_buffer/common/gles2_cmd_format_test.cc', | 242 'command_buffer/common/gles2_cmd_format_test.cc', |
330 'command_buffer/common/gles2_cmd_format_test_autogen.h', | 243 'command_buffer/common/gles2_cmd_format_test_autogen.h', |
331 'command_buffer/common/gles2_cmd_id_test.cc', | 244 'command_buffer/common/gles2_cmd_id_test.cc', |
332 'command_buffer/common/gles2_cmd_id_test_autogen.h', | 245 'command_buffer/common/gles2_cmd_id_test_autogen.h', |
333 'command_buffer/common/gles2_cmd_format_test.cc', | 246 'command_buffer/common/gles2_cmd_format_test.cc', |
334 'command_buffer/common/gles2_cmd_format_test_autogen.h', | 247 'command_buffer/common/gles2_cmd_format_test_autogen.h', |
335 'command_buffer/common/gles2_cmd_id_test.cc', | 248 'command_buffer/common/gles2_cmd_id_test.cc', |
336 'command_buffer/common/gles2_cmd_id_test_autogen.h', | 249 'command_buffer/common/gles2_cmd_id_test_autogen.h', |
337 'command_buffer/common/id_allocator_test.cc', | 250 'command_buffer/common/id_allocator_test.cc', |
| 251 'command_buffer/common/unittest_main.cc', |
338 'command_buffer/service/buffer_manager_unittest.cc', | 252 'command_buffer/service/buffer_manager_unittest.cc', |
339 'command_buffer/service/context_group_unittest.cc', | 253 'command_buffer/service/context_group_unittest.cc', |
340 'command_buffer/service/cmd_parser_test.cc', | 254 'command_buffer/service/cmd_parser_test.cc', |
341 'command_buffer/service/cmd_parser_test.cc', | 255 'command_buffer/service/cmd_parser_test.cc', |
342 'command_buffer/service/common_decoder_unittest.cc', | 256 'command_buffer/service/common_decoder_unittest.cc', |
343 'command_buffer/service/framebuffer_manager_unittest.cc', | 257 'command_buffer/service/framebuffer_manager_unittest.cc', |
344 'command_buffer/service/gpu_processor_unittest.cc', | 258 'command_buffer/service/gpu_processor_unittest.cc', |
345 'command_buffer/service/gl_context_stub.cc', | |
346 'command_buffer/service/gl_interface.h', | |
347 'command_buffer/service/gl_interface.cc', | |
348 'command_buffer/service/gl_mock.h', | |
349 'command_buffer/service/gl_mock.cc', | |
350 'command_buffer/service/gles2_cmd_decoder_unittest_base.h', | 259 'command_buffer/service/gles2_cmd_decoder_unittest_base.h', |
351 'command_buffer/service/gles2_cmd_decoder_unittest_base.cc', | 260 'command_buffer/service/gles2_cmd_decoder_unittest_base.cc', |
352 'command_buffer/service/gles2_cmd_decoder_unittest.cc', | 261 'command_buffer/service/gles2_cmd_decoder_unittest.cc', |
353 'command_buffer/service/gles2_cmd_decoder_unittest_1.cc', | 262 'command_buffer/service/gles2_cmd_decoder_unittest_1.cc', |
354 'command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h', | 263 'command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h', |
355 'command_buffer/service/gles2_cmd_decoder_unittest_2.cc', | 264 'command_buffer/service/gles2_cmd_decoder_unittest_2.cc', |
356 'command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h', | 265 'command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h', |
357 'command_buffer/service/id_manager_unittest.cc', | 266 'command_buffer/service/id_manager_unittest.cc', |
358 'command_buffer/service/program_manager_unittest.cc', | 267 'command_buffer/service/program_manager_unittest.cc', |
359 'command_buffer/service/renderbuffer_manager_unittest.cc', | 268 'command_buffer/service/renderbuffer_manager_unittest.cc', |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 }, | 334 }, |
426 ], | 335 ], |
427 ], | 336 ], |
428 } | 337 } |
429 | 338 |
430 # Local Variables: | 339 # Local Variables: |
431 # tab-width:2 | 340 # tab-width:2 |
432 # indent-tabs-mode:nil | 341 # indent-tabs-mode:nil |
433 # End: | 342 # End: |
434 # vim: set expandtab tabstop=2 shiftwidth=2: | 343 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |