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

Unified Diff: gpu/gpu.gyp

Issue 2310613002: Inline GPU and opus GYP files into GN build. (Closed)
Patch Set: merge Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/gles2_conform_support/gles2_conform_test.gyp ('k') | gpu/gpu_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/gpu.gyp
diff --git a/gpu/gpu.gyp b/gpu/gpu.gyp
deleted file mode 100644
index 94273b1986a0fa6af3294fd78d34c94d0d53c881..0000000000000000000000000000000000000000
--- a/gpu/gpu.gyp
+++ /dev/null
@@ -1,1202 +0,0 @@
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-{
- 'variables': {
- 'nacl_win64_target': 0,
- 'build_angle_deqp_tests%': 0,
- },
- 'includes': [
- 'gpu_common.gypi',
- ],
- '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',
- '../third_party/khronos/khronos.gyp:khronos_headers',
- '../ui/gfx/gfx.gyp:gfx_geometry',
- '../ui/gl/gl.gyp:gl',
- '../ui/gl/init/gl_init.gyp:gl_init',
- 'command_buffer/command_buffer.gyp:gles2_utils',
- 'gles2_cmd_helper',
- ],
- 'defines': [
- 'GLES2_IMPL_IMPLEMENTATION',
- ],
- 'sources': [
- '<@(gles2_implementation_source_files)',
- ],
- 'includes': [
- # Disable LTO due to ELF section name out of range
- # crbug.com/422251
- '../build/android/disable_gcc_lto.gypi',
- ],
- # 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',
- '../ui/gl/init/gl_init.gyp:gl_init',
- ],
- 'defines': [
- 'GL_IN_PROCESS_CONTEXT_IMPLEMENTATION',
- ],
- 'sources': [
- 'command_buffer/client/gl_in_process_context.cc',
- 'command_buffer/client/gl_in_process_context.h',
- 'command_buffer/client/gl_in_process_context_export.h',
- ],
- },
- {
- # Library emulates GLES2 using command_buffers.
- 'target_name': 'gles2_implementation_no_check',
- 'type': '<(component)',
- 'defines': [
- 'GLES2_IMPL_IMPLEMENTATION',
- 'GLES2_CONFORMANCE_TESTS=1',
- ],
- 'dependencies': [
- '../base/base.gyp:base',
- '../third_party/khronos/khronos.gyp:khronos_headers',
- '../ui/gfx/gfx.gyp:gfx',
- '../ui/gfx/gfx.gyp:gfx_geometry',
- 'command_buffer/command_buffer.gyp:gles2_utils',
- 'gles2_cmd_helper',
- ],
- 'sources': [
- '<@(gles2_implementation_source_files)',
- ],
- # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
- 'msvs_disabled_warnings': [ 4267, ],
- },
- {
- # 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/base.gyp:base',
- '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
- 'command_buffer/command_buffer.gyp:gles2_utils',
- 'command_buffer_client',
- ],
- 'defines': [
- 'GLES2_C_LIB_IMPLEMENTATION',
- ],
- 'sources': [
- '<@(gles2_c_lib_source_files)',
- ],
- # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
- 'msvs_disabled_warnings': [4267, ],
- },
- {
- # GN version: //gpu/command_buffer/client:gles2_c_lib_nocheck
- # Same as gles2_c_lib except with no parameter checking. Required for
- # OpenGL ES 2.0 conformance tests.
- 'target_name': 'gles2_c_lib_nocheck',
- 'type': '<(component)',
- 'defines': [
- 'GLES2_C_LIB_IMPLEMENTATION',
- 'GLES2_CONFORMANCE_TESTS=1',
- ],
- 'dependencies': [
- '../base/base.gyp:base',
- '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
- 'command_buffer/command_buffer.gyp:gles2_utils',
- 'command_buffer_client',
- 'gles2_implementation_no_check',
- ],
- 'sources': [
- '<@(gles2_c_lib_source_files)',
- ],
- },
- {
- # GN version: //third_party/angle/src/tests:angle_unittests
- 'target_name': 'angle_unittests',
- 'type': '<(gtest_target_type)',
- 'includes': [
- '../third_party/angle/build/common_defines.gypi',
- '../third_party/angle/src/tests/angle_unittests.gypi',
- ],
- 'dependencies': [
- '../base/base.gyp:base',
- '../base/base.gyp:test_support_base',
- ],
- 'include_dirs': [
- '..',
- '../third_party/angle/include',
- ],
- 'sources': [
- 'angle_unittest_main.cc',
- ],
- 'conditions': [
- ['OS=="android"', {
- 'dependencies': [
- '../testing/android/native_test.gyp:native_test_native_code',
- ],
- }],
- ],
- },
- {
- # GN version: //gpu:gpu_unittests
- 'target_name': 'gpu_unittests',
- 'type': '<(gtest_target_type)',
- 'dependencies': [
- '../base/base.gyp:base',
- '../base/base.gyp:test_support_base',
- '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
- '../mojo/mojo_edk.gyp:mojo_common_test_support',
- '../mojo/mojo_public.gyp:mojo_cpp_bindings',
- '../testing/gmock.gyp:gmock',
- '../testing/gtest.gyp:gtest',
- '<(angle_path)/src/angle.gyp:translator',
- '../ui/gfx/gfx.gyp:gfx',
- '../ui/gfx/gfx.gyp:gfx_geometry',
- '../ui/gfx/gfx.gyp:gfx_test_support',
- '../ui/gl/gl.gyp:gl',
- '../ui/gl/init/gl_init.gyp:gl_init',
- '../ui/gl/gl.gyp:gl_test_support',
- 'command_buffer/command_buffer.gyp:gles2_utils',
- 'command_buffer_client',
- 'command_buffer_common',
- 'command_buffer_service',
- 'gpu',
- 'gpu_unittest_utils',
- 'gl_in_process_context',
- 'gles2_implementation',
- 'gles2_cmd_helper',
- 'gles2_c_lib',
- ],
- 'sources': [
- # 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/client/cmd_buffer_helper_test.cc',
- 'command_buffer/client/fenced_allocator_test.cc',
- 'command_buffer/client/gles2_implementation_unittest.cc',
- 'command_buffer/client/mapped_memory_unittest.cc',
- 'command_buffer/client/program_info_manager_unittest.cc',
- 'command_buffer/client/query_tracker_unittest.cc',
- 'command_buffer/client/ring_buffer_test.cc',
- 'command_buffer/client/transfer_buffer_unittest.cc',
- 'command_buffer/client/vertex_array_object_manager_unittest.cc',
- 'command_buffer/common/bitfield_helpers_test.cc',
- 'command_buffer/common/command_buffer_mock.cc',
- 'command_buffer/common/command_buffer_mock.h',
- 'command_buffer/common/command_buffer_shared_test.cc',
- 'command_buffer/common/debug_marker_manager_unittest.cc',
- 'command_buffer/common/gles2_cmd_format_test.cc',
- 'command_buffer/common/gles2_cmd_format_test_autogen.h',
- 'command_buffer/common/gles2_cmd_utils_unittest.cc',
- 'command_buffer/common/id_allocator_test.cc',
- 'command_buffer/common/id_type_unittest.cc',
- 'command_buffer/common/unittest_main.cc',
- 'command_buffer/service/buffer_manager_unittest.cc',
- 'command_buffer/service/cmd_parser_test.cc',
- 'command_buffer/service/command_buffer_service_unittest.cc',
- 'command_buffer/service/command_executor_unittest.cc',
- 'command_buffer/service/common_decoder_unittest.cc',
- 'command_buffer/service/context_group_unittest.cc',
- 'command_buffer/service/context_state_unittest.cc',
- 'command_buffer/service/feature_info_unittest.cc',
- 'command_buffer/service/framebuffer_manager_unittest.cc',
- 'command_buffer/service/gl_context_mock.cc',
- 'command_buffer/service/gl_context_mock.h',
- 'command_buffer/service/gl_context_virtual_unittest.cc',
- 'command_buffer/service/gl_surface_mock.cc',
- 'command_buffer/service/gl_surface_mock.h',
- '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.cc',
- '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_attribs.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_buffers.cc',
- 'command_buffer/service/gles2_cmd_decoder_unittest_context_lost.cc',
- '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/gpu_service_test.cc',
- 'command_buffer/service/gpu_service_test.h',
- 'command_buffer/service/gpu_tracer_unittest.cc',
- 'command_buffer/service/id_manager_unittest.cc',
- 'command_buffer/service/indexed_buffer_binding_host_unittest.cc',
- 'command_buffer/service/mailbox_manager_unittest.cc',
- 'command_buffer/service/memory_program_cache_unittest.cc',
- 'command_buffer/service/mocks.cc',
- 'command_buffer/service/mocks.h',
- 'command_buffer/service/path_manager_unittest.cc',
- 'command_buffer/service/program_cache_unittest.cc',
- 'command_buffer/service/program_manager_unittest.cc',
- 'command_buffer/service/query_manager_unittest.cc',
- 'command_buffer/service/renderbuffer_manager_unittest.cc',
- 'command_buffer/service/shader_manager_unittest.cc',
- 'command_buffer/service/shader_translator_cache_unittest.cc',
- 'command_buffer/service/shader_translator_unittest.cc',
- 'command_buffer/service/sync_point_manager_unittest.cc',
- 'command_buffer/service/test_helper.cc',
- 'command_buffer/service/test_helper.h',
- 'command_buffer/service/texture_manager_unittest.cc',
- 'command_buffer/service/transfer_buffer_manager_unittest.cc',
- 'command_buffer/service/transform_feedback_manager_unittest.cc',
- 'command_buffer/service/vertex_array_manager_unittest.cc',
- 'command_buffer/service/vertex_attrib_manager_unittest.cc',
- 'config/gpu_blacklist_unittest.cc',
- 'config/gpu_control_list_entry_unittest.cc',
- 'config/gpu_control_list_number_info_unittest.cc',
- 'config/gpu_control_list_os_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_info_collector_unittest.cc',
- 'config/gpu_info_unittest.cc',
- 'config/gpu_test_config_unittest.cc',
- 'config/gpu_test_expectations_parser_unittest.cc',
- 'config/gpu_util_unittest.cc',
- 'ipc/client/gpu_memory_buffer_impl_shared_memory_unittest.cc',
- 'ipc/client/gpu_memory_buffer_impl_test_template.h',
- ],
- 'conditions': [
- ['OS == "android"', {
- 'dependencies': [
- '../testing/android/native_test.gyp:native_test_native_code',
- ],
- 'sources+': [
- 'ipc/client/gpu_memory_buffer_impl_surface_texture_unittest.cc',
- ],
- }],
- ['OS == "mac"', {
- 'sources+': [
- 'ipc/client/gpu_memory_buffer_impl_io_surface_unittest.cc',
- ]
- }],
- ['use_ozone == 1', {
- 'dependencies': [
- '../ui/ozone/ozone.gyp:ozone',
- ],
- 'sources+': [
- 'ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap_unittest.cc',
- ]
- }],
- ],
- # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
- 'msvs_disabled_warnings': [ 4267, ],
- },
- {
- # GN version: //gpu/ipc/service:gpu_ipc_service_unittests
- 'target_name': 'gpu_ipc_service_unittests',
- 'type': '<(gtest_target_type)',
- 'dependencies': [
- '../base/base.gyp:base',
- '../base/base.gyp:test_support_base',
- '../ipc/ipc.gyp:ipc_run_all_unittests',
- '../ipc/ipc.gyp:test_support_ipc',
- '../skia/skia.gyp:skia',
- '../testing/gtest.gyp:gtest',
- '../testing/gmock.gyp:gmock',
- '../third_party/mesa/mesa.gyp:mesa_headers',
- '../ui/gfx/gfx.gyp:gfx_test_support',
- '../ui/gl/gl.gyp:gl',
- '../ui/gl/init/gl_init.gyp:gl_init',
- '../ui/gl/gl.gyp:gl_unittest_utils',
- '../ui/gl/gl.gyp:gl_test_support',
- '../url/url.gyp:url_lib',
- 'command_buffer/command_buffer.gyp:gles2_utils',
- 'command_buffer_common',
- 'command_buffer_service',
- 'gpu_config',
- 'gpu_ipc_common',
- 'gpu_ipc_service',
- 'gpu_ipc_service_test_support',
- ],
- 'sources': [
- 'ipc/service/gpu_channel_manager_unittest.cc',
- 'ipc/service/gpu_channel_test_common.cc',
- 'ipc/service/gpu_channel_test_common.h',
- 'ipc/service/gpu_channel_unittest.cc',
- ],
- 'include_dirs': [
- '../third_party/mesa/src/include',
- ],
- 'conditions': [
- ['OS == "android"', {
- 'dependencies': [
- '../testing/android/native_test.gyp:native_test_native_code',
- ],
- 'sources': [
- 'ipc/service/gpu_memory_buffer_factory_surface_texture_unittest.cc',
- ],
- }],
- ['OS == "mac"', {
- 'sources': [
- 'ipc/service/gpu_memory_buffer_factory_io_surface_unittest.cc',
- ],
- }],
- ['use_ozone == 1', {
- 'sources': [
- 'ipc/service/gpu_memory_buffer_factory_ozone_native_pixmap_unittest.cc',
- ],
- }],
- ],
- },
- {
- # GN version: //gpu/gpu_perftests
- 'target_name': 'gpu_perftests',
- 'type': '<(gtest_target_type)',
- 'dependencies': [
- '../base/base.gyp:base',
- '../base/base.gyp:test_support_base',
- '../testing/gmock.gyp:gmock',
- '../testing/gtest.gyp:gtest',
- '../testing/perf/perf_test.gyp:perf_test',
- '../ui/gfx/gfx.gyp:gfx_geometry',
- '../ui/gl/gl.gyp:gl',
- '../ui/gl/init/gl_init.gyp:gl_init',
- 'command_buffer_service',
- ],
- 'sources': [
- 'perftests/measurements.cc',
- 'perftests/run_all_tests.cc',
- 'perftests/texture_upload_perftest.cc',
- ],
- 'conditions': [
- ['OS == "android"',
- {
- 'dependencies': [
- '../testing/android/native_test.gyp:native_test_native_code',
- ],
- }
- ],
- ],
- },
- {
- # GN version: //gpu:gl_tests
- 'target_name': 'gl_tests',
- 'type': '<(gtest_target_type)',
- 'dependencies': [
- '../base/base.gyp:base',
- '../base/base.gyp:test_support_base',
- '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
- '../testing/gmock.gyp:gmock',
- '../testing/gtest.gyp:gtest',
- '<(angle_path)/src/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',
- '../ui/gl/init/gl_init.gyp:gl_init',
- 'command_buffer/command_buffer.gyp:gles2_utils',
- 'command_buffer_client',
- 'command_buffer_common',
- 'command_buffer_service',
- 'gpu',
- 'gpu_unittest_utils',
- 'gles2_implementation',
- 'gles2_cmd_helper',
- 'gles2_c_lib',
- #'gl_unittests',
- ],
- 'defines': [
- 'GL_GLEXT_PROTOTYPES',
- ],
- 'sources': [
- # Note: sources list duplicated in GN build.
- 'command_buffer/tests/compressed_texture_test.cc',
- 'command_buffer/tests/es3_misc_functions_unittest.cc',
- 'command_buffer/tests/gl_bgra_mipmap_unittest.cc',
- 'command_buffer/tests/gl_bind_uniform_location_unittest.cc',
- 'command_buffer/tests/gl_chromium_framebuffer_mixed_samples_unittest.cc',
- 'command_buffer/tests/gl_chromium_framebuffer_multisample_unittest.cc',
- 'command_buffer/tests/gl_chromium_path_rendering_unittest.cc',
- 'command_buffer/tests/gl_clear_framebuffer_unittest.cc',
- 'command_buffer/tests/gl_compressed_copy_texture_CHROMIUM_unittest.cc',
- 'command_buffer/tests/gl_copy_tex_image_2d_workaround_unittest.cc',
- 'command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc',
- 'command_buffer/tests/gl_cube_map_texture_unittest.cc',
- 'command_buffer/tests/gl_depth_texture_unittest.cc',
- 'command_buffer/tests/gl_deschedule_unittest.cc',
- 'command_buffer/tests/gl_dynamic_config_unittest.cc',
- 'command_buffer/tests/gl_ext_blend_func_extended_unittest.cc',
- 'command_buffer/tests/gl_ext_multisample_compatibility_unittest.cc',
- 'command_buffer/tests/gl_ext_srgb_unittest.cc',
- 'command_buffer/tests/gl_fence_sync_unittest.cc',
- 'command_buffer/tests/gl_gpu_memory_buffer_unittest.cc',
- 'command_buffer/tests/gl_iosurface_readback_workaround_unittest.cc',
- 'command_buffer/tests/gl_lose_context_chromium_unittest.cc',
- 'command_buffer/tests/gl_manager.cc',
- 'command_buffer/tests/gl_manager.h',
- 'command_buffer/tests/gl_native_gmb_backbuffer_unittest.cc',
- 'command_buffer/tests/gl_pointcoord_unittest.cc',
- 'command_buffer/tests/gl_program_unittest.cc',
- 'command_buffer/tests/gl_query_unittest.cc',
- 'command_buffer/tests/gl_readback_unittest.cc',
- 'command_buffer/tests/gl_request_extension_unittest.cc',
- 'command_buffer/tests/gl_shared_resources_unittest.cc',
- 'command_buffer/tests/gl_stream_draw_unittest.cc',
- 'command_buffer/tests/gl_test_utils.cc',
- 'command_buffer/tests/gl_test_utils.h',
- 'command_buffer/tests/gl_tests_main.cc',
- 'command_buffer/tests/gl_texture_mailbox_unittest.cc',
- 'command_buffer/tests/gl_texture_storage_unittest.cc',
- 'command_buffer/tests/gl_unittest.cc',
- 'command_buffer/tests/gl_unittests_android.cc',
- 'command_buffer/tests/gl_virtual_contexts_unittest.cc',
- 'command_buffer/tests/occlusion_query_unittest.cc',
- 'command_buffer/tests/texture_image_factory.cc',
- 'command_buffer/tests/texture_image_factory.h',
- ],
- 'conditions': [
- ['OS == "android"', {
- 'dependencies': [
- '../testing/android/native_test.gyp:native_test_native_code',
- ],
- }],
- ['OS == "win"', {
- 'dependencies': [
- '../third_party/angle/src/angle.gyp:libEGL',
- '../third_party/angle/src/angle.gyp:libGLESv2',
- ],
- }],
- ],
- # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
- 'msvs_disabled_warnings': [ 4267, ],
- },
- {
- # GN version: //gpu:test_support
- 'target_name': 'gpu_unittest_utils',
- 'type': 'static_library',
- 'dependencies': [
- '../testing/gmock.gyp:gmock',
- '../testing/gtest.gyp:gtest',
- '../third_party/khronos/khronos.gyp:khronos_headers',
- '../ui/gl/gl.gyp:gl_unittest_utils',
- 'gpu',
- ],
- 'include_dirs': [
- '..',
- ],
- 'sources': [
- 'command_buffer/client/gles2_interface_stub.cc',
- 'command_buffer/client/gles2_interface_stub.h',
- 'command_buffer/service/error_state_mock.cc',
- 'command_buffer/service/gles2_cmd_decoder_mock.cc',
- ],
- },
- {
- # GN version: //gpu/ipc/service:test_support
- 'target_name': 'gpu_ipc_service_test_support',
- 'type': 'static_library',
- 'dependencies': [
- # TODO(markdittmer): Shouldn't depend on client code for server tests.
- # See crbug.com/608800.
- 'gpu_ipc_client',
- ],
- 'include_dirs': [
- '..',
- ],
- 'sources': [
- 'gpu/ipc/service/gpu_memory_buffer_factory_test_template.h',
- ],
- },
- {
- # GN version: //gpu:command_buffer_gles2
- 'target_name': 'command_buffer_gles2',
- 'type': 'shared_library',
- 'dependencies': [
- '../base/base.gyp:base',
- '../gpu/command_buffer/command_buffer.gyp:gles2_utils',
- '../gpu/gpu.gyp:command_buffer_service',
- '../ui/gfx/gfx.gyp:gfx_geometry',
- '../ui/gl/gl.gyp:gl',
- '../ui/gl/init/gl_init.gyp:gl_init',
- 'command_buffer/command_buffer.gyp:gles2_utils',
- 'gles2_c_lib',
- 'gles2_implementation',
- ],
- 'sources': [
- # Note: sources list duplicated in GN build.
- # TODO(hendrikw): Move egl out of gles2_conform_support.
- 'gles2_conform_support/egl/config.cc',
- 'gles2_conform_support/egl/config.h',
- 'gles2_conform_support/egl/context.cc',
- 'gles2_conform_support/egl/context.h',
- 'gles2_conform_support/egl/display.cc',
- 'gles2_conform_support/egl/display.h',
- 'gles2_conform_support/egl/egl.cc',
- 'gles2_conform_support/egl/surface.cc',
- 'gles2_conform_support/egl/surface.h',
- 'gles2_conform_support/egl/test_support.cc',
- 'gles2_conform_support/egl/test_support.h',
- 'gles2_conform_support/egl/thread_state.cc',
- 'gles2_conform_support/egl/thread_state.h',
- ],
- 'defines': [
- 'COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY',
- 'EGLAPIENTRY=',
- ],
- 'conditions': [
- ['OS=="win"', {
- 'defines': [
- 'EGLAPI=__declspec(dllexport)',
- ],
- }, { # OS!="win"
- 'defines': [
- 'EGLAPI=__attribute__((visibility(\"default\")))'
- ],
- }],
- ],
- },
- {
- # GN version: //gpu:command_buffer_gles2_tests
- 'target_name': 'command_buffer_gles2_tests',
- 'type': '<(gtest_target_type)',
- 'dependencies': [
- '../base/base.gyp:base',
- '../base/base.gyp:test_support_base',
- '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
- '../testing/gmock.gyp:gmock',
- '../testing/gtest.gyp:gtest',
- 'command_buffer_gles2',
- ],
- 'sources': [
- # Note: sources list duplicated in GN build.
- 'command_buffer/tests/command_buffer_gles2_tests_main.cc',
- 'command_buffer/tests/egl_test.cc',
- ],
- 'defines': [
- 'COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY',
- 'EGLAPIENTRY=',
- ],
- 'conditions': [
- ['OS=="win"', {
- 'defines': [
- 'EGLAPI=__declspec(dllimport)',
- ],
- }, { # OS!="win"
- 'defines': [
- 'EGLAPI=',
- ],
- }],
- ['OS == "android"', {
- 'dependencies': [
- '../testing/android/native_test.gyp:native_test_native_code',
- ],
- }],
- ],
- },
- ],
- 'conditions': [
- ['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' ],
- 'variables': {
- 'proto_in_dir': 'command_buffer/service',
- 'proto_out_dir': 'gpu/command_buffer/service',
- },
- 'includes': [ '../build/protoc.gypi' ],
- },
- {
- # GN version: //gpu
- 'target_name': 'gpu',
- 'type': 'none',
- 'dependencies': [
- 'command_buffer_client',
- 'command_buffer_common',
- 'command_buffer_service',
- 'gles2_cmd_helper',
- 'gpu_config',
- 'gpu_ipc_client',
- 'gpu_ipc_common',
- 'gpu_ipc_service',
- ],
- 'sources': [
- 'gpu_export.h',
- ],
- # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
- 'msvs_disabled_warnings': [4267, ],
- },
- {
- # GN version: //gpu/command_buffer/common
- 'target_name': 'command_buffer_common',
- 'type': 'static_library',
- 'includes': [
- 'command_buffer_common.gypi',
- ],
- 'dependencies': [
- '../base/base.gyp:base',
- 'command_buffer/command_buffer.gyp:gles2_utils',
- ],
- 'export_dependent_settings': [
- '../base/base.gyp:base',
- ],
- },
- {
- # Library helps make GLES2 command buffers.
- # GN version: //gpu/command_buffer/client:gles2_cmd_helper
- 'target_name': 'gles2_cmd_helper',
- 'type': 'static_library',
- 'includes': [
- 'gles2_cmd_helper.gypi',
- ],
- 'dependencies': [
- 'command_buffer_client',
- ],
- # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
- 'msvs_disabled_warnings': [4267, ],
- },
- {
- # GN version: //gpu/command_buffer/client
- 'target_name': 'command_buffer_client',
- 'type': 'static_library',
- 'includes': [
- 'command_buffer_client.gypi',
- ],
- 'dependencies': [
- 'command_buffer_common',
- ],
- # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
- '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',
- # Disable LTO due to ELF section name out of range
- # crbug.com/422251
- '../build/android/disable_gcc_lto.gypi',
- ],
- 'dependencies': [
- '../third_party/angle/src/angle.gyp:angle_image_util',
- 'command_buffer_common',
- 'disk_cache_proto',
- 'gpu_config',
- ],
- # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
- 'msvs_disabled_warnings': [4267, ],
- },
- {
- # GN version: //gpu/ipc/common:command_buffer_traits
- 'target_name': 'command_buffer_traits',
- 'type': 'static_library',
- 'includes': [
- 'command_buffer_traits.gypi',
- ],
- },
- {
- # GN version: //gpu/ipc/client
- 'target_name': 'gpu_ipc_client',
- 'type': 'static_library',
- 'includes': [
- 'gpu_ipc_client.gypi',
- ],
- 'dependencies': [
- 'command_buffer_traits',
- ],
- },
- {
- # GN version: //gpu/ipc/common
- 'target_name': 'gpu_ipc_common',
- 'type': 'static_library',
- 'includes': [
- 'gpu_ipc_common.gypi',
- ],
- 'dependencies': [
- 'command_buffer_traits',
- ],
- },
- {
- # GN version: //gpu/ipc/service
- 'target_name': 'gpu_ipc_service',
- 'type': 'static_library',
- 'includes': [
- 'gpu_ipc_service.gypi',
- ],
- 'dependencies': [
- 'command_buffer_traits',
- ],
- },
- {
- 'target_name': 'gpu_config',
- 'type': 'static_library',
- 'includes': [
- 'gpu_config.gypi',
- ],
- },
- ],
- },
- { # 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' ],
- 'variables': {
- 'proto_in_dir': 'command_buffer/service',
- 'proto_out_dir': 'gpu/command_buffer/service',
- },
- 'includes': [ '../build/protoc.gypi' ],
- },
- {
- # GN version: //gpu
- 'target_name': 'gpu',
- 'type': 'shared_library',
- 'includes': [
- 'command_buffer_client.gypi',
- 'command_buffer_common.gypi',
- 'command_buffer_service.gypi',
- 'command_buffer_traits.gypi',
- 'gles2_cmd_helper.gypi',
- 'gpu_config.gypi',
- 'gpu_ipc_client.gypi',
- 'gpu_ipc_common.gypi',
- 'gpu_ipc_service.gypi',
- '../build/android/increase_size_for_speed.gypi',
- ],
- 'defines': [
- 'GPU_IMPLEMENTATION',
- ],
- 'sources': [
- 'gpu_export.h',
- ],
- 'dependencies': [
- '../base/base.gyp:base',
- '../third_party/angle/src/angle.gyp:angle_image_util',
- 'command_buffer/command_buffer.gyp:gles2_utils',
- 'disk_cache_proto',
- ],
- # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
- 'msvs_disabled_warnings': [4267, ],
- },
- {
- # GN version: //gpu/command_buffer/common
- 'target_name': 'command_buffer_common',
- 'type': 'none',
- 'dependencies': [
- 'gpu',
- ],
- },
- {
- # Library helps make GLES2 command buffers.
- # GN version: //gpu/command_buffer/client:gles2_cmd_helper
- 'target_name': 'gles2_cmd_helper',
- 'type': 'none',
- 'dependencies': [
- 'gpu',
- ],
- # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
- 'msvs_disabled_warnings': [4267, ],
- },
- {
- # GN version: //gpu/command_buffer/client
- 'target_name': 'command_buffer_client',
- 'type': 'none',
- 'dependencies': [
- 'gpu',
- ],
- },
- {
- # GN version: //gpu/command_buffer/service
- 'target_name': 'command_buffer_service',
- 'type': 'none',
- 'dependencies': [
- 'gpu',
- ],
- },
- {
- # GN version: //gpu/ipc/common:command_buffer_traits
- 'target_name': 'command_buffer_traits',
- 'type': 'none',
- 'dependencies': [
- 'gpu',
- ],
- },
- {
- # GN version: //gpu/ipc/client
- 'target_name': 'gpu_ipc_client',
- 'type': 'none',
- 'dependencies': [
- 'gpu',
- ],
- },
- {
- # GN version: //gpu/ipc/common
- 'target_name': 'gpu_ipc_common',
- 'type': 'none',
- 'dependencies': [
- 'gpu',
- ],
- },
- {
- # GN version: //gpu/ipc/service
- 'target_name': 'gpu_ipc_service',
- 'type': 'none',
- 'dependencies': [
- 'gpu',
- ],
- },
- {
- 'target_name': 'gpu_config',
- 'type': 'none',
- 'dependencies': [
- 'gpu',
- ],
- },
- ],
- }],
- ['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': 'command_buffer_traits_win64',
- 'type': 'static_library',
- 'variables': {
- 'nacl_win64_target': 1,
- },
- 'includes': [
- 'command_buffer_traits.gypi',
- ],
- 'dependencies': [
- '../base/base.gyp:base_win64',
- '../ipc/ipc.gyp:ipc_win64',
- '../ui/gfx/ipc/geometry/gfx_ipc_geometry.gyp:gfx_ipc_geometry_win64',
- 'command_buffer/command_buffer.gyp:gles2_utils_win64',
- 'command_buffer_common_win64',
- ],
- 'defines': [
- '<@(nacl_win64_defines)',
- 'GPU_IMPLEMENTATION',
- ],
- 'configurations': {
- 'Common_Base': {
- 'msvs_target_platform': 'x64',
- },
- },
- },
- ],
- }],
- ['OS == "android"', {
- 'targets': [
- {
- 'target_name': 'angle_unittests_apk',
- 'type': 'none',
- 'dependencies':
- [
- 'angle_unittests',
- ],
- 'variables':
- {
- 'test_suite_name': 'angle_unittests',
- },
- 'includes': [ '../build/apk_test.gypi' ],
- },
- {
- 'target_name': 'gl_tests_apk',
- 'type': 'none',
- 'dependencies': [
- 'gl_tests',
- ],
- 'variables': {
- 'test_suite_name': 'gl_tests',
- },
- 'includes': [
- '../build/apk_test.gypi',
- ],
- },
- {
- 'target_name': 'gpu_ipc_service_unittests_apk',
- 'type': 'none',
- 'dependencies': [
- 'gpu_ipc_service_unittests',
- ],
- 'variables': {
- 'test_suite_name': 'gpu_ipc_service_unittests',
- },
- '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' ],
- },
- {
- 'target_name': 'gpu_perftests_apk',
- 'type': 'none',
- 'dependencies': [
- 'gpu_perftests',
- ],
- 'variables': {
- 'test_suite_name': 'gpu_perftests',
- },
- 'includes': [ '../build/apk_test.gypi' ],
- },
- {
- 'target_name': 'command_buffer_gles2_tests_apk',
- 'type': 'none',
- 'dependencies': [
- 'command_buffer_gles2_tests',
- ],
- 'variables': {
- 'test_suite_name': 'command_buffer_gles2_tests',
- },
- 'includes': [
- '../build/apk_test.gypi',
- ],
- },
- ],
- }],
- ['OS == "win" or (OS == "linux" and use_x11==1) or OS == "mac"', {
- 'targets': [
- {
- 'target_name': 'angle_end2end_tests',
- 'type': '<(gtest_target_type)',
- 'dependencies': [
- '../base/base.gyp:base',
- '../base/base.gyp:test_support_base',
- ],
- 'includes': [
- '../third_party/angle/build/common_defines.gypi',
- '../third_party/angle/src/tests/angle_end2end_tests.gypi',
- ],
- 'sources': [
- 'angle_end2end_tests_main.cc',
- ],
- },
- ],
- }],
- ['OS == "win"', {
- 'targets': [
- {
- # TODO(jmadill): port this target to the GN build.
- 'target_name': 'angle_perftests',
- 'type': '<(gtest_target_type)',
- 'dependencies': [
- '../base/base.gyp:base',
- '../base/base.gyp:test_support_base',
- ],
- 'includes': [
- '../third_party/angle/build/common_defines.gypi',
- '../third_party/angle/src/tests/angle_perftests.gypi',
- ],
- 'sources': [
- 'angle_perftests_main.cc',
- ],
- },
- ],
- }],
- ['test_isolation_mode != "noop"', {
- 'targets': [
- {
- 'target_name': 'gpu_ipc_service_unittests_run',
- 'type': 'none',
- 'dependencies': [
- 'gpu_ipc_service_unittests',
- ],
- 'includes': [
- '../build/isolate.gypi',
- ],
- 'sources': [
- 'gpu_ipc_service_unittests.isolate',
- ],
- },
- {
- 'target_name': 'gpu_unittests_run',
- 'type': 'none',
- 'dependencies': [
- 'gpu_unittests',
- ],
- 'includes': [
- '../build/isolate.gypi',
- ],
- 'sources': [
- 'gpu_unittests.isolate',
- ],
- 'conditions': [
- ['use_x11==1',
- {
- 'dependencies': [
- '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
- ],
- }
- ],
- ],
- },
- ],
- }],
- ['build_angle_deqp_tests==1', {
- 'targets': [
- {
- # Only build dEQP on test configs. Note that dEQP is test-only code,
- # and is only a part of the Chromium build to allow easy integration
- # with the GPU bot waterfall. (Note that dEQP uses exceptions, and
- # currently can't build with Clang on Windows)
- 'target_name': 'angle_deqp_gles2_tests',
- 'type': '<(gtest_target_type)',
- 'dependencies': [
- '../base/base.gyp:base',
- '../base/base.gyp:test_support_base',
- '../third_party/angle/src/tests/tests.gyp:angle_deqp_gtest_support',
- '../third_party/angle/src/tests/tests.gyp:angle_deqp_libgles2',
- ],
- 'includes': [
- '../third_party/angle/build/common_defines.gypi',
- ],
- 'sources': [
- 'angle_deqp_tests_main.cc',
- ],
- },
- {
- 'target_name': 'angle_deqp_gles3_tests',
- 'type': '<(gtest_target_type)',
- 'dependencies': [
- '../base/base.gyp:base',
- '../base/base.gyp:test_support_base',
- '../third_party/angle/src/tests/tests.gyp:angle_deqp_gtest_support',
- '../third_party/angle/src/tests/tests.gyp:angle_deqp_libgles3',
- ],
- 'includes': [
- '../third_party/angle/build/common_defines.gypi',
- ],
- 'sources': [
- 'angle_deqp_tests_main.cc',
- ],
- },
- {
- 'target_name': 'angle_deqp_egl_tests',
- 'type': '<(gtest_target_type)',
- 'dependencies': [
- '../base/base.gyp:base',
- '../base/base.gyp:test_support_base',
- '../third_party/angle/src/tests/tests.gyp:angle_deqp_gtest_support',
- '../third_party/angle/src/tests/tests.gyp:angle_deqp_libegl',
- ],
- 'includes': [
- '../third_party/angle/build/common_defines.gypi',
- ],
- 'sources': [
- 'angle_deqp_tests_main.cc',
- ],
- },
- ],
- }],
- ['OS == "android" and test_isolation_mode != "noop"',
- {
- 'targets': [
- {
- 'target_name': 'command_buffer_gles2_tests_apk_run',
- 'type': 'none',
- 'dependencies': [
- 'command_buffer_gles2_tests_apk',
- ],
- 'includes': [
- '../build/isolate.gypi',
- ],
- 'sources': [
- 'command_buffer_gles2_apk.isolate',
- ],
- },
- {
- 'target_name': 'gl_tests_apk_run',
- 'type': 'none',
- 'dependencies': [
- 'gl_tests_apk',
- ],
- 'includes': [
- '../build/isolate.gypi',
- ],
- 'sources': [
- 'gl_tests_apk.isolate',
- ],
- },
- {
- 'target_name': 'gpu_ipc_service_unittests_apk_run',
- 'type': 'none',
- 'dependencies': [
- 'gpu_ipc_service_unittests_apk',
- ],
- 'includes': [
- '../build/isolate.gypi',
- ],
- 'sources': [
- 'gpu_ipc_service_unittests_apk.isolate',
- ],
- },
- {
- 'target_name': 'gpu_unittests_apk_run',
- 'type': 'none',
- 'dependencies': [
- 'gpu_unittests_apk',
- ],
- 'includes': [
- '../build/isolate.gypi',
- ],
- 'sources': [
- 'gpu_unittests_apk.isolate',
- ],
- },
- ],
- },
- ],
- ],
-}
« no previous file with comments | « gpu/gles2_conform_support/gles2_conform_test.gyp ('k') | gpu/gpu_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698