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

Side by Side Diff: gpu/gpu.gyp

Issue 1845563005: Refactor content/common/gpu into gpu/ipc/service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
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 'build_angle_deqp_tests%': 0, 8 'build_angle_deqp_tests%': 0,
9 }, 9 },
10 'includes': [ 10 'includes': [
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 ['use_ozone == 1', { 291 ['use_ozone == 1', {
292 'sources+': [ 292 'sources+': [
293 'ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap_unittest.cc', 293 'ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap_unittest.cc',
294 ] 294 ]
295 }], 295 }],
296 ], 296 ],
297 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 297 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
298 'msvs_disabled_warnings': [ 4267, ], 298 'msvs_disabled_warnings': [ 4267, ],
299 }, 299 },
300 { 300 {
301 # GN version: //gpu/ipc/service:gpu_ipc_service_unittests
302 'target_name': 'gpu_ipc_service_unittests',
303 'type': '<(gtest_target_type)',
304 'dependencies': [
305 '../base/base.gyp:base',
306 '../base/base.gyp:run_all_unittests',
307 '../base/base.gyp:test_support_base',
308 '../ipc/ipc.gyp:test_support_ipc',
309 '../skia/skia.gyp:skia',
310 '../testing/gtest.gyp:gtest',
311 '../third_party/mesa/mesa.gyp:mesa_headers',
312 '../ui/gfx/gfx.gyp:gfx_test_support',
313 '../url/url.gyp:url_lib',
314 'command_buffer_common',
315 'command_buffer_service',
316 'gpu_config',
317 'gpu_ipc_common',
318 'gpu_ipc_service',
319 'gpu_ipc_service_test_support',
320 ],
321 'sources': [
322 'ipc/service/gpu_channel_manager_unittest.cc',
323 'ipc/service/gpu_channel_test_common.cc',
324 'ipc/service/gpu_channel_test_common.h',
325 'ipc/service/gpu_channel_unittest.cc',
326 ],
327 'include_dirs': [
328 '../third_party/mesa/src/include',
329 ],
330 'conditions': [
331 ['OS == "android"', {
332 'sources': [
333 'ipc/service/gpu_memory_buffer_factory_surface_texture_unittest.cc',
334 ],
335 }],
336 ['OS == "mac"', {
337 'sources': [
338 'ipc/service/ca_layer_tree_unittest_mac.mm',
339 'ipc/service/gpu_memory_buffer_factory_io_surface_unittest.cc',
340 ],
341 'link_settings': {
342 'libraries': [
343 '$(SDKROOT)/System/Library/Frameworks/CoreMedia.framework',
344 '$(SDKROOT)/System/Library/Frameworks/AVFoundation.framework',
345 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
346 ],
347 },
348 }],
349 ['use_ozone == 1', {
350 'sources': [
351 'ipc/service/gpu_memory_buffer_factory_ozone_native_pixmap_unittest. cc',
352 ],
353 }],
354 ],
355 },
356 {
301 # GN version: //gpu/gpu_perftests 357 # GN version: //gpu/gpu_perftests
302 'target_name': 'gpu_perftests', 358 'target_name': 'gpu_perftests',
303 'type': '<(gtest_target_type)', 359 'type': '<(gtest_target_type)',
304 'dependencies': [ 360 'dependencies': [
305 '../base/base.gyp:base', 361 '../base/base.gyp:base',
306 '../base/base.gyp:test_support_base', 362 '../base/base.gyp:test_support_base',
307 '../testing/gmock.gyp:gmock', 363 '../testing/gmock.gyp:gmock',
308 '../testing/gtest.gyp:gtest', 364 '../testing/gtest.gyp:gtest',
309 '../testing/perf/perf_test.gyp:perf_test', 365 '../testing/perf/perf_test.gyp:perf_test',
310 '../ui/gfx/gfx.gyp:gfx_geometry', 366 '../ui/gfx/gfx.gyp:gfx_geometry',
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 '..', 483 '..',
428 ], 484 ],
429 'sources': [ 485 'sources': [
430 'command_buffer/client/gles2_interface_stub.cc', 486 'command_buffer/client/gles2_interface_stub.cc',
431 'command_buffer/client/gles2_interface_stub.h', 487 'command_buffer/client/gles2_interface_stub.h',
432 'command_buffer/service/error_state_mock.cc', 488 'command_buffer/service/error_state_mock.cc',
433 'command_buffer/service/gles2_cmd_decoder_mock.cc', 489 'command_buffer/service/gles2_cmd_decoder_mock.cc',
434 ], 490 ],
435 }, 491 },
436 { 492 {
493 # GN version: //gpu/ipc/service:test_support
494 'target_name': 'gpu_ipc_service_test_support',
495 'type': 'static_library',
496 'dependencies': [
497 ],
498 'include_dirs': [
499 '..',
500 ],
501 'sources': [
502 'gpu/ipc/service/gpu_memory_buffer_factory_test_template.h',
503 ],
504 },
505 {
437 # GN version: //gpu:command_buffer_gles2 506 # GN version: //gpu:command_buffer_gles2
438 'target_name': 'command_buffer_gles2', 507 'target_name': 'command_buffer_gles2',
439 'type': 'shared_library', 508 'type': 'shared_library',
440 'dependencies': [ 509 'dependencies': [
441 '../base/base.gyp:base', 510 '../base/base.gyp:base',
442 '../gpu/command_buffer/command_buffer.gyp:gles2_utils', 511 '../gpu/command_buffer/command_buffer.gyp:gles2_utils',
443 '../gpu/gpu.gyp:command_buffer_service', 512 '../gpu/gpu.gyp:command_buffer_service',
444 '../ui/gfx/gfx.gyp:gfx_geometry', 513 '../ui/gfx/gfx.gyp:gfx_geometry',
445 '../ui/gl/gl.gyp:gl', 514 '../ui/gl/gl.gyp:gl',
446 'gles2_c_lib', 515 'gles2_c_lib',
447 'gles2_implementation', 516 'gles2_implementation',
448 ], 517 ],
449 'sources': [ 518 'sources': [
450 # Note: sources list duplicated in GN build. 519 # Note: sources list duplicated in GN build.
451 # TODO(hendrikw): Move egl out of gles2_conform_support. 520 # TODO(hendrikw): Move egl out of gles2_conform_support.
452 'gles2_conform_support/egl/config.cc', 521 'gles2_conform_support/egl/config.cc',
453 'gles2_conform_support/egl/config.h', 522 'gles2_conform_support/egl/config.h',
454 'gles2_conform_support/egl/display.cc', 523 'gles2_conform_support/egl/display.cc',
455 'gles2_conform_support/egl/display.h', 524 'gles2_conform_support/egl/display.h',
456 'gles2_conform_support/egl/egl.cc', 525 'gles2_conform_support/egl/egl.cc',
457 'gles2_conform_support/egl/surface.cc', 526 'gles2_conform_support/egl/surface.cc',
458 'gles2_conform_support/egl/surface.h', 527 'gles2_conform_support/egl/surface.h',
459 'gles2_conform_support/egl/test_support.cc', 528 'gles2_conform_support/egl/test_support.cc',
460 'gles2_conform_support/egl/test_support.h', 529 'gles2_conform_support/egl/test_support.h',
461 ], 530 ],
462 » 'defines': [ 531 'defines': [
463 'COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY', 532 'COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY',
464 'EGLAPIENTRY=', 533 'EGLAPIENTRY=',
465 » ], 534 ],
466 'conditions': [ 535 'conditions': [
467 ['OS=="win"', { 536 ['OS=="win"', {
468 'defines': [ 537 'defines': [
469 'EGLAPI=__declspec(dllexport)', 538 'EGLAPI=__declspec(dllexport)',
470 ], 539 ],
471 }, { # OS!="win" 540 }, { # OS!="win"
472 » » 'defines': [ 541 'defines': [
473 'EGLAPI=__attribute__((visibility(\"default\")))' 542 'EGLAPI=__attribute__((visibility(\"default\")))'
474 ], 543 ],
475 }], 544 }],
476 ], 545 ],
477 }, 546 },
478 { 547 {
479 # GN version: //gpu:command_buffer_gles2_tests 548 # GN version: //gpu:command_buffer_gles2_tests
480 'target_name': 'command_buffer_gles2_tests', 549 'target_name': 'command_buffer_gles2_tests',
481 'type': '<(gtest_target_type)', 550 'type': '<(gtest_target_type)',
482 'dependencies': [ 551 'dependencies': [
483 '../base/base.gyp:base', 552 '../base/base.gyp:base',
484 '../base/base.gyp:test_support_base', 553 '../base/base.gyp:test_support_base',
485 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 554 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
486 '../testing/gmock.gyp:gmock', 555 '../testing/gmock.gyp:gmock',
487 '../testing/gtest.gyp:gtest', 556 '../testing/gtest.gyp:gtest',
488 'command_buffer_gles2', 557 'command_buffer_gles2',
489 ], 558 ],
490 'sources': [ 559 'sources': [
491 # Note: sources list duplicated in GN build. 560 # Note: sources list duplicated in GN build.
492 'command_buffer/tests/command_buffer_gles2_tests_main.cc', 561 'command_buffer/tests/command_buffer_gles2_tests_main.cc',
493 'command_buffer/tests/egl_test.cc', 562 'command_buffer/tests/egl_test.cc',
494 ], 563 ],
495 » 'defines': [ 564 'defines': [
496 'COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY', 565 'COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY',
497 'EGLAPIENTRY=', 566 'EGLAPIENTRY=',
498 ], 567 ],
499 'conditions': [ 568 'conditions': [
500 ['OS=="win"', { 569 ['OS=="win"', {
501 'defines': [ 570 'defines': [
502 'EGLAPI=__declspec(dllimport)', 571 'EGLAPI=__declspec(dllimport)',
503 ], 572 ],
504 }, { # OS!="win" 573 }, { # OS!="win"
505 » » 'defines': [ 574 'defines': [
506 'EGLAPI=', 575 'EGLAPI=',
507 ], 576 ],
508 » » }], 577 }],
509 ['OS == "android"', { 578 ['OS == "android"', {
510 'dependencies': [ 579 'dependencies': [
511 '../testing/android/native_test.gyp:native_test_native_code', 580 '../testing/android/native_test.gyp:native_test_native_code',
512 ], 581 ],
513 }], 582 }],
514 ], 583 ],
515 }, 584 },
516 ], 585 ],
517 'conditions': [ 586 'conditions': [
518 ['component=="static_library"', { 587 ['component=="static_library"', {
(...skipping 14 matching lines...) Expand all
533 'target_name': 'gpu', 602 'target_name': 'gpu',
534 'type': 'none', 603 'type': 'none',
535 'dependencies': [ 604 'dependencies': [
536 'command_buffer_client', 605 'command_buffer_client',
537 'command_buffer_common', 606 'command_buffer_common',
538 'command_buffer_service', 607 'command_buffer_service',
539 'gles2_cmd_helper', 608 'gles2_cmd_helper',
540 'gpu_config', 609 'gpu_config',
541 'gpu_ipc_client', 610 'gpu_ipc_client',
542 'gpu_ipc_common', 611 'gpu_ipc_common',
612 'gpu_ipc_service',
543 ], 613 ],
544 'sources': [ 614 'sources': [
545 'gpu_export.h', 615 'gpu_export.h',
546 ], 616 ],
547 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 617 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
548 'msvs_disabled_warnings': [4267, ], 618 'msvs_disabled_warnings': [4267, ],
549 }, 619 },
550 { 620 {
551 # GN version: //gpu/command_buffer/common 621 # GN version: //gpu/command_buffer/common
552 'target_name': 'command_buffer_common', 622 'target_name': 'command_buffer_common',
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 'target_name': 'gpu_ipc_common', 702 'target_name': 'gpu_ipc_common',
633 'type': 'static_library', 703 'type': 'static_library',
634 'includes': [ 704 'includes': [
635 'gpu_ipc_common.gypi', 705 'gpu_ipc_common.gypi',
636 ], 706 ],
637 'dependencies': [ 707 'dependencies': [
638 'command_buffer_traits', 708 'command_buffer_traits',
639 ], 709 ],
640 }, 710 },
641 { 711 {
712 # GN version: //gpu/ipc/service
713 'target_name': 'gpu_ipc_service',
714 'type': 'static_library',
715 'includes': [
716 'gpu_ipc_service.gypi',
717 ],
718 'dependencies': [
719 'command_buffer_traits',
720 ],
721 },
722 {
642 'target_name': 'gpu_config', 723 'target_name': 'gpu_config',
643 'type': 'static_library', 724 'type': 'static_library',
644 'includes': [ 725 'includes': [
645 'gpu_config.gypi', 726 'gpu_config.gypi',
646 ], 727 ],
647 }, 728 },
648 ], 729 ],
649 }, 730 },
650 { # component != static_library 731 { # component != static_library
651 'targets': [ 732 'targets': [
(...skipping 14 matching lines...) Expand all
666 'type': 'shared_library', 747 'type': 'shared_library',
667 'includes': [ 748 'includes': [
668 'command_buffer_client.gypi', 749 'command_buffer_client.gypi',
669 'command_buffer_common.gypi', 750 'command_buffer_common.gypi',
670 'command_buffer_service.gypi', 751 'command_buffer_service.gypi',
671 'command_buffer_traits.gypi', 752 'command_buffer_traits.gypi',
672 'gles2_cmd_helper.gypi', 753 'gles2_cmd_helper.gypi',
673 'gpu_config.gypi', 754 'gpu_config.gypi',
674 'gpu_ipc_client.gypi', 755 'gpu_ipc_client.gypi',
675 'gpu_ipc_common.gypi', 756 'gpu_ipc_common.gypi',
757 'gpu_ipc_service.gypi',
676 '../build/android/increase_size_for_speed.gypi', 758 '../build/android/increase_size_for_speed.gypi',
677 ], 759 ],
678 'defines': [ 760 'defines': [
679 'GPU_IMPLEMENTATION', 761 'GPU_IMPLEMENTATION',
680 ], 762 ],
681 'sources': [ 763 'sources': [
682 'gpu_export.h', 764 'gpu_export.h',
683 ], 765 ],
684 'dependencies': [ 766 'dependencies': [
685 '../base/base.gyp:base', 767 '../base/base.gyp:base',
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 ], 823 ],
742 }, 824 },
743 { 825 {
744 # GN version: //gpu/ipc/common 826 # GN version: //gpu/ipc/common
745 'target_name': 'gpu_ipc_common', 827 'target_name': 'gpu_ipc_common',
746 'type': 'none', 828 'type': 'none',
747 'dependencies': [ 829 'dependencies': [
748 'gpu', 830 'gpu',
749 ], 831 ],
750 }, 832 },
833 {
834 # GN version: //gpu/ipc/service
835 'target_name': 'gpu_ipc_service',
836 'type': 'none',
837 'dependencies': [
838 'gpu',
839 ],
840 },
841 {
842 'target_name': 'gpu_config',
843 'type': 'none',
844 'dependencies': [
845 'gpu',
846 ],
847 },
751 ], 848 ],
752 }], 849 }],
753 ['disable_nacl!=1 and OS=="win" and target_arch=="ia32"', { 850 ['disable_nacl!=1 and OS=="win" and target_arch=="ia32"', {
754 'targets': [ 851 'targets': [
755 { 852 {
756 'target_name': 'command_buffer_common_win64', 853 'target_name': 'command_buffer_common_win64',
757 'type': 'static_library', 854 'type': 'static_library',
758 'variables': { 855 'variables': {
759 'nacl_win64_target': 1, 856 'nacl_win64_target': 1,
760 }, 857 },
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
1051 ], 1148 ],
1052 'sources': [ 1149 'sources': [
1053 'gpu_unittests_apk.isolate', 1150 'gpu_unittests_apk.isolate',
1054 ], 1151 ],
1055 }, 1152 },
1056 ], 1153 ],
1057 }, 1154 },
1058 ], 1155 ],
1059 ], 1156 ],
1060 } 1157 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698