'targets': [
{
# Library emulates GLES2 using command_buffers.
+ # GN version: //gpu/command_buffer/client:gles2_implementation
'target_name': 'gles2_implementation',
'type': '<(component)',
'dependencies': [
'../base/base.gyp:base',
- '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'../third_party/khronos/khronos.gyp:khronos_headers',
- '../ui/gl/gl.gyp:gl',
- '../ui/gfx/gfx.gyp:gfx',
'../ui/gfx/gfx.gyp:gfx_geometry',
+ '../ui/gl/gl.gyp:gl',
'command_buffer/command_buffer.gyp:gles2_utils',
'gles2_cmd_helper',
],
],
'sources': [
'<@(gles2_implementation_source_files)',
- 'command_buffer/client/gl_in_process_context.h',
- 'command_buffer/client/gl_in_process_context.cc',
],
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
'msvs_disabled_warnings': [4267, ],
},
{
+ # GN version: //gpu/command_buffer/client:gl_in_process_context
+ 'target_name': 'gl_in_process_context',
+ 'type': '<(component)',
+ 'dependencies': [
+ 'command_buffer/command_buffer.gyp:gles2_utils',
+ 'gles2_implementation',
+ 'gpu',
+ '../base/base.gyp:base',
+ '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
+ '../ui/gfx/gfx.gyp:gfx_geometry',
+ '../ui/gl/gl.gyp:gl',
+ ],
+ 'defines': [
+ 'GL_IN_PROCESS_CONTEXT_IMPLEMENTATION',
+ ],
+ 'sources': [
+ 'command_buffer/client/gl_in_process_context.h',
+ 'command_buffer/client/gl_in_process_context.cc',
+ 'command_buffer/client/gl_in_process_context_export.h',
+ ],
+ },
+ {
# Library emulates GLES2 using command_buffers.
+ # GN version: //gpu/command_buffer/client:gles2_implementation_client_side_arrays
'target_name': 'gles2_implementation_client_side_arrays',
'type': '<(component)',
'defines': [
{
# Stub to expose gles2_implemenation in C instead of C++.
# so GLES2 C programs can work with no changes.
+ # GN version: //gpu/command_buffer/client:gles2_c_lib
'target_name': 'gles2_c_lib',
'type': '<(component)',
'dependencies': [
'../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'command_buffer/command_buffer.gyp:gles2_utils',
'command_buffer_client',
- 'gles2_implementation',
],
'defines': [
'GLES2_C_LIB_IMPLEMENTATION',
],
},
{
+ # GN version: //gpu:angle_unittests
'target_name': 'angle_unittests',
'type': '<(gtest_target_type)',
'dependencies': [
],
},
{
+ # GN version: //gpu:gpu_unittests
'target_name': 'gpu_unittests',
'type': '<(gtest_target_type)',
'dependencies': [
'../ui/gl/gl.gyp:gl',
'../ui/gfx/gfx.gyp:gfx',
'../ui/gfx/gfx.gyp:gfx_geometry',
+ '../ui/gfx/gfx.gyp:gfx_test_support',
'command_buffer/command_buffer.gyp:gles2_utils',
'command_buffer_client',
'command_buffer_common',
'gpu_unittest_utils',
'gles2_implementation_client_side_arrays',
'gles2_cmd_helper',
- ],
- 'defines': [
- 'GLES2_C_LIB_IMPLEMENTATION',
+ 'gles2_c_lib',
],
'sources': [
- '<@(gles2_c_lib_source_files)',
+ # Note: sources list duplicated in GN build.
'command_buffer/client/buffer_tracker_unittest.cc',
'command_buffer/client/client_test_helper.cc',
'command_buffer/client/client_test_helper.h',
'command_buffer/service/feature_info_unittest.cc',
'command_buffer/service/framebuffer_manager_unittest.cc',
'command_buffer/service/gles2_cmd_decoder_unittest.cc',
+ 'command_buffer/service/gles2_cmd_decoder_unittest.h',
'command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h',
'command_buffer/service/gles2_cmd_decoder_unittest_1.cc',
'command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h',
'command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h',
'command_buffer/service/gles2_cmd_decoder_unittest_3.cc',
'command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h',
+ 'command_buffer/service/gles2_cmd_decoder_unittest_async_pixel.cc',
'command_buffer/service/gles2_cmd_decoder_unittest_base.cc',
'command_buffer/service/gles2_cmd_decoder_unittest_base.h',
+ 'command_buffer/service/gles2_cmd_decoder_unittest_context_state.cc',
+ 'command_buffer/service/gles2_cmd_decoder_unittest_drawing.cc',
+ 'command_buffer/service/gles2_cmd_decoder_unittest_extensions.cc',
+ 'command_buffer/service/gles2_cmd_decoder_unittest_extensions_autogen.h',
+ 'command_buffer/service/gles2_cmd_decoder_unittest_framebuffers.cc',
+ 'command_buffer/service/gles2_cmd_decoder_unittest_programs.cc',
+ 'command_buffer/service/gles2_cmd_decoder_unittest_textures.cc',
+ 'command_buffer/service/gles2_cmd_decoder_unittest_attribs.cc',
'command_buffer/service/gl_surface_mock.cc',
'command_buffer/service/gl_surface_mock.h',
'command_buffer/service/gpu_scheduler_unittest.cc',
+ 'command_buffer/service/gpu_service_test.cc',
+ 'command_buffer/service/gpu_service_test.h',
'command_buffer/service/id_manager_unittest.cc',
'command_buffer/service/mailbox_manager_unittest.cc',
'command_buffer/service/memory_program_cache_unittest.cc',
'command_buffer/service/gpu_tracer_unittest.cc',
'config/gpu_blacklist_unittest.cc',
'config/gpu_control_list_entry_unittest.cc',
- 'config/gpu_control_list_machine_model_info_unittest.cc',
'config/gpu_control_list_number_info_unittest.cc',
'config/gpu_control_list_os_info_unittest.cc',
- 'config/gpu_control_list_string_info_unittest.cc',
'config/gpu_control_list_unittest.cc',
'config/gpu_control_list_version_info_unittest.cc',
'config/gpu_driver_bug_list_unittest.cc',
'config/gpu_util_unittest.cc',
],
'conditions': [
- ['OS == "android" and gtest_target_type == "shared_library"', {
+ ['OS == "android"', {
'dependencies': [
'../testing/android/native_test.gyp:native_test_native_code',
],
}],
# See http://crbug.com/162998#c4 for why this is needed.
- # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
- ['OS=="linux" and ((use_allocator!="none" and use_allocator!="see_use_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1))', {
+ ['OS=="linux" and use_allocator!="none"', {
'dependencies': [
'../base/allocator/allocator.gyp:allocator',
],
'msvs_disabled_warnings': [ 4267, ],
},
{
+ # GN version: //gpu:gl_tests
'target_name': 'gl_tests',
'type': '<(gtest_target_type)',
'dependencies': [
'../testing/gtest.gyp:gtest',
'<(angle_path)/src/build_angle.gyp:translator',
'../ui/gfx/gfx.gyp:gfx',
+ '../ui/gfx/gfx.gyp:gfx_test_support',
'../ui/gfx/gfx.gyp:gfx_geometry',
'../ui/gl/gl.gyp:gl',
'command_buffer/command_buffer.gyp:gles2_utils',
'gpu_unittest_utils',
'gles2_implementation_client_side_arrays',
'gles2_cmd_helper',
+ 'gles2_c_lib',
#'gl_unittests',
],
'defines': [
- 'GLES2_C_LIB_IMPLEMENTATION',
'GL_GLEXT_PROTOTYPES',
],
'sources': [
- '<@(gles2_c_lib_source_files)',
+ # Note: sources list duplicated in GN build.
'command_buffer/tests/compressed_texture_test.cc',
'command_buffer/tests/gl_bind_uniform_location_unittest.cc',
'command_buffer/tests/gl_chromium_framebuffer_multisample_unittest.cc',
+ 'command_buffer/tests/gl_chromium_path_rendering_unittest.cc',
'command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc',
'command_buffer/tests/gl_depth_texture_unittest.cc',
'command_buffer/tests/gl_gpu_memory_buffer_unittest.cc',
'command_buffer/tests/occlusion_query_unittest.cc',
],
'conditions': [
- ['OS == "android" and gtest_target_type == "shared_library"', {
+ ['OS == "android"', {
'dependencies': [
'../testing/android/native_test.gyp:native_test_native_code',
],
'msvs_disabled_warnings': [ 4267, ],
},
{
+ # GN version: //gpu:test_support
'target_name': 'gpu_unittest_utils',
'type': 'static_library',
'dependencies': [
['component=="static_library"', {
'targets': [
{
+ # GN version: //gpu/command_buffer/service:disk_cache_proto
'target_name': 'disk_cache_proto',
'type': 'static_library',
'sources': [ 'command_buffer/service/disk_cache_proto.proto' ],
'includes': [ '../build/protoc.gypi' ],
},
{
+ # GN version: //gpu
'target_name': 'gpu',
'type': 'none',
'dependencies': [
'msvs_disabled_warnings': [4267, ],
},
{
+ # GN version: //gpu/command_buffer/common
'target_name': 'command_buffer_common',
'type': 'static_library',
'includes': [
},
{
# Library helps make GLES2 command buffers.
+ # GN version: //gpu/command_buffer/client:gles2_cmd_helper
'target_name': 'gles2_cmd_helper',
'type': 'static_library',
'includes': [
'msvs_disabled_warnings': [4267, ],
},
{
+ # GN version: //gpu/command_buffer/client
'target_name': 'command_buffer_client',
'type': 'static_library',
'includes': [
'msvs_disabled_warnings': [4267, ],
},
{
+ # GN version: //gpu/command_buffer/service
'target_name': 'command_buffer_service',
'type': 'static_library',
'includes': [
'command_buffer_service.gypi',
+ '../build/android/increase_size_for_speed.gypi',
],
'dependencies': [
'command_buffer_common',
'msvs_disabled_warnings': [4267, ],
},
{
+ # GN version: //gpu/ipc
'target_name': 'gpu_ipc',
'type': 'static_library',
'includes': [
{ # component != static_library
'targets': [
{
+ # GN version: //gpu/command_buffer/service:disk_cache_proto
'target_name': 'disk_cache_proto',
'type': 'static_library',
'sources': [ 'command_buffer/service/disk_cache_proto.proto' ],
'includes': [ '../build/protoc.gypi' ],
},
{
+ # GN version: //gpu
'target_name': 'gpu',
'type': 'shared_library',
'includes': [
'gles2_cmd_helper.gypi',
'gpu_config.gypi',
'gpu_ipc.gypi',
+ '../build/android/increase_size_for_speed.gypi',
],
'defines': [
'GPU_IMPLEMENTATION',
'msvs_disabled_warnings': [4267, ],
},
{
+ # GN version: //gpu/command_buffer/common
'target_name': 'command_buffer_common',
'type': 'none',
'dependencies': [
},
{
# Library helps make GLES2 command buffers.
+ # GN version: //gpu/command_buffer/client:gles2_cmd_helper
'target_name': 'gles2_cmd_helper',
'type': 'none',
'dependencies': [
'msvs_disabled_warnings': [4267, ],
},
{
+ # GN version: //gpu/command_buffer/client
'target_name': 'command_buffer_client',
'type': 'none',
'dependencies': [
],
},
{
+ # GN version: //gpu/command_buffer/service
'target_name': 'command_buffer_service',
'type': 'none',
'dependencies': [
],
},
{
+ # GN version: //gpu/ipc
'target_name': 'gpu_ipc',
'type': 'none',
'dependencies': [
['disable_nacl!=1 and OS=="win" and target_arch=="ia32"', {
'targets': [
{
+ 'target_name': 'command_buffer_common_win64',
+ 'type': 'static_library',
+ 'variables': {
+ 'nacl_win64_target': 1,
+ },
+ 'includes': [
+ 'command_buffer_common.gypi',
+ ],
+ 'dependencies': [
+ '../base/base.gyp:base_win64',
+ ],
+ 'defines': [
+ '<@(nacl_win64_defines)',
+ 'GPU_IMPLEMENTATION',
+ ],
+ 'configurations': {
+ 'Common_Base': {
+ 'msvs_target_platform': 'x64',
+ },
+ },
+ },
+ {
'target_name': 'gpu_ipc_win64',
'type': 'static_library',
'variables': {
'dependencies': [
'../base/base.gyp:base_win64',
'../ipc/ipc.gyp:ipc_win64',
+ 'command_buffer_common_win64',
],
'defines': [
'<@(nacl_win64_defines)',
},
],
}],
- ['OS == "android" and gtest_target_type == "shared_library"', {
+ ['OS == "android"', {
'targets': [
{
'target_name': 'gl_tests_apk',
],
'variables': {
'test_suite_name': 'gl_tests',
- 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)gl_tests<(SHARED_LIB_SUFFIX)',
},
'includes': [
'../build/apk_test.gypi',
],
},
+ {
+ 'target_name': 'gpu_unittests_apk',
+ 'type': 'none',
+ 'dependencies': [
+ 'gpu_unittests',
+ ],
+ 'variables': {
+ 'test_suite_name': 'gpu_unittests',
+ },
+ 'includes': [ '../build/apk_test.gypi' ],
+ },
],
}],
],