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

Side by Side Diff: gpu/gpu.gyp

Issue 409423002: Add osmesa to GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « gpu/BUILD.gn ('k') | third_party/mesa/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 'nacl_win64_target': 0, 7 'nacl_win64_target': 0,
8 }, 8 },
9 'includes': [ 9 'includes': [
10 'gpu_common.gypi', 10 'gpu_common.gypi',
11 ], 11 ],
12 'targets': [ 12 'targets': [
13 { 13 {
14 # Library emulates GLES2 using command_buffers. 14 # Library emulates GLES2 using command_buffers.
15 # GN version: //gpu/command_buffer/client:gles2_implementation
15 'target_name': 'gles2_implementation', 16 'target_name': 'gles2_implementation',
16 'type': '<(component)', 17 'type': '<(component)',
17 'dependencies': [ 18 'dependencies': [
18 '../base/base.gyp:base', 19 '../base/base.gyp:base',
19 '../third_party/khronos/khronos.gyp:khronos_headers', 20 '../third_party/khronos/khronos.gyp:khronos_headers',
20 '../ui/gfx/gfx.gyp:gfx_geometry', 21 '../ui/gfx/gfx.gyp:gfx_geometry',
21 '../ui/gl/gl.gyp:gl', 22 '../ui/gl/gl.gyp:gl',
22 'command_buffer/command_buffer.gyp:gles2_utils', 23 'command_buffer/command_buffer.gyp:gles2_utils',
23 'gles2_cmd_helper', 24 'gles2_cmd_helper',
24 ], 25 ],
25 'defines': [ 26 'defines': [
26 'GLES2_IMPL_IMPLEMENTATION', 27 'GLES2_IMPL_IMPLEMENTATION',
27 ], 28 ],
28 'sources': [ 29 'sources': [
29 '<@(gles2_implementation_source_files)', 30 '<@(gles2_implementation_source_files)',
30 ], 31 ],
31 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 32 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
32 'msvs_disabled_warnings': [4267, ], 33 'msvs_disabled_warnings': [4267, ],
33 }, 34 },
34 { 35 {
36 # GN version: //gpu/command_buffer/client:gl_in_process_context
35 'target_name': 'gl_in_process_context', 37 'target_name': 'gl_in_process_context',
36 'type': '<(component)', 38 'type': '<(component)',
37 'dependencies': [ 39 'dependencies': [
38 'gles2_implementation', 40 'gles2_implementation',
39 'gpu', 41 'gpu',
40 '../base/base.gyp:base', 42 '../base/base.gyp:base',
41 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 43 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
42 '../ui/gfx/gfx.gyp:gfx_geometry', 44 '../ui/gfx/gfx.gyp:gfx_geometry',
43 '../ui/gl/gl.gyp:gl', 45 '../ui/gl/gl.gyp:gl',
44 ], 46 ],
45 'defines': [ 47 'defines': [
46 'GL_IN_PROCESS_CONTEXT_IMPLEMENTATION', 48 'GL_IN_PROCESS_CONTEXT_IMPLEMENTATION',
47 ], 49 ],
48 'sources': [ 50 'sources': [
49 'command_buffer/client/gl_in_process_context.h', 51 'command_buffer/client/gl_in_process_context.h',
50 'command_buffer/client/gl_in_process_context.cc', 52 'command_buffer/client/gl_in_process_context.cc',
51 'command_buffer/client/gl_in_process_context_export.h', 53 'command_buffer/client/gl_in_process_context_export.h',
52 ], 54 ],
53 }, 55 },
54 { 56 {
55 # Library emulates GLES2 using command_buffers. 57 # Library emulates GLES2 using command_buffers.
58 # GN version: //gpu/command_buffer/client:gles2_implementation_client_side _arrays
56 'target_name': 'gles2_implementation_client_side_arrays', 59 'target_name': 'gles2_implementation_client_side_arrays',
57 'type': '<(component)', 60 'type': '<(component)',
58 'defines': [ 61 'defines': [
59 'GLES2_IMPL_IMPLEMENTATION', 62 'GLES2_IMPL_IMPLEMENTATION',
60 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1', 63 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1',
61 ], 64 ],
62 'dependencies': [ 65 'dependencies': [
63 '../base/base.gyp:base', 66 '../base/base.gyp:base',
64 '../third_party/khronos/khronos.gyp:khronos_headers', 67 '../third_party/khronos/khronos.gyp:khronos_headers',
65 '../ui/gl/gl.gyp:gl', 68 '../ui/gl/gl.gyp:gl',
(...skipping 27 matching lines...) Expand all
93 ], 96 ],
94 'sources': [ 97 'sources': [
95 '<@(gles2_implementation_source_files)', 98 '<@(gles2_implementation_source_files)',
96 ], 99 ],
97 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 100 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
98 'msvs_disabled_warnings': [ 4267, ], 101 'msvs_disabled_warnings': [ 4267, ],
99 }, 102 },
100 { 103 {
101 # Stub to expose gles2_implemenation in C instead of C++. 104 # Stub to expose gles2_implemenation in C instead of C++.
102 # so GLES2 C programs can work with no changes. 105 # so GLES2 C programs can work with no changes.
106 # GN version: //gpu/command_buffer/client:gles2_c_lib
103 'target_name': 'gles2_c_lib', 107 'target_name': 'gles2_c_lib',
104 'type': '<(component)', 108 'type': '<(component)',
105 'dependencies': [ 109 'dependencies': [
106 '../base/base.gyp:base', 110 '../base/base.gyp:base',
107 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 111 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
108 'command_buffer/command_buffer.gyp:gles2_utils', 112 'command_buffer/command_buffer.gyp:gles2_utils',
109 'command_buffer_client', 113 'command_buffer_client',
110 ], 114 ],
111 'defines': [ 115 'defines': [
112 'GLES2_C_LIB_IMPLEMENTATION', 116 'GLES2_C_LIB_IMPLEMENTATION',
(...skipping 18 matching lines...) Expand all
131 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 135 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
132 'command_buffer/command_buffer.gyp:gles2_utils', 136 'command_buffer/command_buffer.gyp:gles2_utils',
133 'command_buffer_client', 137 'command_buffer_client',
134 'gles2_implementation_client_side_arrays_no_check', 138 'gles2_implementation_client_side_arrays_no_check',
135 ], 139 ],
136 'sources': [ 140 'sources': [
137 '<@(gles2_c_lib_source_files)', 141 '<@(gles2_c_lib_source_files)',
138 ], 142 ],
139 }, 143 },
140 { 144 {
145 # GN version: //gpu:angle_unittests
141 'target_name': 'angle_unittests', 146 'target_name': 'angle_unittests',
142 'type': '<(gtest_target_type)', 147 'type': '<(gtest_target_type)',
143 'dependencies': [ 148 'dependencies': [
144 '../base/base.gyp:base', 149 '../base/base.gyp:base',
145 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 150 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
146 '../testing/gmock.gyp:gmock', 151 '../testing/gmock.gyp:gmock',
147 '../testing/gtest.gyp:gtest', 152 '../testing/gtest.gyp:gtest',
148 '<(angle_path)/src/build_angle.gyp:translator_static', 153 '<(angle_path)/src/build_angle.gyp:translator_static',
149 ], 154 ],
150 'variables': { 155 'variables': {
151 'ANGLE_DIR': '<(angle_path)', 156 'ANGLE_DIR': '<(angle_path)',
152 }, 157 },
153 'includes': [ 158 'includes': [
154 '../third_party/angle/tests/preprocessor_tests/preprocessor_tests.gypi', 159 '../third_party/angle/tests/preprocessor_tests/preprocessor_tests.gypi',
155 '../third_party/angle/tests/compiler_tests/compiler_tests.gypi', 160 '../third_party/angle/tests/compiler_tests/compiler_tests.gypi',
156 ], 161 ],
157 'include_dirs': [ 162 'include_dirs': [
158 '..', 163 '..',
159 '<(angle_path)/include', 164 '<(angle_path)/include',
160 '<(angle_path)/src', 165 '<(angle_path)/src',
161 '<(angle_path)/src/compiler/preprocessor', 166 '<(angle_path)/src/compiler/preprocessor',
162 '<(angle_path)/tests', 167 '<(angle_path)/tests',
163 ], 168 ],
164 'sources': [ 169 'sources': [
165 'angle_unittest_main.cc', 170 'angle_unittest_main.cc',
166 ], 171 ],
167 }, 172 },
168 { 173 {
174 # GN version: //gpu:gpu_unittests
169 'target_name': 'gpu_unittests', 175 'target_name': 'gpu_unittests',
170 'type': '<(gtest_target_type)', 176 'type': '<(gtest_target_type)',
171 'dependencies': [ 177 'dependencies': [
172 '../base/base.gyp:base', 178 '../base/base.gyp:base',
173 '../base/base.gyp:test_support_base', 179 '../base/base.gyp:test_support_base',
174 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 180 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
175 '../testing/gmock.gyp:gmock', 181 '../testing/gmock.gyp:gmock',
176 '../testing/gtest.gyp:gtest', 182 '../testing/gtest.gyp:gtest',
177 '<(angle_path)/src/build_angle.gyp:translator', 183 '<(angle_path)/src/build_angle.gyp:translator',
178 '../ui/gl/gl.gyp:gl', 184 '../ui/gl/gl.gyp:gl',
179 '../ui/gfx/gfx.gyp:gfx', 185 '../ui/gfx/gfx.gyp:gfx',
180 '../ui/gfx/gfx.gyp:gfx_geometry', 186 '../ui/gfx/gfx.gyp:gfx_geometry',
181 '../ui/gfx/gfx.gyp:gfx_test_support', 187 '../ui/gfx/gfx.gyp:gfx_test_support',
182 'command_buffer/command_buffer.gyp:gles2_utils', 188 'command_buffer/command_buffer.gyp:gles2_utils',
183 'command_buffer_client', 189 'command_buffer_client',
184 'command_buffer_common', 190 'command_buffer_common',
185 'command_buffer_service', 191 'command_buffer_service',
186 'gpu', 192 'gpu',
187 'gpu_unittest_utils', 193 'gpu_unittest_utils',
188 'gles2_implementation_client_side_arrays', 194 'gles2_implementation_client_side_arrays',
189 'gles2_cmd_helper', 195 'gles2_cmd_helper',
190 'gles2_c_lib', 196 'gles2_c_lib',
191 ], 197 ],
192 'sources': [ 198 'sources': [
199 # Note: sources list duplicated in GN build.
193 'command_buffer/client/buffer_tracker_unittest.cc', 200 'command_buffer/client/buffer_tracker_unittest.cc',
194 'command_buffer/client/client_test_helper.cc', 201 'command_buffer/client/client_test_helper.cc',
195 'command_buffer/client/client_test_helper.h', 202 'command_buffer/client/client_test_helper.h',
196 'command_buffer/client/cmd_buffer_helper_test.cc', 203 'command_buffer/client/cmd_buffer_helper_test.cc',
197 'command_buffer/client/fenced_allocator_test.cc', 204 'command_buffer/client/fenced_allocator_test.cc',
198 'command_buffer/client/gles2_implementation_unittest.cc', 205 'command_buffer/client/gles2_implementation_unittest.cc',
199 'command_buffer/client/mapped_memory_unittest.cc', 206 'command_buffer/client/mapped_memory_unittest.cc',
200 'command_buffer/client/query_tracker_unittest.cc', 207 'command_buffer/client/query_tracker_unittest.cc',
201 'command_buffer/client/program_info_manager_unittest.cc', 208 'command_buffer/client/program_info_manager_unittest.cc',
202 'command_buffer/client/ring_buffer_test.cc', 209 'command_buffer/client/ring_buffer_test.cc',
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 ['OS=="linux" and use_allocator!="none"', { 296 ['OS=="linux" and use_allocator!="none"', {
290 'dependencies': [ 297 'dependencies': [
291 '../base/allocator/allocator.gyp:allocator', 298 '../base/allocator/allocator.gyp:allocator',
292 ], 299 ],
293 }], 300 }],
294 ], 301 ],
295 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 302 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
296 'msvs_disabled_warnings': [ 4267, ], 303 'msvs_disabled_warnings': [ 4267, ],
297 }, 304 },
298 { 305 {
306 # GN version: //gpu:gl_tests
299 'target_name': 'gl_tests', 307 'target_name': 'gl_tests',
300 'type': '<(gtest_target_type)', 308 'type': '<(gtest_target_type)',
301 'dependencies': [ 309 'dependencies': [
302 '../base/base.gyp:base', 310 '../base/base.gyp:base',
303 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 311 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
304 '../testing/gmock.gyp:gmock', 312 '../testing/gmock.gyp:gmock',
305 '../testing/gtest.gyp:gtest', 313 '../testing/gtest.gyp:gtest',
306 '<(angle_path)/src/build_angle.gyp:translator', 314 '<(angle_path)/src/build_angle.gyp:translator',
307 '../ui/gfx/gfx.gyp:gfx', 315 '../ui/gfx/gfx.gyp:gfx',
308 '../ui/gfx/gfx.gyp:gfx_test_support', 316 '../ui/gfx/gfx.gyp:gfx_test_support',
309 '../ui/gfx/gfx.gyp:gfx_geometry', 317 '../ui/gfx/gfx.gyp:gfx_geometry',
310 '../ui/gl/gl.gyp:gl', 318 '../ui/gl/gl.gyp:gl',
311 'command_buffer/command_buffer.gyp:gles2_utils', 319 'command_buffer/command_buffer.gyp:gles2_utils',
312 'command_buffer_client', 320 'command_buffer_client',
313 'command_buffer_common', 321 'command_buffer_common',
314 'command_buffer_service', 322 'command_buffer_service',
315 'gpu', 323 'gpu',
316 'gpu_unittest_utils', 324 'gpu_unittest_utils',
317 'gles2_implementation_client_side_arrays', 325 'gles2_implementation_client_side_arrays',
318 'gles2_cmd_helper', 326 'gles2_cmd_helper',
319 'gles2_c_lib', 327 'gles2_c_lib',
320 #'gl_unittests', 328 #'gl_unittests',
321 ], 329 ],
322 'defines': [ 330 'defines': [
323 'GL_GLEXT_PROTOTYPES', 331 'GL_GLEXT_PROTOTYPES',
324 ], 332 ],
325 'sources': [ 333 'sources': [
334 # Note: sources list duplicated in GN build.
326 'command_buffer/tests/compressed_texture_test.cc', 335 'command_buffer/tests/compressed_texture_test.cc',
327 'command_buffer/tests/gl_bind_uniform_location_unittest.cc', 336 'command_buffer/tests/gl_bind_uniform_location_unittest.cc',
328 'command_buffer/tests/gl_chromium_framebuffer_multisample_unittest.cc', 337 'command_buffer/tests/gl_chromium_framebuffer_multisample_unittest.cc',
329 'command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc', 338 'command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc',
330 'command_buffer/tests/gl_depth_texture_unittest.cc', 339 'command_buffer/tests/gl_depth_texture_unittest.cc',
331 'command_buffer/tests/gl_gpu_memory_buffer_unittest.cc', 340 'command_buffer/tests/gl_gpu_memory_buffer_unittest.cc',
332 'command_buffer/tests/gl_lose_context_chromium_unittest.cc', 341 'command_buffer/tests/gl_lose_context_chromium_unittest.cc',
333 'command_buffer/tests/gl_manager.cc', 342 'command_buffer/tests/gl_manager.cc',
334 'command_buffer/tests/gl_manager.h', 343 'command_buffer/tests/gl_manager.h',
335 'command_buffer/tests/gl_pointcoord_unittest.cc', 344 'command_buffer/tests/gl_pointcoord_unittest.cc',
(...skipping 22 matching lines...) Expand all
358 'dependencies': [ 367 'dependencies': [
359 '../third_party/angle/src/build_angle.gyp:libEGL', 368 '../third_party/angle/src/build_angle.gyp:libEGL',
360 '../third_party/angle/src/build_angle.gyp:libGLESv2', 369 '../third_party/angle/src/build_angle.gyp:libGLESv2',
361 ], 370 ],
362 }], 371 }],
363 ], 372 ],
364 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 373 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
365 'msvs_disabled_warnings': [ 4267, ], 374 'msvs_disabled_warnings': [ 4267, ],
366 }, 375 },
367 { 376 {
377 # GN version: //gpu:test_support
368 'target_name': 'gpu_unittest_utils', 378 'target_name': 'gpu_unittest_utils',
369 'type': 'static_library', 379 'type': 'static_library',
370 'dependencies': [ 380 'dependencies': [
371 '../testing/gmock.gyp:gmock', 381 '../testing/gmock.gyp:gmock',
372 '../testing/gtest.gyp:gtest', 382 '../testing/gtest.gyp:gtest',
373 '../third_party/khronos/khronos.gyp:khronos_headers', 383 '../third_party/khronos/khronos.gyp:khronos_headers',
374 '../ui/gl/gl.gyp:gl_unittest_utils', 384 '../ui/gl/gl.gyp:gl_unittest_utils',
375 'gpu', 385 'gpu',
376 ], 386 ],
377 'include_dirs': [ 387 'include_dirs': [
378 '..', 388 '..',
379 ], 389 ],
380 'sources': [ 390 'sources': [
381 'command_buffer/service/gles2_cmd_decoder_mock.cc', 391 'command_buffer/service/gles2_cmd_decoder_mock.cc',
382 'command_buffer/service/error_state_mock.cc', 392 'command_buffer/service/error_state_mock.cc',
383 'command_buffer/client/gles2_interface_stub.cc', 393 'command_buffer/client/gles2_interface_stub.cc',
384 'command_buffer/client/gles2_interface_stub.h', 394 'command_buffer/client/gles2_interface_stub.h',
385 ], 395 ],
386 }, 396 },
387 ], 397 ],
388 'conditions': [ 398 'conditions': [
389 ['component=="static_library"', { 399 ['component=="static_library"', {
390 'targets': [ 400 'targets': [
391 { 401 {
402 # GN version: //gpu/command_buffer/service:disk_cache_proto
392 'target_name': 'disk_cache_proto', 403 'target_name': 'disk_cache_proto',
393 'type': 'static_library', 404 'type': 'static_library',
394 'sources': [ 'command_buffer/service/disk_cache_proto.proto' ], 405 'sources': [ 'command_buffer/service/disk_cache_proto.proto' ],
395 'variables': { 406 'variables': {
396 'proto_in_dir': 'command_buffer/service', 407 'proto_in_dir': 'command_buffer/service',
397 'proto_out_dir': 'gpu/command_buffer/service', 408 'proto_out_dir': 'gpu/command_buffer/service',
398 }, 409 },
399 'includes': [ '../build/protoc.gypi' ], 410 'includes': [ '../build/protoc.gypi' ],
400 }, 411 },
401 { 412 {
413 # GN version: //gpu
402 'target_name': 'gpu', 414 'target_name': 'gpu',
403 'type': 'none', 415 'type': 'none',
404 'dependencies': [ 416 'dependencies': [
405 'command_buffer_client', 417 'command_buffer_client',
406 'command_buffer_common', 418 'command_buffer_common',
407 'command_buffer_service', 419 'command_buffer_service',
408 'gles2_cmd_helper', 420 'gles2_cmd_helper',
409 'gpu_config', 421 'gpu_config',
410 'gpu_ipc', 422 'gpu_ipc',
411 ], 423 ],
412 'sources': [ 424 'sources': [
413 'gpu_export.h', 425 'gpu_export.h',
414 ], 426 ],
415 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 427 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
416 'msvs_disabled_warnings': [4267, ], 428 'msvs_disabled_warnings': [4267, ],
417 }, 429 },
418 { 430 {
431 # GN version: //gpu/command_buffer/common
419 'target_name': 'command_buffer_common', 432 'target_name': 'command_buffer_common',
420 'type': 'static_library', 433 'type': 'static_library',
421 'includes': [ 434 'includes': [
422 'command_buffer_common.gypi', 435 'command_buffer_common.gypi',
423 ], 436 ],
424 'dependencies': [ 437 'dependencies': [
425 '../base/base.gyp:base', 438 '../base/base.gyp:base',
426 'command_buffer/command_buffer.gyp:gles2_utils', 439 'command_buffer/command_buffer.gyp:gles2_utils',
427 ], 440 ],
428 'export_dependent_settings': [ 441 'export_dependent_settings': [
429 '../base/base.gyp:base', 442 '../base/base.gyp:base',
430 ], 443 ],
431 }, 444 },
432 { 445 {
433 # Library helps make GLES2 command buffers. 446 # Library helps make GLES2 command buffers.
447 # GN version: //gpu/command_buffer/client:gles2_cmd_helper
434 'target_name': 'gles2_cmd_helper', 448 'target_name': 'gles2_cmd_helper',
435 'type': 'static_library', 449 'type': 'static_library',
436 'includes': [ 450 'includes': [
437 'gles2_cmd_helper.gypi', 451 'gles2_cmd_helper.gypi',
438 ], 452 ],
439 'dependencies': [ 453 'dependencies': [
440 'command_buffer_client', 454 'command_buffer_client',
441 ], 455 ],
442 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 456 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
443 'msvs_disabled_warnings': [4267, ], 457 'msvs_disabled_warnings': [4267, ],
444 }, 458 },
445 { 459 {
460 # GN version: //gpu/command_buffer/client
446 'target_name': 'command_buffer_client', 461 'target_name': 'command_buffer_client',
447 'type': 'static_library', 462 'type': 'static_library',
448 'includes': [ 463 'includes': [
449 'command_buffer_client.gypi', 464 'command_buffer_client.gypi',
450 ], 465 ],
451 'dependencies': [ 466 'dependencies': [
452 'command_buffer_common', 467 'command_buffer_common',
453 ], 468 ],
454 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 469 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
455 'msvs_disabled_warnings': [4267, ], 470 'msvs_disabled_warnings': [4267, ],
456 }, 471 },
457 { 472 {
473 # GN version: //gpu/command_buffer/service
458 'target_name': 'command_buffer_service', 474 'target_name': 'command_buffer_service',
459 'type': 'static_library', 475 'type': 'static_library',
460 'includes': [ 476 'includes': [
461 'command_buffer_service.gypi', 477 'command_buffer_service.gypi',
462 ], 478 ],
463 'dependencies': [ 479 'dependencies': [
464 'command_buffer_common', 480 'command_buffer_common',
465 'disk_cache_proto', 481 'disk_cache_proto',
466 ], 482 ],
467 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 483 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
468 'msvs_disabled_warnings': [4267, ], 484 'msvs_disabled_warnings': [4267, ],
469 }, 485 },
470 { 486 {
487 # GN version: //gpu/ipc
471 'target_name': 'gpu_ipc', 488 'target_name': 'gpu_ipc',
472 'type': 'static_library', 489 'type': 'static_library',
473 'includes': [ 490 'includes': [
474 'gpu_ipc.gypi', 491 'gpu_ipc.gypi',
475 ], 492 ],
476 'dependencies': [ 493 'dependencies': [
477 'command_buffer_common', 494 'command_buffer_common',
478 ], 495 ],
479 }, 496 },
480 { 497 {
481 'target_name': 'gpu_config', 498 'target_name': 'gpu_config',
482 'type': 'static_library', 499 'type': 'static_library',
483 'includes': [ 500 'includes': [
484 'gpu_config.gypi', 501 'gpu_config.gypi',
485 ], 502 ],
486 }, 503 },
487 ], 504 ],
488 }, 505 },
489 { # component != static_library 506 { # component != static_library
490 'targets': [ 507 'targets': [
491 { 508 {
509 # GN version: //gpu/command_buffer/service:disk_cache_proto
492 'target_name': 'disk_cache_proto', 510 'target_name': 'disk_cache_proto',
493 'type': 'static_library', 511 'type': 'static_library',
494 'sources': [ 'command_buffer/service/disk_cache_proto.proto' ], 512 'sources': [ 'command_buffer/service/disk_cache_proto.proto' ],
495 'variables': { 513 'variables': {
496 'proto_in_dir': 'command_buffer/service', 514 'proto_in_dir': 'command_buffer/service',
497 'proto_out_dir': 'gpu/command_buffer/service', 515 'proto_out_dir': 'gpu/command_buffer/service',
498 }, 516 },
499 'includes': [ '../build/protoc.gypi' ], 517 'includes': [ '../build/protoc.gypi' ],
500 }, 518 },
501 { 519 {
520 # GN version: //gpu
502 'target_name': 'gpu', 521 'target_name': 'gpu',
503 'type': 'shared_library', 522 'type': 'shared_library',
504 'includes': [ 523 'includes': [
505 'command_buffer_client.gypi', 524 'command_buffer_client.gypi',
506 'command_buffer_common.gypi', 525 'command_buffer_common.gypi',
507 'command_buffer_service.gypi', 526 'command_buffer_service.gypi',
508 'gles2_cmd_helper.gypi', 527 'gles2_cmd_helper.gypi',
509 'gpu_config.gypi', 528 'gpu_config.gypi',
510 'gpu_ipc.gypi', 529 'gpu_ipc.gypi',
511 ], 530 ],
512 'defines': [ 531 'defines': [
513 'GPU_IMPLEMENTATION', 532 'GPU_IMPLEMENTATION',
514 ], 533 ],
515 'sources': [ 534 'sources': [
516 'gpu_export.h', 535 'gpu_export.h',
517 ], 536 ],
518 'dependencies': [ 537 'dependencies': [
519 '../base/base.gyp:base', 538 '../base/base.gyp:base',
520 'command_buffer/command_buffer.gyp:gles2_utils', 539 'command_buffer/command_buffer.gyp:gles2_utils',
521 'disk_cache_proto', 540 'disk_cache_proto',
522 ], 541 ],
523 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 542 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
524 'msvs_disabled_warnings': [4267, ], 543 'msvs_disabled_warnings': [4267, ],
525 }, 544 },
526 { 545 {
546 # GN version: //gpu/command_buffer/common
527 'target_name': 'command_buffer_common', 547 'target_name': 'command_buffer_common',
528 'type': 'none', 548 'type': 'none',
529 'dependencies': [ 549 'dependencies': [
530 'gpu', 550 'gpu',
531 ], 551 ],
532 }, 552 },
533 { 553 {
534 # Library helps make GLES2 command buffers. 554 # Library helps make GLES2 command buffers.
555 # GN version: //gpu/command_buffer/client:gles2_cmd_helper
535 'target_name': 'gles2_cmd_helper', 556 'target_name': 'gles2_cmd_helper',
536 'type': 'none', 557 'type': 'none',
537 'dependencies': [ 558 'dependencies': [
538 'gpu', 559 'gpu',
539 ], 560 ],
540 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 561 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
541 'msvs_disabled_warnings': [4267, ], 562 'msvs_disabled_warnings': [4267, ],
542 }, 563 },
543 { 564 {
565 # GN version: //gpu/command_buffer/client
544 'target_name': 'command_buffer_client', 566 'target_name': 'command_buffer_client',
545 'type': 'none', 567 'type': 'none',
546 'dependencies': [ 568 'dependencies': [
547 'gpu', 569 'gpu',
548 ], 570 ],
549 }, 571 },
550 { 572 {
573 # GN version: //gpu/command_buffer/service
551 'target_name': 'command_buffer_service', 574 'target_name': 'command_buffer_service',
552 'type': 'none', 575 'type': 'none',
553 'dependencies': [ 576 'dependencies': [
554 'gpu', 577 'gpu',
555 ], 578 ],
556 }, 579 },
557 { 580 {
581 # GN version: //gpu/ipc
558 'target_name': 'gpu_ipc', 582 'target_name': 'gpu_ipc',
559 'type': 'none', 583 'type': 'none',
560 'dependencies': [ 584 'dependencies': [
561 'gpu', 585 'gpu',
562 ], 586 ],
563 }, 587 },
564 ], 588 ],
565 }], 589 }],
566 ['disable_nacl!=1 and OS=="win" and target_arch=="ia32"', { 590 ['disable_nacl!=1 and OS=="win" and target_arch=="ia32"', {
567 'targets': [ 591 'targets': [
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 ], 660 ],
637 'variables': { 661 'variables': {
638 'test_suite_name': 'gpu_unittests', 662 'test_suite_name': 'gpu_unittests',
639 }, 663 },
640 'includes': [ '../build/apk_test.gypi' ], 664 'includes': [ '../build/apk_test.gypi' ],
641 }, 665 },
642 ], 666 ],
643 }], 667 }],
644 ], 668 ],
645 } 669 }
OLDNEW
« no previous file with comments | « gpu/BUILD.gn ('k') | third_party/mesa/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698