| 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_source_files': [ |
| 12 'command_buffer/service/gles2_cmd_decoder.h', |
| 13 'command_buffer/service/gles2_cmd_decoder_autogen.h', |
| 14 'command_buffer/service/gles2_cmd_decoder.cc', |
| 15 'command_buffer/service/gles2_cmd_validation.h', |
| 16 'command_buffer/service/gles2_cmd_validation.cc', |
| 17 'command_buffer/service/gles2_cmd_validation_autogen.h', |
| 18 'command_buffer/service/gles2_cmd_validation_implementation_autogen.h', |
| 19 'command_buffer/service/gl_utils.h', |
| 20 ], |
| 8 }, | 21 }, |
| 9 'includes': [ | 22 'includes': [ |
| 10 '../build/common.gypi', | 23 '../build/common.gypi', |
| 11 ], | 24 ], |
| 12 'targets': [ | 25 'targets': [ |
| 13 { | 26 { |
| 14 'target_name': 'gl_libs', | 27 'target_name': 'gl_libs', |
| 15 'type': 'static_library', | 28 'type': 'static_library', |
| 16 'include_dirs': [ | 29 'include_dirs': [ |
| 17 '../third_party/glew/include', | 30 '../third_party/glew/include', |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 'command_buffer/common', | 179 'command_buffer/common', |
| 167 ], | 180 ], |
| 168 'dependencies': [ | 181 'dependencies': [ |
| 169 'gles2_lib', | 182 'gles2_lib', |
| 170 'gles2_implementation', | 183 'gles2_implementation', |
| 171 'gles2_cmd_helper', | 184 'gles2_cmd_helper', |
| 172 ], | 185 ], |
| 173 'direct_dependent_settings': { | 186 'direct_dependent_settings': { |
| 174 'sources': [ | 187 'sources': [ |
| 175 'command_buffer/common/bitfield_helpers_test.cc', | 188 'command_buffer/common/bitfield_helpers_test.cc', |
| 176 'command_buffer/common/gles2_cmd_format_test.cc', | |
| 177 'command_buffer/common/gles2_cmd_format_test_autogen.h', | |
| 178 'command_buffer/common/gles2_cmd_id_test.cc', | |
| 179 'command_buffer/common/gles2_cmd_id_test_autogen.h', | |
| 180 ], | 189 ], |
| 181 }, | 190 }, |
| 182 }, | 191 }, |
| 183 { | 192 { |
| 184 'target_name': 'command_buffer_client', | 193 'target_name': 'command_buffer_client', |
| 185 'type': 'static_library', | 194 'type': 'static_library', |
| 186 'dependencies': [ | 195 'dependencies': [ |
| 187 'command_buffer_common', | 196 'command_buffer_common', |
| 188 ], | 197 ], |
| 189 'sources': [ | 198 'sources': [ |
| (...skipping 10 matching lines...) Expand all Loading... |
| 200 'type': 'none', | 209 'type': 'none', |
| 201 'direct_dependent_settings': { | 210 'direct_dependent_settings': { |
| 202 'sources': [ | 211 'sources': [ |
| 203 'command_buffer/client/cmd_buffer_helper_test.cc', | 212 'command_buffer/client/cmd_buffer_helper_test.cc', |
| 204 'command_buffer/client/fenced_allocator_test.cc', | 213 'command_buffer/client/fenced_allocator_test.cc', |
| 205 'command_buffer/client/id_allocator_test.cc', | 214 'command_buffer/client/id_allocator_test.cc', |
| 206 ], | 215 ], |
| 207 }, | 216 }, |
| 208 }, | 217 }, |
| 209 { | 218 { |
| 210 'target_name': 'command_buffer_service', | 219 'target_name': 'command_buffer_service_impl', |
| 211 'type': 'static_library', | 220 'type': 'static_library', |
| 212 'include_dirs': [ | 221 'include_dirs': [ |
| 213 '..', | 222 '..', |
| 214 ], | 223 ], |
| 215 'all_dependent_settings': { | 224 'all_dependent_settings': { |
| 216 'include_dirs': [ | 225 'include_dirs': [ |
| 217 '..', | 226 '..', |
| 218 ], | 227 ], |
| 219 }, | 228 }, |
| 220 'dependencies': [ | 229 'dependencies': [ |
| 221 'command_buffer_common', | 230 'command_buffer_common', |
| 222 'gl_libs', | |
| 223 ], | 231 ], |
| 224 'sources': [ | 232 'sources': [ |
| 225 'command_buffer/service/common_decoder.cc', | 233 'command_buffer/service/common_decoder.cc', |
| 226 'command_buffer/service/common_decoder.h', | 234 'command_buffer/service/common_decoder.h', |
| 227 'command_buffer/service/cmd_buffer_engine.h', | 235 'command_buffer/service/cmd_buffer_engine.h', |
| 228 'command_buffer/service/command_buffer_service.cc', | 236 'command_buffer/service/command_buffer_service.cc', |
| 229 'command_buffer/service/command_buffer_service.h', | 237 'command_buffer/service/command_buffer_service.h', |
| 230 'command_buffer/service/cmd_parser.cc', | 238 'command_buffer/service/cmd_parser.cc', |
| 231 'command_buffer/service/cmd_parser.h', | 239 'command_buffer/service/cmd_parser.h', |
| 232 'command_buffer/service/gles2_cmd_decoder.h', | |
| 233 'command_buffer/service/gles2_cmd_decoder_autogen.h', | |
| 234 'command_buffer/service/gles2_cmd_decoder.cc', | |
| 235 'command_buffer/service/gles2_cmd_validation.h', | |
| 236 'command_buffer/service/gles2_cmd_validation.cc', | |
| 237 'command_buffer/service/gles2_cmd_validation_autogen.h', | |
| 238 'command_buffer/service/gles2_cmd_validation_implementation_autogen.h', | |
| 239 'command_buffer/service/gl_utils.h', | |
| 240 'command_buffer/service/gpu_processor.h', | 240 'command_buffer/service/gpu_processor.h', |
| 241 'command_buffer/service/gpu_processor.cc', | 241 'command_buffer/service/gpu_processor.cc', |
| 242 'command_buffer/service/gpu_processor_mock.h', | 242 'command_buffer/service/gpu_processor_mock.h', |
| 243 'command_buffer/service/mocks.h', | 243 'command_buffer/service/mocks.h', |
| 244 'command_buffer/service/precompile.cc', | 244 'command_buffer/service/precompile.cc', |
| 245 'command_buffer/service/precompile.h', | 245 'command_buffer/service/precompile.h', |
| 246 'command_buffer/service/resource.cc', | 246 'command_buffer/service/resource.cc', |
| 247 'command_buffer/service/resource.h', | 247 'command_buffer/service/resource.h', |
| 248 ], | 248 ], |
| 249 'conditions': [ | 249 'conditions': [ |
| 250 ['OS == "linux"', | 250 ['OS == "linux"', |
| 251 { | 251 { |
| 252 'sources': [ | 252 'sources': [ |
| 253 'command_buffer/service/x_utils.cc', | 253 'command_buffer/service/x_utils.cc', |
| 254 'command_buffer/service/x_utils.h', | 254 'command_buffer/service/x_utils.h', |
| 255 ], | 255 ], |
| 256 }, | 256 }, |
| 257 ], | 257 ], |
| 258 ['OS == "win"', | 258 ['OS == "win"', |
| 259 { | 259 { |
| 260 'sources': [ | 260 'sources': [ |
| 261 'command_buffer/service/gpu_processor_win.cc', | 261 'command_buffer/service/gpu_processor_win.cc', |
| 262 ], | 262 ], |
| 263 }, | 263 }, |
| 264 ], | 264 ], |
| 265 ], | 265 ], |
| 266 }, | 266 }, |
| 267 { | 267 { |
| 268 'target_name': 'command_buffer_service', |
| 269 'type': 'static_library', |
| 270 'include_dirs': [ |
| 271 '..', |
| 272 ], |
| 273 'all_dependent_settings': { |
| 274 'include_dirs': [ |
| 275 '..', |
| 276 ], |
| 277 }, |
| 278 'dependencies': [ |
| 279 'command_buffer_service_impl', |
| 280 'gl_libs', |
| 281 ], |
| 282 'sources': [ |
| 283 '<@(gpu_source_files)', |
| 284 ], |
| 285 }, |
| 286 { |
| 268 'target_name': 'command_buffer_service_unittests', | 287 'target_name': 'command_buffer_service_unittests', |
| 269 'type': 'none', | 288 'type': 'none', |
| 270 'direct_dependent_settings': { | 289 'direct_dependent_settings': { |
| 271 'sources': [ | 290 'sources': [ |
| 291 '<@(gpu_source_files)', |
| 272 'command_buffer/service/cmd_parser_test.cc', | 292 'command_buffer/service/cmd_parser_test.cc', |
| 273 'command_buffer/service/command_buffer_service_unittest.cc', | 293 'command_buffer/service/command_buffer_service_unittest.cc', |
| 274 'command_buffer/service/common_decoder_unittest.cc', | 294 'command_buffer/service/common_decoder_unittest.cc', |
| 275 'command_buffer/service/gpu_processor_unittest.cc', | 295 'command_buffer/service/gpu_processor_unittest.cc', |
| 276 'command_buffer/service/resource_test.cc', | 296 'command_buffer/service/resource_test.cc', |
| 297 'command_buffer/service/gl_interface.h', |
| 298 'command_buffer/service/gl_interface.cc', |
| 299 'command_buffer/service/gl_mock.h', |
| 300 'command_buffer/service/gl_mock.cc', |
| 301 'command_buffer/service/gles2_cmd_decoder_unittest.cc', |
| 302 'command_buffer/common/gles2_cmd_format_test.cc', |
| 303 'command_buffer/common/gles2_cmd_format_test_autogen.h', |
| 304 'command_buffer/common/gles2_cmd_id_test.cc', |
| 305 'command_buffer/common/gles2_cmd_id_test_autogen.h', |
| 277 ], | 306 ], |
| 278 }, | 307 }, |
| 279 }, | 308 }, |
| 280 { | 309 { |
| 281 'target_name': 'gpu_plugin', | 310 'target_name': 'gpu_plugin', |
| 282 'type': 'static_library', | 311 'type': 'static_library', |
| 283 'dependencies': [ | 312 'dependencies': [ |
| 284 '../base/base.gyp:base', | 313 '../base/base.gyp:base', |
| 285 'command_buffer_service', | 314 'command_buffer_service', |
| 286 ], | 315 ], |
| (...skipping 14 matching lines...) Expand all Loading... |
| 301 'target_name': 'gpu_all_unittests', | 330 'target_name': 'gpu_all_unittests', |
| 302 'type': 'executable', | 331 'type': 'executable', |
| 303 'dependencies': [ | 332 'dependencies': [ |
| 304 '../testing/gmock.gyp:gmock', | 333 '../testing/gmock.gyp:gmock', |
| 305 '../testing/gmock.gyp:gmockmain', | 334 '../testing/gmock.gyp:gmockmain', |
| 306 '../testing/gtest.gyp:gtest', | 335 '../testing/gtest.gyp:gtest', |
| 307 'command_buffer_client', | 336 'command_buffer_client', |
| 308 'command_buffer_client_unittests', | 337 'command_buffer_client_unittests', |
| 309 'command_buffer_common', | 338 'command_buffer_common', |
| 310 'command_buffer_common_unittests', | 339 'command_buffer_common_unittests', |
| 311 'command_buffer_service', | 340 'command_buffer_service_impl', |
| 312 'command_buffer_service_unittests', | 341 'command_buffer_service_unittests', |
| 313 ], | 342 ], |
| 314 }, | 343 }, |
| 315 { | 344 { |
| 316 'target_name': 'gles2_demo_lib', | 345 'target_name': 'gles2_demo_lib', |
| 317 'type': 'static_library', | 346 'type': 'static_library', |
| 318 'dependencies': [ | 347 'dependencies': [ |
| 319 'command_buffer_client', | 348 'command_buffer_client', |
| 320 'gles2_lib', | 349 'gles2_lib', |
| 321 'gles2_c_lib', | 350 'gles2_c_lib', |
| (...skipping 25 matching lines...) Expand all Loading... |
| 347 }, | 376 }, |
| 348 ], | 377 ], |
| 349 ], | 378 ], |
| 350 } | 379 } |
| 351 | 380 |
| 352 # Local Variables: | 381 # Local Variables: |
| 353 # tab-width:2 | 382 # tab-width:2 |
| 354 # indent-tabs-mode:nil | 383 # indent-tabs-mode:nil |
| 355 # End: | 384 # End: |
| 356 # vim: set expandtab tabstop=2 shiftwidth=2: | 385 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |