summaryrefslogtreecommitdiffstats
path: root/gpu/gpu.gyp
diff options
context:
space:
mode:
authorhendrikw <hendrikw@chromium.org>2015-09-01 21:28:19 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-02 04:28:57 +0000
commitefa3a446183fbbff2034a03989f12543d0713e39 (patch)
tree6b3be72b8b68d39d047e76866ffbce201094fb0b /gpu/gpu.gyp
parent1ddd143afa3eacf010f32d7db0109cdb77ef608e (diff)
downloadchromium_src-efa3a446183fbbff2034a03989f12543d0713e39.zip
chromium_src-efa3a446183fbbff2034a03989f12543d0713e39.tar.gz
chromium_src-efa3a446183fbbff2034a03989f12543d0713e39.tar.bz2
Add command_buffer_gles2
This is a very simple library that exposes some egl-like functions that can be used by skia to use the command buffer as a backend for their tests Committed: https://crrev.com/604b615373e4e9f873db37cef9c6416176fc35f3 Cr-Commit-Position: refs/heads/master@{#346251} Review URL: https://codereview.chromium.org/1220883008 Cr-Commit-Position: refs/heads/master@{#346840}
Diffstat (limited to 'gpu/gpu.gyp')
-rw-r--r--gpu/gpu.gyp37
1 files changed, 37 insertions, 0 deletions
diff --git a/gpu/gpu.gyp b/gpu/gpu.gyp
index 650db2a..25cc26d 100644
--- a/gpu/gpu.gyp
+++ b/gpu/gpu.gyp
@@ -416,6 +416,43 @@
'command_buffer/service/gles2_cmd_decoder_mock.cc',
],
},
+ {
+ # GN version: //gpu:command_buffer_gles2
+ 'target_name': 'command_buffer_gles2',
+ 'type': 'shared_library',
+ 'dependencies': [
+ '../base/base.gyp:base',
+ '../gpu/gpu.gyp:command_buffer_service',
+ '../ui/gfx/gfx.gyp:gfx_geometry',
+ '../ui/gl/gl.gyp:gl',
+ '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/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',
+ ],
+ 'conditions': [
+ ['OS=="win"', {
+ 'defines': [
+ 'EGLAPIENTRY=',
+ 'EGLAPI=__declspec(dllexport)',
+ ],
+ }, { # OS!="win"
+ 'defines': [
+ 'EGLAPIENTRY=',
+ 'EGLAPI=__attribute__((visibility(\"default\")))'
+ ],
+ }, ],
+ ],
+ }
],
'conditions': [
['component=="static_library"', {