Commit 46134cb9 authored by brettw's avatar brettw Committed by Commit bot

Inline GPU and opus GYP files into GN build.

Remove obsolete GYP files.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
TBR=dpranke@chromium.org

Review-Url: https://codereview.chromium.org/2310613002
Cr-Commit-Position: refs/heads/master@{#416398}
parent 4e36c9cd
......@@ -260,9 +260,6 @@ exec_script_whitelist = [
"//content/browser/browser.gni",
"//content/public/android/BUILD.gn",
"//content/test/BUILD.gn",
"//google_apis/BUILD.gn",
"//gpu/gles2_conform_support/BUILD.gn",
"//gpu/khronos_glcts_support/BUILD.gn",
"//jingle/BUILD.gn",
"//net/BUILD.gn",
"//printing/BUILD.gn",
......@@ -279,7 +276,6 @@ exec_script_whitelist = [
"//third_party/google_input_tools/inputview.gni",
"//third_party/harfbuzz-ng/BUILD.gn",
"//third_party/libaddressinput/BUILD.gn",
"//third_party/opus/BUILD.gn",
"//third_party/openh264/BUILD.gn",
"//third_party/skia/gn/shared_sources.gni",
"//third_party/WebKit/Source/bindings/bindings.gni",
......@@ -289,21 +285,11 @@ exec_script_whitelist = [
"//third_party/WebKit/Source/modules/modules.gni",
"//third_party/WebKit/Source/web/BUILD.gn",
"//tools/gn/BUILD.gn",
"//tools/gn/build_settings.h",
"//tools/gn/command_help.cc",
"//tools/gn/docs/language.md",
"//tools/gn/format_test_data/053.gn",
"//tools/gn/format_test_data/053.golden",
"//tools/gn/format_test_data/055.gn",
"//tools/gn/format_test_data/055.golden",
"//tools/gn/function_exec_script.cc",
"//tools/gn/gn.gyp",
"//tools/gn/input_conversion.cc",
"//tools/gn/misc/emacs/gn.el",
"//tools/gn/misc/vim/syntax/gn.vim",
"//tools/gn/setup.cc",
"//ui/accessibility/BUILD.gn",
"//ui/gfx/BUILD.gn",
"//v8/test/cctest/BUILD.gn",
"//v8/test/unittests/BUILD.gn",
# Not gypi-to-gn.
"//google_apis/BUILD.gn",
]
# 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': {
'chromium_code': 1,
},
'includes': [
'command_buffer.gypi',
],
'targets': [
{
'target_name': 'gles2_utils',
'type': '<(component)',
'variables': {
'gles2_utils_target': 1,
},
'dependencies': [
'../../base/base.gyp:base',
'../../ui/gfx/gfx.gyp:gfx_geometry',
'../../third_party/khronos/khronos.gyp:khronos_headers',
],
'export_dependent_settings': [
'../../base/base.gyp:base',
],
},
],
'conditions': [
['disable_nacl!=1 and OS=="win" and target_arch=="ia32"', {
'targets': [
{
'target_name': 'gles2_utils_win64',
'type': '<(component)',
'variables': {
'gles2_utils_target': 1,
},
'dependencies': [
'../../base/base.gyp:base_win64',
'../../ui/gfx/gfx.gyp:gfx_geometry_win64',
'../../third_party/khronos/khronos.gyp:khronos_headers',
],
'export_dependent_settings': [
'../../base/base.gyp:base_win64',
],
'defines': [
'<@(nacl_win64_defines)',
],
'configurations': {
'Common_Base': {
'msvs_target_platform': 'x64',
},
},
},
],
}],
],
}
# 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.
{
'target_defaults': {
'variables': {
'gles2_utils_target': 0,
},
'target_conditions': [
['gles2_utils_target==1', {
'defines': [
'GLES2_UTILS_IMPLEMENTATION',
],
'sources': [
'common/gles2_cmd_format.h',
'common/gles2_cmd_utils.cc',
'common/gles2_cmd_utils.h',
'common/gles2_utils_export.h',
],
}],
],
},
}
# 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': {
'chromium_code': 1,
},
'includes': [
'../../build/common_untrusted.gypi',
'command_buffer.gypi',
],
'conditions': [
['disable_nacl==0 and disable_nacl_untrusted==0', {
'targets': [
{
'target_name': 'gles2_utils_nacl',
'type': 'none',
'variables': {
'gles2_utils_target': 1,
'nacl_untrusted_build': 1,
'nlib_target': 'libgles2_utils_nacl.a',
'build_glibc': 0,
'build_newlib': 0,
'build_irt': 1,
'build_pnacl_newlib': 0,
'build_nonsfi_helper': 1,
},
'dependencies': [
'../../base/base_nacl.gyp:base_nacl',
'../../base/base_nacl.gyp:base_nacl_nonsfi',
'../../ui/gfx/gfx_nacl.gyp:gfx_geometry_nacl',
'../../third_party/khronos/khronos.gyp:khronos_headers',
],
},
],
}],
],
}
# 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.
{
'include_dirs': [
'..',
],
'all_dependent_settings': {
'include_dirs': [
'..',
],
},
'dependencies': [
'../third_party/khronos/khronos.gyp:khronos_headers',
],
'sources': [
'command_buffer/client/cmd_buffer_helper.cc',
'command_buffer/client/cmd_buffer_helper.h',
'command_buffer/client/fenced_allocator.cc',
'command_buffer/client/fenced_allocator.h',
'command_buffer/client/gpu_control.h',
'command_buffer/client/gpu_memory_buffer_manager.cc',
'command_buffer/client/gpu_memory_buffer_manager.h',
'command_buffer/client/mapped_memory.cc',
'command_buffer/client/mapped_memory.h',
'command_buffer/client/ring_buffer.cc',
'command_buffer/client/ring_buffer.h',
'command_buffer/client/transfer_buffer.cc',
'command_buffer/client/transfer_buffer.h',
],
}
# 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.
{
'dependencies': [
'../third_party/khronos/khronos.gyp:khronos_headers',
],
'sources': [
'command_buffer/common/bitfield_helpers.h',
'command_buffer/common/buffer.cc',
'command_buffer/common/buffer.h',
'command_buffer/common/capabilities.cc',
'command_buffer/common/capabilities.h',
'command_buffer/common/cmd_buffer_common.cc',
'command_buffer/common/cmd_buffer_common.h',
'command_buffer/common/command_buffer.h',
'command_buffer/common/command_buffer_id.h',
'command_buffer/common/constants.h',
'command_buffer/common/debug_marker_manager.cc',
'command_buffer/common/debug_marker_manager.h',
'command_buffer/common/gles2_cmd_format.cc',
'command_buffer/common/gles2_cmd_format.h',
'command_buffer/common/gles2_cmd_format_autogen.h',
'command_buffer/common/gles2_cmd_ids.h',
'command_buffer/common/gles2_cmd_ids_autogen.h',
'command_buffer/common/gpu_memory_buffer_support.cc',
'command_buffer/common/gpu_memory_buffer_support.h',
'command_buffer/common/id_allocator.cc',
'command_buffer/common/id_allocator.h',
'command_buffer/common/id_type.h',
'command_buffer/common/mailbox.cc',
'command_buffer/common/mailbox.h',
'command_buffer/common/mailbox_holder.cc',
'command_buffer/common/mailbox_holder.h',
'command_buffer/common/sync_token.cc',
'command_buffer/common/sync_token.h',
'command_buffer/common/texture_in_use_response.h',
'command_buffer/common/thread_local.h',
'command_buffer/common/time.h',
],
}
# 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.
{
'include_dirs': [
'..',
],
'all_dependent_settings': {
'include_dirs': [
'..',
],
},
'dependencies': [
'../base/base.gyp:base',
'../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'../crypto/crypto.gyp:crypto',
'../skia/skia.gyp:skia',
'../third_party/khronos/khronos.gyp:khronos_headers',
'../third_party/protobuf/protobuf.gyp:protobuf_lite',
'../third_party/re2/re2.gyp:re2',
'../third_party/smhasher/smhasher.gyp:cityhash',
'../ui/gfx/gfx.gyp:gfx',
'../ui/gfx/gfx.gyp:gfx_geometry',
'../ui/gl/gl.gyp:gl',
'../ui/gl/init/gl_init.gyp:gl_init',
'<(angle_path)/src/angle.gyp:commit_id',
'<(angle_path)/src/angle.gyp:translator',
],
'sources': [
'command_buffer/service/buffer_manager.cc',
'command_buffer/service/buffer_manager.h',
'command_buffer/service/cmd_buffer_engine.h',
'command_buffer/service/cmd_parser.cc',
'command_buffer/service/cmd_parser.h',
'command_buffer/service/command_buffer_service.cc',
'command_buffer/service/command_buffer_service.h',
'command_buffer/service/command_executor.cc',
'command_buffer/service/command_executor.h',
'command_buffer/service/common_decoder.cc',
'command_buffer/service/common_decoder.h',
'command_buffer/service/context_group.cc',
'command_buffer/service/context_group.h',
'command_buffer/service/context_state.cc',
'command_buffer/service/context_state.h',
'command_buffer/service/context_state_autogen.h',
'command_buffer/service/context_state_impl_autogen.h',
'command_buffer/service/error_state.cc',
'command_buffer/service/error_state.h',
'command_buffer/service/feature_info.cc',
'command_buffer/service/feature_info.h',
"command_buffer/service/framebuffer_completeness_cache.cc",
"command_buffer/service/framebuffer_completeness_cache.h",
'command_buffer/service/framebuffer_manager.cc',
'command_buffer/service/framebuffer_manager.h',
'command_buffer/service/gl_context_virtual.cc',
'command_buffer/service/gl_context_virtual.h',
'command_buffer/service/gl_state_restorer_impl.cc',
'command_buffer/service/gl_state_restorer_impl.h',
'command_buffer/service/gl_utils.cc',
'command_buffer/service/gl_utils.h',
'command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.cc',
'command_buffer/service/gles2_cmd_apply_framebuffer_attachment_cmaa_intel.h',
'command_buffer/service/gles2_cmd_clear_framebuffer.cc',
'command_buffer/service/gles2_cmd_clear_framebuffer.h',
'command_buffer/service/gles2_cmd_copy_tex_image.cc',
'command_buffer/service/gles2_cmd_copy_tex_image.h',
'command_buffer/service/gles2_cmd_copy_texture_chromium.cc',
'command_buffer/service/gles2_cmd_copy_texture_chromium.h',
'command_buffer/service/gles2_cmd_decoder.cc',
'command_buffer/service/gles2_cmd_decoder.h',
'command_buffer/service/gles2_cmd_decoder_autogen.h',
'command_buffer/service/gles2_cmd_decoder_passthrough.cc',
'command_buffer/service/gles2_cmd_decoder_passthrough.h',
'command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototypes.h',
'command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc',
'command_buffer/service/gles2_cmd_decoder_passthrough_handlers.cc',
'command_buffer/service/gles2_cmd_decoder_passthrough_handlers_autogen.cc',
'command_buffer/service/gles2_cmd_validation.cc',
'command_buffer/service/gles2_cmd_validation.h',
'command_buffer/service/gles2_cmd_validation_autogen.h',
'command_buffer/service/gles2_cmd_validation_implementation_autogen.h',
'command_buffer/service/gpu_preferences.cc',
'command_buffer/service/gpu_preferences.h',
'command_buffer/service/gpu_state_tracer.cc',
'command_buffer/service/gpu_state_tracer.h',
'command_buffer/service/gpu_switches.cc',
'command_buffer/service/gpu_switches.h',
'command_buffer/service/gpu_tracer.cc',
'command_buffer/service/gpu_tracer.h',
'command_buffer/service/id_manager.cc',
'command_buffer/service/id_manager.h',
'command_buffer/service/image_factory.cc',
'command_buffer/service/image_factory.h',
'command_buffer/service/image_manager.cc',
'command_buffer/service/image_manager.h',
'command_buffer/service/in_process_command_buffer.cc',
'command_buffer/service/in_process_command_buffer.h',
'command_buffer/service/indexed_buffer_binding_host.cc',
'command_buffer/service/indexed_buffer_binding_host.h',
'command_buffer/service/logger.cc',
'command_buffer/service/logger.h',
'command_buffer/service/mailbox_manager.cc',
'command_buffer/service/mailbox_manager.h',
'command_buffer/service/mailbox_manager_impl.cc',
'command_buffer/service/mailbox_manager_impl.h',
'command_buffer/service/mailbox_manager_sync.cc',
'command_buffer/service/mailbox_manager_sync.h',
'command_buffer/service/memory_program_cache.cc',
'command_buffer/service/memory_program_cache.h',
'command_buffer/service/mocks.h',
'command_buffer/service/program_cache.cc',
'command_buffer/service/program_cache.h',
'command_buffer/service/path_manager.cc',
'command_buffer/service/path_manager.h',
'command_buffer/service/program_manager.cc',
'command_buffer/service/program_manager.h',
'command_buffer/service/query_manager.cc',
'command_buffer/service/query_manager.h',
'command_buffer/service/renderbuffer_manager.cc',
'command_buffer/service/renderbuffer_manager.h',
'command_buffer/service/sampler_manager.cc',
'command_buffer/service/sampler_manager.h',
'command_buffer/service/shader_manager.cc',
'command_buffer/service/shader_manager.h',
'command_buffer/service/shader_translator.cc',
'command_buffer/service/shader_translator.h',
'command_buffer/service/shader_translator_cache.cc',
'command_buffer/service/shader_translator_cache.h',
'command_buffer/service/sync_point_manager.cc',
'command_buffer/service/sync_point_manager.h',
'command_buffer/service/texture_definition.cc',
'command_buffer/service/texture_definition.h',
'command_buffer/service/texture_manager.cc',
'command_buffer/service/texture_manager.h',
'command_buffer/service/transfer_buffer_manager.cc',
'command_buffer/service/transfer_buffer_manager.h',
'command_buffer/service/transform_feedback_manager.cc',
'command_buffer/service/transform_feedback_manager.h',
'command_buffer/service/vertex_array_manager.cc',
'command_buffer/service/vertex_array_manager.h',
'command_buffer/service/vertex_attrib_manager.cc',
'command_buffer/service/vertex_attrib_manager.h',
],
'conditions': [
['ui_compositor_image_transport==1', {
'include_dirs': [
'../third_party/khronos',
],
}],
['OS=="mac"', {
# Required by gles2_cmd_decoder.cc on Mac.
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/IOSurface.framework',
'$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
],
},
}],
],
}
# Copyright (c) 2016 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.
{
'dependencies': [
'../base/base.gyp:base',
'../ipc/ipc.gyp:ipc',
'../third_party/khronos/khronos.gyp:khronos_headers',
'../ui/gfx/ipc/geometry/gfx_ipc_geometry.gyp:gfx_ipc_geometry',
'command_buffer/command_buffer.gyp:gles2_utils',
],
'include_dirs': [
'..',
],
'sources': [
'ipc/common/gpu_command_buffer_traits.cc',
'ipc/common/gpu_command_buffer_traits.h',
'ipc/common/memory_stats.cc',
'ipc/common/memory_stats.h',
'ipc/common/surface_handle.h',
],
'conditions': [
# This section applies to gpu_ipc_win64, used by the NaCl Win64 helper
# (nacl64.exe).
['nacl_win64_target==1', {
# gpu_ipc_win64 must only link against the 64-bit ipc target.
'dependencies!': [
'../base/base.gyp:base',
'../ipc/ipc.gyp:ipc',
'../ui/gfx/ipc/geometry/gfx_ipc_geometry.gyp:gfx_ipc_geometry',
'command_buffer/command_buffer.gyp:gles2_utils',
],
}],
['OS=="android"', {
'sources': [
'ipc/common/android/surface_texture_manager.cc',
'ipc/common/android/surface_texture_manager.h',
'ipc/common/android/surface_texture_peer.cc',
'ipc/common/android/surface_texture_peer.h',
]
}]
],
}
# 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.
{
# Library helps make GLES2 command buffers.
'sources': [
'command_buffer/client/gles2_cmd_helper.cc',
'command_buffer/client/gles2_cmd_helper.h',
'command_buffer/client/gles2_cmd_helper_autogen.h',
],
}
This diff is collapsed.
This diff is collapsed.
# 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': {
'chromium_code': 1,
# These are defined here because we want to be able to compile them on
# the buildbots without needed the OpenGL ES 2.0 conformance tests
# which are not open source.
'bootstrap_sources_native': [
'native/main.cc',
],
'conditions': [
['OS=="linux" or OS=="win"', {
'bootstrap_sources_native': [
'native/egl_native.cc',
],
}],
],
},
'targets': [
{
# GN version: //gpu/gles2_conform_support/egl
'target_name': 'egl_native',
'type': 'static_library',
'dependencies': [
'../../base/base.gyp:base',
'../../gpu/command_buffer/command_buffer.gyp:gles2_utils',
'../../gpu/gpu.gyp:command_buffer_service',
'../../gpu/gpu.gyp:gles2_implementation_no_check',
'../../gpu/gpu.gyp:gpu',
'../../third_party/khronos/khronos.gyp:khronos_headers',
'../../ui/base/ui_base.gyp:ui_base',
'../../ui/gfx/gfx.gyp:gfx_geometry',
'../../ui/gl/gl.gyp:gl',
'../../ui/gl/init/gl_init.gyp:gl_init',
],
'sources': [
'egl/config.cc',
'egl/config.h',
'egl/context.cc',
'egl/context.h',
'egl/display.cc',
'egl/display.h',
'egl/egl.cc',
'egl/surface.cc',
'egl/surface.h',
'egl/test_support.cc',
'egl/test_support.h',
'egl/thread_state.cc',
'egl/thread_state.h',
],
'defines': [
'EGLAPI=',
'EGLAPIENTRY=',
],
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
'msvs_disabled_warnings': [ 4267, ],
},
{
# GN version: //gpu/gles2_conform_support/native
'target_name': 'egl_main_native',
'type': 'static_library',
'dependencies': [
'egl_native',
'../../third_party/khronos/khronos.gyp:khronos_headers',
],
'sources': [
'<@(bootstrap_sources_native)',
],
'defines': [
'GLES2_CONFORM_SUPPORT_ONLY',
'GTF_GLES20',
'EGLAPI=',
'EGLAPIENTRY=',
],
},
{
# GN version: //gpu/gles2_conform_support/native:windowless
'target_name': 'egl_main_windowless',
'type': 'static_library',
'dependencies': [
'egl_native',
'../../third_party/khronos/khronos.gyp:khronos_headers',
],
'sources': [
'native/egl_native.cc',
'native/egl_native_windowless.cc',
'native/main.cc',
'<@(bootstrap_sources_native)',
],
'defines': [
'GLES2_CONFORM_SUPPORT_ONLY',
'GTF_GLES20',
'EGLAPI=',
'EGLAPIENTRY=',
],
},
{
# GN version: //gpu/gles2_conform_support
'target_name': 'gles2_conform_support',
'type': 'executable',
'dependencies': [
'egl_native',
'../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'../../gpu/gpu.gyp:gles2_c_lib_nocheck',
'../../third_party/expat/expat.gyp:expat',
],
'defines': [
'GLES2_CONFORM_SUPPORT_ONLY',
'GTF_GLES20',
'EGLAPI=',
'EGLAPIENTRY=',
],
'sources': [
'<@(bootstrap_sources_native)',
'gles2_conform_support.c'
],
},
],
}
# Copyright (c) 2013 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.
{
'includes': [
'gles2_conform.gypi',
],
'target_defaults': {
'msvs_disabled_warnings': [4005, 4013, 4018, 4101, 4716],
'include_dirs': [
'<(SHARED_INTERMEDIATE_DIR)/gles2_conform_test_embedded_data',
'../../third_party/gles2_conform/GTF_ES/glsl/GTF/Source',
],
'variables': {
'clang_warning_flags': [
'-Wno-array-bounds',
# There are some implicit conversions from "int" to "char" in
# GTFExtensionTestSurfacelessContext.c.
'-Wno-constant-conversion',
'-Wno-implicit-function-declaration',
'-Wno-incompatible-pointer-types',
'-Wno-logical-op-parentheses',
# Many struct initializers in the GTF_ES code are missing braces.
'-Wno-missing-braces',
'-Wno-parentheses-equality',
'-Wno-pointer-sign',
'-Wno-return-type',
'-Wno-sizeof-pointer-memaccess',
# A few variables are unitialized if GLVersion != 2.0.
'-Wno-sometimes-uninitialized',
'-Wno-tautological-compare',
# GTFVecBase.h contains static no-inline functions in a header :-/
'-Wno-unused-function',
],
},
},
'targets': [
{
'target_name': 'gles2_conform_test',
'type': '<(gtest_target_type)',
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/base/base.gyp:test_support_base',
'<(DEPTH)/gpu/gpu.gyp:gpu',
'<(DEPTH)/testing/gtest.gyp:gtest',
],
'sources': [
'gles2_conform_test.cc',
],
'conditions': [
['internal_gles2_conform_tests', {
'dependencies': [
'gles2_conform_test_windowless',
],
'variables': {
'gles2_conform_test_output_dir': '<(SHARED_INTERMEDIATE_DIR)/gpu/gles2_conform_test',
},
'sources': [
'<(gles2_conform_test_output_dir)/gles2_conform_test_autogen.cc',
],
'actions': [
{
'action_name': 'generate_gles2_conform_tests',
'inputs': [
'generate_gles2_conform_tests.py',
'gles2_conform_test.h',
'<(DEPTH)/third_party/gles2_conform/GTF_ES/glsl/GTF/mustpass_es20.run',
],
'outputs': [
'<(gles2_conform_test_output_dir)/gles2_conform_test_autogen.cc',
],
'action': [
'python',
'generate_gles2_conform_tests.py',
'<(gles2_conform_test_output_dir)',
],
},
],
}], # internal_gles2_conform_tests
],
},
# TODO(alokp): Add gles2_conform_test_pepper target
],
'conditions': [
['internal_gles2_conform_tests', {
'targets': [
{
'target_name': 'gles2_conform_test_embedded_data',
'type': 'none',
'hard_dependency': 1,
'actions': [
{
'action_name': 'generate_gles2_conform_embedded_files',
'variables': {
'generator_path': 'generate_gles2_embedded_data.py',
},
'inputs': [
'<(generator_path)',
'<!@(python <(generator_path) ../../third_party/gles2_conform/GTF_ES/glsl/GTF)',
],
'outputs': [
#'../../third_party/gles2_conform/GTF_ES/glsl/GTF/Source/FilesDATA.c',
#'../../third_party/gles2_conform/GTF_ES/glsl/GTF/Source/FilesDATA.h',
#'../../third_party/gles2_conform/GTF_ES/glsl/GTF/Source/FilesTOC.c',
'<(SHARED_INTERMEDIATE_DIR)/gles2_conform_test_embedded_data/FilesDATA.c',
'<(SHARED_INTERMEDIATE_DIR)/gles2_conform_test_embedded_data/FilesDATA.h',
'<(SHARED_INTERMEDIATE_DIR)/gles2_conform_test_embedded_data/FilesTOC.c',
],
'action': [
'python',
'<(generator_path)',
'../../third_party/gles2_conform/GTF_ES/glsl/GTF',
'<(SHARED_INTERMEDIATE_DIR)/gles2_conform_test_embedded_data',
],
},
],
},
{
'target_name': 'gles2_conform_test_windowless',
'type': 'executable',
'dependencies': [
'gles2_conform_test_embedded_data',
'<(DEPTH)/gpu/gles2_conform_support/gles2_conform_support.gyp:egl_native',
'<(DEPTH)/gpu/gles2_conform_support/gles2_conform_support.gyp:egl_main_windowless',
'<(DEPTH)/gpu/gpu.gyp:gles2_c_lib_nocheck',
'<(DEPTH)/third_party/expat/expat.gyp:expat',
],
'conditions': [
['OS=="linux"', {
'conditions': [
[ 'chromeos==0', {
'dependencies': ['../../build/linux/system.gyp:gtk2']
}],
],
}],
['OS=="win"', {
'dependencies': [
'<(angle_path)/src/angle.gyp:libGLESv2',
'<(angle_path)/src/angle.gyp:libEGL',
],
'defines': [
'EGLAPI=',
'EGLAPIENTRY=',
],
'msvs_disabled_warnings': [
4018, # signed/unsigned mismatch
4101, # unreferenced local variable
4715, # not all control paths return a value
4267, # size_t/unsigned int conversion
],
'defines!': [ 'NOMINMAX' ],
}],
['OS=="mac"', {
'defines': [
'_STDINT',
'_STDINT_H',
],
'conditions': [
[ 'clang==1', {
'xcode_settings': {
'LD': 'clang++',
'WARNING_CFLAGS': [
'-Wno-pointer-sign',
'-Wno-array-bounds',
'-Wno-sizeof-pointer-memaccess',
'-Wno-implicit-function-declaration',
'-Wno-logical-op-parentheses',
'-Wno-tautological-compare',
'-Wno-parentheses-equality',
'-Wno-return-type',
],
},
}],
],
}],
],
'defines': [
'GTF_API=GTF_GLES20',
'HKEMBEDDEDFILESYSTEM',
],
'sources': [
'<@(gtf_es_sources)',
'<@(gl2_extension_test_sources)',
'<@(gl2_fixed_test_sources)',
'<@(gl2_test_sources)',
# Include a dummy c++ file to force linking of libstdc++.
'<(DEPTH)/gpu/gles2_conform_support/dummy.cc',
],
'run_as': {
'conditions': [
['OS=="win"', {
'action': [
'$(TargetPath)',
'-noimagefileio',
'-run=<(DEPTH)/third_party/gles2_conform/GTF_ES/glsl/GTF/mustpass.run',
],
}],
],
},
},
],
}], # internal_gles2_conform_tests
['OS=="win" and internal_gles2_conform_tests', {
'targets': [
{
'target_name': 'gles2_conform_test_angle',
'type': 'executable',
'dependencies': [
'gles2_conform_test_embedded_data',
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/third_party/expat/expat.gyp:expat',
'<(angle_path)/src/angle.gyp:libGLESv2',
'<(angle_path)/src/angle.gyp:libEGL',
'<(DEPTH)/gpu/gles2_conform_support/gles2_conform_support.gyp:egl_main_native',
],
'defines': [
'GTF_API=GTF_GLES20',
],
'include_dirs': [
'<(DEPTH)/third_party/angle_dx11/include',
],
'sources': [
'<@(gtf_es_sources)',
'<@(gl2_extension_test_sources)',
'<@(gl2_fixed_test_sources)',
'<@(gl2_test_sources)',
],
},
],
}],
['chromeos==1 and internal_gles2_conform_tests', {
'targets': [
{
'target_name': 'gles2_conform_test_chromeos',
'type': 'executable',
'dependencies': [
'gles2_conform_test_embedded_data',
'<(DEPTH)/base/base.gyp:*',
'<(DEPTH)/third_party/expat/expat.gyp:expat',
'<(DEPTH)/gpu/gles2_conform_support/gles2_conform_support.gyp:egl_main_native',
],
'libraries': [
'-lEGL',
'-lGLESv2',
],
'defines': [
'GTF_API=GTF_GLES20',
'CHROMEOS_GLES2_CONFORMANCE',
],
'sources': [
'<@(gtf_es_sources)',
'<@(gl2_extension_test_sources)',
'<@(gl2_fixed_test_sources)',
'<@(gl2_test_sources)',
],
},
],
}],
],
}
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2:
This diff is collapsed.
# 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': {
'chromium_code': 1,
# These are defined here because we need to build this library twice. Once
# with extra parameter checking. Once with no parameter checking to be 100%
# OpenGL ES 2.0 compliant for the conformance tests.
'gles2_c_lib_source_files': [
'command_buffer/client/gles2_c_lib.cc',
'command_buffer/client/gles2_c_lib_autogen.h',
'command_buffer/client/gles2_c_lib_export.h',
'command_buffer/client/gles2_lib.cc',
'command_buffer/client/gles2_lib.h',
],
# These are defined here because we need to build this library twice. Once
# with without support for client side arrays and once with for pepper and
# the OpenGL ES 2.0 compliant for the conformance tests.
'gles2_implementation_source_files': [
'command_buffer/client/buffer_tracker.cc',
'command_buffer/client/buffer_tracker.h',
'command_buffer/client/client_context_state.cc',
'command_buffer/client/client_context_state.h',
'command_buffer/client/client_context_state_autogen.h',
'command_buffer/client/client_context_state_impl_autogen.h',
'command_buffer/client/gles2_impl_export.h',
'command_buffer/client/gles2_implementation.cc',
'command_buffer/client/gles2_implementation.h',
'command_buffer/client/gles2_implementation_autogen.h',
'command_buffer/client/gles2_implementation_impl_autogen.h',
'command_buffer/client/gles2_interface.h',
'command_buffer/client/gles2_trace_implementation.cc',
'command_buffer/client/gles2_trace_implementation.h',
'command_buffer/client/gles2_trace_implementation_autogen.h',
'command_buffer/client/gles2_trace_implementation_impl_autogen.h',
'command_buffer/client/gpu_switches.cc',
'command_buffer/client/gpu_switches.h',
'command_buffer/client/program_info_manager.cc',
'command_buffer/client/program_info_manager.h',
'command_buffer/client/query_tracker.cc',
'command_buffer/client/query_tracker.h',
'command_buffer/client/share_group.cc',
'command_buffer/client/share_group.h',
'command_buffer/client/vertex_array_object_manager.cc',
'command_buffer/client/vertex_array_object_manager.h',
]
},
}
# 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.
{
'dependencies': [
'../third_party/re2/re2.gyp:re2',
'../base/base.gyp:base',
'../ui/gl/gl.gyp:gl',
'../ui/gl/init/gl_init.gyp:gl_init',
],
'include_dirs': [
'..',
],
'sources': [
'config/dx_diag_node.cc',
'config/dx_diag_node.h',
'config/gpu_blacklist.cc',
'config/gpu_blacklist.h',
'config/gpu_control_list.cc',
'config/gpu_control_list.h',
'config/gpu_control_list_jsons.h',
'config/gpu_driver_bug_list.cc',
'config/gpu_driver_bug_list.h',
'config/gpu_driver_bug_list_json.cc',
'config/gpu_driver_bug_workaround_type.h',
'config/gpu_driver_bug_workarounds.cc',
'config/gpu_driver_bug_workarounds.h',
'config/gpu_dx_diagnostics_win.cc',
'config/gpu_feature_type.h',
'config/gpu_info.cc',
'config/gpu_info.h',
'config/gpu_info_collector.cc',
'config/gpu_info_collector.h',
'config/gpu_info_collector_android.cc',
'config/gpu_info_collector_linux.cc',
'config/gpu_info_collector_linux.h',
'config/gpu_info_collector_mac.mm',
'config/gpu_info_collector_ozone.cc',
'config/gpu_info_collector_win.cc',
'config/gpu_info_collector_x11.cc',
'config/gpu_switches.cc',
'config/gpu_switches.h',
'config/gpu_test_config.cc',
'config/gpu_test_config.h',
'config/gpu_test_expectations_parser.cc',
'config/gpu_test_expectations_parser.h',
'config/gpu_util.cc',
'config/gpu_util.h',
'config/software_rendering_list_json.cc',
],
'conditions': [
['OS=="win"', {
'dependencies': [
'../third_party/libxml/libxml.gyp:libxml',
],
'link_settings': {
'libraries': [
'-ldxguid.lib',
'-lsetupapi.lib',
],
},
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
'msvs_disabled_warnings': [ 4267, ],
}],
['OS=="win" and branding=="Chrome" and buildtype=="Official"', {
'sources': [
'../third_party/amd/AmdCfxPxExt.h',
'../third_party/amd/amd_videocard_info_win.cc',
],
}],
['OS=="linux" and use_libpci==1 and (use_x11==1 or use_ozone==1)', {
'dependencies': [
'../build/linux/system.gyp:libpci',
],
}],
['OS=="linux" and use_x11==1', {
'dependencies': [
'../build/linux/system.gyp:x11',
'../build/linux/system.gyp:xext',
'../third_party/libXNVCtrl/libXNVCtrl.gyp:libXNVCtrl',
'../ui/gfx/x/gfx_x11.gyp:gfx_x11',
],
}],
],
}
# Copyright (c) 2016 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.
{
'dependencies': [
'../base/base.gyp:base',
'../ipc/ipc.gyp:ipc',
'../third_party/khronos/khronos.gyp:khronos_headers',
'../ui/base/ui_base.gyp:ui_base',
'../ui/events/events.gyp:events_base',
'../ui/events/events.gyp:events_ipc',
'../ui/gfx/gfx.gyp:gfx_geometry',
'../ui/gfx/ipc/geometry/gfx_ipc_geometry.gyp:gfx_ipc_geometry',
'../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
'../ui/gl/gl.gyp:gl',
'../ui/gl/init/gl_init.gyp:gl_init',
'../url/url.gyp:url_lib',
'../url/ipc/url_ipc.gyp:url_ipc',
],
'include_dirs': [
'..',
],
'sources': [
'ipc/client/command_buffer_proxy_impl.cc',
'ipc/client/command_buffer_proxy_impl.h',
'ipc/client/gpu_channel_host.cc',
'ipc/client/gpu_channel_host.h',
'ipc/client/gpu_memory_buffer_impl.cc',
'ipc/client/gpu_memory_buffer_impl.h',
'ipc/client/gpu_memory_buffer_impl_shared_memory.cc',
'ipc/client/gpu_memory_buffer_impl_shared_memory.h',
],
'conditions': [
# This section applies to gpu_ipc_win64, used by the NaCl Win64 helper
# (nacl64.exe).
['nacl_win64_target==1', {
# gpu_ipc_win64 must only link against the 64-bit ipc target.
'dependencies!': [
'../base/base.gyp:base',
'../ipc/ipc.gyp:ipc',
],
}],
['OS == "android"', {
'sources+': [
'ipc/client/gpu_memory_buffer_impl_surface_texture.cc',
'ipc/client/gpu_memory_buffer_impl_surface_texture.h',
'ipc/client/android/in_process_surface_texture_manager.cc',
'ipc/client/android/in_process_surface_texture_manager.h',
],
}],
['OS == "mac"', {
'sources+': [
'ipc/client/gpu_memory_buffer_impl_io_surface.cc',
'ipc/client/gpu_memory_buffer_impl_io_surface.h',
'ipc/client/gpu_process_hosted_ca_layer_tree_params.cc',
'ipc/client/gpu_process_hosted_ca_layer_tree_params.h',
],
}],
['use_ozone == 1', {
'sources+': [
'ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc',
'ipc/client/gpu_memory_buffer_impl_ozone_native_pixmap.h',
],
'dependencies': [
'../ui/ozone/ozone.gyp:ozone_platform',
],
}],
],
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
'msvs_disabled_warnings': [4267, ],
}
# Copyright (c) 2016 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.
{
'dependencies': [
'../base/base.gyp:base',
'../ipc/ipc.gyp:ipc',
'../third_party/khronos/khronos.gyp:khronos_headers',
'../ui/base/ui_base.gyp:ui_base',
'../ui/events/events.gyp:events_base',
'../ui/events/events.gyp:events_ipc',
'../ui/gfx/gfx.gyp:gfx_geometry',
'../ui/gfx/ipc/geometry/gfx_ipc_geometry.gyp:gfx_ipc_geometry',
'../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
'../ui/gl/gl.gyp:gl',
'../ui/gl/init/gl_init.gyp:gl_init',
'../url/url.gyp:url_lib',
'../url/ipc/url_ipc.gyp:url_ipc',
],
'include_dirs': [
'..',
],
'sources': [
'ipc/common/gpu_memory_buffer_support.cc',
'ipc/common/gpu_memory_buffer_support.h',
'ipc/common/gpu_memory_uma_stats.h',
'ipc/common/gpu_message_generator.cc',
'ipc/common/gpu_message_generator.h',
'ipc/common/gpu_messages.h',
'ipc/common/gpu_param_traits.cc',
'ipc/common/gpu_param_traits.h',
'ipc/common/gpu_param_traits_macros.h',
'ipc/common/gpu_stream_constants.h',
'ipc/common/gpu_surface_lookup.cc',
'ipc/common/gpu_surface_lookup.h',
],
'conditions': [
# This section applies to gpu_ipc_win64, used by the NaCl Win64 helper
# (nacl64.exe).
['nacl_win64_target==1', {
# gpu_ipc_win64 must only link against the 64-bit ipc target.
'dependencies!': [
'../base/base.gyp:base',
'../ipc/ipc.gyp:ipc',
],
}],
['use_ozone==1', {
'dependencies': [
'../ui/ozone/ozone.gyp:ozone_platform',
],
}],
],
}
# Copyright (c) 2016 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.
{
'dependencies': [
'../base/base.gyp:base',
'../ipc/ipc.gyp:ipc',
'../ui/events/events.gyp:events_base',
'../ui/events/events.gyp:events_ipc',
'../ui/gfx/gfx.gyp:gfx',
'../ui/gfx/gfx.gyp:gfx_geometry',
'../ui/gl/gl.gyp:gl',
'../ui/gl/init/gl_init.gyp:gl_init',
'../url/url.gyp:url_lib',
],
'include_dirs': [
'..',
],
'sources': [
'ipc/service/gpu_channel.cc',
'ipc/service/gpu_channel.h',
'ipc/service/gpu_channel_manager.cc',
'ipc/service/gpu_channel_manager.h',
'ipc/service/gpu_channel_manager_delegate.h',
'ipc/service/gpu_command_buffer_stub.cc',
'ipc/service/gpu_command_buffer_stub.h',
'ipc/service/gpu_config.h',
'ipc/service/gpu_memory_buffer_factory.cc',
'ipc/service/gpu_memory_buffer_factory.h',
'ipc/service/gpu_memory_manager.cc',
'ipc/service/gpu_memory_manager.h',
'ipc/service/gpu_memory_tracking.cc',
'ipc/service/gpu_memory_tracking.h',
'ipc/service/gpu_watchdog_thread.cc',
'ipc/service/gpu_watchdog_thread.h',
'ipc/service/image_transport_surface.h',
'ipc/service/pass_through_image_transport_surface.cc',
'ipc/service/pass_through_image_transport_surface.h',
],
'conditions': [
['OS=="win"', {
'sources': [
'ipc/service/child_window_surface_win.cc',
'ipc/service/child_window_surface_win.h',
'ipc/service/image_transport_surface_win.cc',
],
}],
['OS=="mac"', {
'sources': [
'ipc/service/image_transport_surface_overlay_mac.h',
'ipc/service/image_transport_surface_overlay_mac.mm',
'ipc/service/gpu_memory_buffer_factory_io_surface.cc',
'ipc/service/gpu_memory_buffer_factory_io_surface.h',
'ipc/service/image_transport_surface_mac.mm',
],
'dependencies': [
'../ui/accelerated_widget_mac/accelerated_widget_mac.gyp:accelerated_widget_mac',
],
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
],
},
}],
['OS=="android"', {
'sources': [
'ipc/service/image_transport_surface_android.cc',
'ipc/service/stream_texture_android.cc',
'ipc/service/stream_texture_android.h',
'ipc/service/gpu_memory_buffer_factory_surface_texture.cc',
'ipc/service/gpu_memory_buffer_factory_surface_texture.h',
],
'link_settings': {
'libraries': [
'-landroid', # ANativeWindow
],
},
}],
['OS=="linux"', {
'sources': [ 'ipc/service/image_transport_surface_linux.cc' ],
}],
['use_x11 == 1 and (target_arch != "arm" or chromeos == 0)', {
'sources': [
'ipc/service/x_util.h',
],
}],
['use_ozone == 1', {
'sources': [
'ipc/service/gpu_memory_buffer_factory_ozone_native_pixmap.cc',
'ipc/service/gpu_memory_buffer_factory_ozone_native_pixmap.h',
],
'dependencies': [
'../ui/ozone/gl/ozone_gl.gyp:ozone_gl',
'../ui/ozone/ozone.gyp:ozone',
],
}],
],
}
# 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': {
'chromium_code': 1,
# nacl_win64_target is for building the trusted Win64 NaCl broker.
'nacl_win64_target': 0,
},
'includes': [
'../build/common_untrusted.gypi',
'gpu_common.gypi',
],
'conditions': [
['disable_nacl==0 and disable_nacl_untrusted==0', {
'targets': [
{
'target_name': 'gles2_implementation_nacl',
'type': 'none',
'variables': {
'nacl_untrusted_build': 1,
'nlib_target': 'libgles2_implementation_nacl.a',
'build_glibc': 0,
'build_newlib': 0,
'build_irt': 1,
'build_pnacl_newlib': 0,
'build_nonsfi_helper': 1,
},
'defines': [
'GLES2_IMPL_IMPLEMENTATION',
],
'sources': [
'<@(gles2_implementation_source_files)',
],
'dependencies': [
'../base/base_nacl.gyp:base_nacl',
'../base/base_nacl.gyp:base_nacl_nonsfi',
'../third_party/khronos/khronos.gyp:khronos_headers',
'command_buffer/command_buffer_nacl.gyp:gles2_utils_nacl',
'gles2_cmd_helper_nacl',
],
},
{
'target_name': 'command_buffer_common_nacl',
'type': 'none',
'variables': {
'nacl_untrusted_build': 1,
'nlib_target': 'libcommand_buffer_common_nacl.a',
'build_glibc': 0,
'build_newlib': 0,
'build_irt': 1,
'build_pnacl_newlib': 0,
'build_nonsfi_helper': 1,
},
'includes': [
'command_buffer_common.gypi',
],
'dependencies': [
'../base/base_nacl.gyp:base_nacl',
'../base/base_nacl.gyp:base_nacl_nonsfi',
'command_buffer/command_buffer_nacl.gyp:gles2_utils_nacl',
],
},
{
'target_name': 'gles2_cmd_helper_nacl',
'type': 'none',
'variables': {
'nacl_untrusted_build': 1,
'nlib_target': 'libgles2_cmd_helper_nacl.a',
'build_glibc': 0,
'build_newlib': 0,
'build_irt': 1,
'build_pnacl_newlib': 0,
'build_nonsfi_helper': 1,
},
'includes': [
'gles2_cmd_helper.gypi',
],
'dependencies': [
'../base/base_nacl.gyp:base_nacl',
'../base/base_nacl.gyp:base_nacl_nonsfi',
'command_buffer_client_nacl',
],
},
{
'target_name': 'command_buffer_client_nacl',
'type': 'none',
'variables': {
'nacl_untrusted_build': 1,
'nlib_target': 'libcommand_buffer_client_nacl.a',
'build_glibc': 0,
'build_newlib': 0,
'build_irt': 1,
'build_pnacl_newlib': 0,
'build_nonsfi_helper': 1,
},
'includes': [
'command_buffer_client.gypi',
],
'dependencies': [
'../base/base_nacl.gyp:base_nacl',
'../base/base_nacl.gyp:base_nacl_nonsfi',
'command_buffer_common_nacl',
],
},
{
'target_name': 'gpu_ipc_nacl',
'type': 'none',
'variables': {
'nacl_untrusted_build': 1,
'nlib_target': 'libgpu_ipc_nacl.a',
'build_glibc': 0,
'build_newlib': 0,
'build_irt': 1,
'build_pnacl_newlib': 0,
'build_nonsfi_helper': 1,
},
'includes': [
'command_buffer_traits.gypi',
],
'dependencies': [
'../base/base_nacl.gyp:base_nacl',
'../base/base_nacl.gyp:base_nacl_nonsfi',
'../ui/gfx/ipc/geometry/gfx_ipc_geometry_nacl.gyp:gfx_ipc_geometry_nacl',
'command_buffer_common_nacl',
],
},
],
}],
],
}
This diff is collapsed.
This diff is collapsed.
# Copyright 2014 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.
{
'includes': [
'khronos_glcts.gypi',
'khronos_glcts_defaults.gypi',
],
'targets': [
{
'target_name': 'glcts_common',
'type': 'static_library',
'conditions': [
['OS=="linux"', {
'cflags_cc': [
# WA: Suppress "implicit conversion turns string literal into
# bool" compile warning from glcShaderIndexingTests.cpp,
# glcShaderLibraryCase.cpp and glcShaderLoopTests.cpp during
# Debug build
# TODO(uartie) fix.
'-Wno-string-conversion',
],
}],
],
'dependencies': [
'<(DEPTH)/gpu/khronos_glcts_support/khronos_glcts_framework.gyp:delibs',
'<(DEPTH)/gpu/khronos_glcts_support/khronos_glcts_framework.gyp:tcutil',
'<(DEPTH)/gpu/khronos_glcts_support/khronos_glcts_framework.gyp:glutil',
'<(DEPTH)/gpu/khronos_glcts_support/khronos_glcts_framework.gyp:tcutil_egl',
],
'direct_dependent_settings': {
'include_dirs': [
'<(DEPTH)/third_party/khronos_glcts/cts/common',
],
},
'sources': [
'<@(glcts_common_sources)',
],
},
{
'target_name': 'glcts_gtf_wrapper',
'type': 'static_library',
'dependencies': [
'glcts_common',
'<(DEPTH)/gpu/khronos_glcts_support/khronos_glcts_framework.gyp:delibs',
'<(DEPTH)/gpu/khronos_glcts_support/khronos_glcts_framework.gyp:tcutil',
'<(DEPTH)/gpu/khronos_glcts_support/khronos_glcts_framework.gyp:glutil',
'<(DEPTH)/gpu/khronos_glcts_support/khronos_glcts_framework.gyp:tcutil_egl',
],
'include_dirs': [
'<(DEPTH)/third_party/khronos_glcts/cts/gtf',
'<(DEPTH)/third_party/khronos_glcts/GTF_ES/glsl/GTF/Source'
],
'direct_dependent_settings': {
'include_dirs': [
'<(DEPTH)/third_party/khronos_glcts/cts/gtf',
],
},
'sources': [
'<@(glcts_gtf_wrapper_srcs)',
],
},
{
'target_name': 'glcts_gtf',
'type': 'static_library',
'dependencies': [
'glcts_common', 'glcts_gtf_wrapper',
'<(DEPTH)/gpu/khronos_glcts_support/khronos_glcts_gtf.gyp:gtf_es',
'<(DEPTH)/gpu/khronos_glcts_support/khronos_glcts_framework.gyp:delibs',
'<(DEPTH)/gpu/khronos_glcts_support/khronos_glcts_framework.gyp:tcutil',
'<(DEPTH)/gpu/khronos_glcts_support/khronos_glcts_framework.gyp:glutil',
],
'direct_dependent_settings': {
'include_dirs': [
'<(DEPTH)/third_party/khronos_glcts/cts/gtf',
],
},
'sources': [
'<@(glcts_gtf_srcs)',
],
},
{
'target_name': 'glcts_es2',
'type': 'static_library',
'dependencies': [
'glcts_common', 'glcts_gtf',
'<(DEPTH)/gpu/khronos_glcts_support/khronos_glcts_framework.gyp:delibs',
'<(DEPTH)/gpu/khronos_glcts_support/khronos_glcts_framework.gyp:tcutil',
'<(DEPTH)/gpu/khronos_glcts_support/khronos_glcts_framework.gyp:glutil',
],
'direct_dependent_settings': {
'include_dirs': [
'<(DEPTH)/third_party/khronos_glcts/cts/gles2',
],
},
'export_dependent_settings': [
'glcts_common',
],
'sources': [
'<@(glcts_es2_srcs)',
],
},
],
}
# Copyright 2015 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.
{
'target_defaults': {
'defines': [
'DEQP_TARGET_NAME="chrome-gpu-command-buffer"',
'DEQP_SUPPORT_GLES2=1',
'DEQP_SUPPORT_EGL=1',
'GTF_API=GTF_GLES20',
],
'conditions': [
['OS=="linux"', {
'defines': [
'_XOPEN_SOURCE=500',
],
'cflags!': [
'-fno-exceptions',
],
'cflags_cc!': [
'-fno-exceptions',
],
'target_conditions': [
['_type=="static_library"', {
'cflags_cc!': [
'-fno-rtti',
],
}],
],
}],
],
},
}
# Copyright 2014 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.
{
'includes': [
'khronos_glcts.gypi',
'khronos_glcts_defaults.gypi',
],
'targets': [
{
'target_name': 'khronos_glcts_framework',
'type': 'static_library',
'dependencies': [
'delibs', 'qphelper', 'tcutil', 'glutil', 'tcutil_egl',
],
'export_dependent_settings': [
'delibs', 'qphelper', 'tcutil', 'glutil', 'tcutil_egl',
],
},
{
'target_name': 'delibs',
'type': 'static_library',
'dependencies': [
'debase', 'depool', 'dethread', 'deutil', 'decpp',
],
'export_dependent_settings': [
'debase', 'depool', 'dethread', 'deutil', 'decpp',
],
},
{
'target_name': 'debase',
'type': 'static_library',
'conditions': [
['OS=="linux"', {
'cflags': [
# WA: Suppress "implicit declaration of function '__assert_fail'
# is invalid in C99" warning from deDefs.c for Release compiles.
# TODO(uartie) fix.
'-Wno-implicit-function-declaration',
],
}],
],
'direct_dependent_settings': {
'include_dirs': [
'<(DEPTH)/third_party/khronos_glcts/framework/delibs/debase',
],
},
'sources': [
'<@(debase_srcs)',
],
},
{
'target_name': 'depool',
'type': 'static_library',
'dependencies': [
'debase',
],
'direct_dependent_settings': {
'include_dirs': [
'<(DEPTH)/third_party/khronos_glcts/framework/delibs/depool',
],
},
'sources': [
'<@(depool_srcs)',
],
},
{
'target_name': 'dethread',
'type': 'static_library',
'dependencies': [
'debase',
],
'direct_dependent_settings': {
'include_dirs': [
'<(DEPTH)/third_party/khronos_glcts/framework/delibs/dethread',
],
},
'sources': [
'<@(dethread_srcs)',
],
'conditions': [
['OS=="linux"', {
'sources': [
'<@(dethread_unix_srcs)',
],
'include_dirs': [
'<(DEPTH)/third_party/khronos_glcts/framework/delibs/dethread',
],
}],
]
},
{
'target_name': 'deutil',
'type': 'static_library',
'dependencies': [
'debase', 'depool', 'dethread',
],
'direct_dependent_settings': {
'include_dirs': [
'<(DEPTH)/third_party/khronos_glcts/framework/delibs/deutil',
],
},
'sources': [
'<@(deutil_srcs)',
],
},
{
'target_name': 'decpp',
'type': 'static_library',
'dependencies': [
'debase', 'depool', 'dethread', 'deutil',
],
'direct_dependent_settings': {
'include_dirs': [
'<(DEPTH)/third_party/khronos_glcts/framework/delibs/decpp',
],
},
'sources': [
'<@(decpp_srcs)',
],
},
{
'target_name': 'qphelper',
'type': 'static_library',
'defines': [
'QP_SUPPORT_PNG',
],
'dependencies': [
'debase', 'depool', 'dethread', 'deutil',
'<(DEPTH)/third_party/libpng/libpng.gyp:libpng',
],
'direct_dependent_settings': {
'include_dirs': [
'<(DEPTH)/third_party/khronos_glcts/framework/qphelper',
],
},
'sources': [
'<@(qphelper_srcs)',
],
},
{
'target_name': 'tcutil',
'type': 'static_library',
'conditions': [
['OS=="linux"', {
'cflags_cc': [
# WA: Suppress "cast to 'const unsigned char *' from smaller
# integer type 'deUint32' (aka 'unsigned int')" compile warning
# from tcuRandomValueIterator.hpp.
# TODO(uartie) fix.
'-Wno-int-to-pointer-cast',
],
}],
],
'dependencies': [
'delibs', 'qphelper',
'<(DEPTH)/third_party/libpng/libpng.gyp:libpng',
],
'include_dirs': [
'<(DEPTH)/third_party/khronos_glcts/framework/delibs/libpng', #png.hpp
],
'export_dependent_settings': [
'qphelper',
],
'direct_dependent_settings': {
'include_dirs': [
'<(DEPTH)/third_party/khronos_glcts/framework/common',
],
},
'sources': [
'<@(tcutil_srcs)',
],
},
{
'target_name': 'glwrapper',
'type': 'static_library',
'dependencies': [
'delibs',
'<(DEPTH)/gpu/gpu.gyp:gles2_c_lib_nocheck',
'<(DEPTH)/gpu/gpu.gyp:command_buffer_service',
],
'direct_dependent_settings': {
'include_dirs': [
'<(DEPTH)/third_party/khronos_glcts/framework/opengl/wrapper',
],
},
'sources': [
'<@(glwrapper_srcs)',
],
},
{
'target_name': 'glutil',
'type': 'static_library',
'dependencies': [
'glwrapper', 'delibs', 'tcutil',
],
'export_dependent_settings': [
'glwrapper',
],
'direct_dependent_settings': {
'include_dirs': [
'<(DEPTH)/third_party/khronos_glcts/framework/opengl',
],
},
'sources': [
'<@(glutil_srcs)',
],
},
{
'target_name': 'tcutil_egl',
'type': 'static_library',
'conditions': [
['OS=="linux"', {
'cflags_cc': [
# WA: Suppress "cast to 'void *' from smaller
# integer type 'glw::GLuint' (aka 'unsigned int')" compile
# warning from tcuEglPlatform.cpp.
# TODO(uartie) fix.
'-Wno-int-to-void-pointer-cast',
],
}],
],
'dependencies': [
'delibs', 'tcutil', 'glwrapper',
# TODO: We may want to phase out the old gles2_conform support in preference
# of this implementation. So eventually we'll need to move the egl_native
# stuff here or to a shareable location/path.
'<(DEPTH)/gpu/gles2_conform_support/gles2_conform_support.gyp:egl_native',
'<(DEPTH)/third_party/khronos/khronos.gyp:khronos_headers',
],
'include_dirs': [
'<(DEPTH)/third_party/khronos_glcts/framework/opengl',
],
'direct_dependent_settings': {
'include_dirs': [
'<(DEPTH)/third_party/khronos_glcts/framework/egl',
],
},
'export_dependent_settings': [
'<(DEPTH)/third_party/khronos/khronos.gyp:khronos_headers',
],
'sources': [
'<@(tcutil_egl_srcs)',
],
},
],
}
# Copyright 2014 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.
{
'includes': [
'khronos_glcts.gypi',
'khronos_glcts_defaults.gypi',
],
'targets': [
{
'target_name': 'gtf_es',
'type': 'static_library',
'conditions': [
['OS=="linux"', {
'cflags': [
# WA: Suppress "control reaches end of non-void function" compile
# warning from GTFTestDriver.c.
# TODO(uartie) fix.
'-Wno-return-type',
# WA: Suppress "incompatible pointer types passing to parameter"
# compile warning from GTFTestExtension.c.
# TODO(uartie) fix.
'-Wno-incompatible-pointer-types',
# WA: Suppress "passing 'GLint [15]' to parameter of type
# 'GLuint *' (aka 'unsigned int') converts between pointers to
# integer types with different sign" compile warning from
# GTFGL2TestGetAttachedObjects.c
# TODO(uartie) fix.
'-Wno-pointer-sign',
# WA: Suppress "comparison of unsigned expression >= 0 is always
# true" compile warning from GTFgl.c
# TODO(uartie) fix.
'-Wno-tautological-compare',
# WA: Suppress "equality comparison with extraneous parentheses"
# compile warning from GTFgl.c
# TODO(uartie) fix.
'-Wno-parentheses-equality',
],
}],
],
'dependencies': [
'<(DEPTH)/gpu/khronos_glcts_support/khronos_glcts_framework.gyp:debase',
'<(DEPTH)/gpu/khronos_glcts_support/khronos_glcts_cts.gyp:glcts_gtf_wrapper',
'<(DEPTH)/third_party/expat/expat.gyp:expat',
],
'include_dirs': [
'<(DEPTH)/third_party/khronos_glcts/GTF_ES/glsl/GTF/Source',
],
'direct_dependent_settings': {
'include_dirs': [
'<(DEPTH)/third_party/khronos_glcts/GTF_ES/glsl/GTF/Source',
],
},
'sources': [
'<@(gtf_core_srcs)',
'<@(gtf_gl_core_srcs)',
'<@(gtf_gles2_srcs)',
'<@(gtf_gles2_es_only_srcs)',
],
},
],
}
# Copyright 2014 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.
{
'includes': [
'khronos_glcts.gypi',
'khronos_glcts_defaults.gypi',
],
'targets': [
{
'target_name': 'khronos_glcts_test',
'type': 'executable',
'dependencies': [
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/gpu/gpu.gyp:gpu',
'<(DEPTH)/testing/gtest.gyp:gtest',
],
'sources': [
'khronos_glcts_test.cc',
],
'conditions': [
['internal_khronos_glcts_tests', {
'dependencies': [
'khronos_glcts_test_windowless',
],
'variables': {
'khronos_glcts_test_output_dir': '<(SHARED_INTERMEDIATE_DIR)/gpu/khronos_glcts_test',
},
'sources': [
'<(khronos_glcts_test_output_dir)/khronos_glcts_test_autogen.cc',
],
'actions': [
{
'action_name': 'generate_khronos_glcts_tests',
'inputs': [
'generate_khronos_glcts_tests.py',
'khronos_glcts_test.h',
'<@(glcts_gtf_runfiles)',
],
'outputs': [
'<(khronos_glcts_test_output_dir)/khronos_glcts_test_autogen.cc',
],
'action': [
'python',
'generate_khronos_glcts_tests.py',
'--outdir=<(khronos_glcts_test_output_dir)',
'<@(glcts_gtf_runfiles)',
],
},
],
}],
],
},
],
'conditions': [
['internal_khronos_glcts_tests', {
'targets': [
{
'target_name': 'tcutil_platform_windowless',
'type': 'static_library',
'dependencies': [
'<(DEPTH)/gpu/khronos_glcts_support/khronos_glcts_framework.gyp:khronos_glcts_framework',
],
'sources': [
'native/egl_native_windowless.cc',
],
},
{
'target_name': 'khronos_glcts_test_windowless',
'type': 'executable',
'dependencies': [
'tcutil_platform_windowless',
'<(DEPTH)/gpu/khronos_glcts_support/khronos_glcts_framework.gyp:khronos_glcts_framework',
'<(DEPTH)/gpu/khronos_glcts_support/khronos_glcts_cts.gyp:glcts_es2',
],
'copies': [
{
'destination': '<(PRODUCT_DIR)/khronos_glcts_data/gl_cts',
'files': [
'<@(glcts_data_dirs)',
],
},
{
'destination': '<(PRODUCT_DIR)/khronos_glcts_data/gl_cts/GTF',
'files': [
'<@(glcts_gtf_data_dirs)',
'<@(glcts_gtf_runfiles)',
],
},
],
'sources': [
'<(DEPTH)/third_party/khronos_glcts/cts/glcTestPackageEntry.cpp',
'<(DEPTH)/third_party/khronos_glcts/cts/glcTestPackageRegistry.cpp',
'<(DEPTH)/third_party/khronos_glcts/cts/glcTestPackageRegistry.hpp',
'native/main.cc',
],
},
],
}],
],
}
# Copyright 2013 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': {
'chromium_code': 1,
},
'targets': [
{
# GN version: //gpu/skia_bindings
'target_name': 'gpu_skia_bindings',
'type': 'static_library',
'dependencies': [
'../gpu.gyp:gles2_implementation',
'../../skia/skia.gyp:skia',
],
'sources': [
'gl_bindings_skia_cmd_buffer.cc',
'gl_bindings_skia_cmd_buffer.h',
'grcontext_for_gles2_interface.cc',
'grcontext_for_gles2_interface.h',
],
}
]
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment