diff options
Diffstat (limited to 'gpu/BUILD.gn')
-rw-r--r-- | gpu/BUILD.gn | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/gpu/BUILD.gn b/gpu/BUILD.gn index 7322c09..dbd236c 100644 --- a/gpu/BUILD.gn +++ b/gpu/BUILD.gn @@ -49,6 +49,45 @@ component("gpu") { ] } +# GYP version: //gpu/gpu.gyp:command_buffer_gles2 +shared_library("command_buffer_gles2") { + sources = [ + # 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", + ] + + deps = [ + "//base", + "//gpu/command_buffer/client:gles2_c_lib", + "//gpu/command_buffer/client:gles2_implementation", + "//gpu/command_buffer/service", + "//ui/gl:gl", + ] + + if (!is_component_build) { + deps += [ + "//gpu/command_buffer/client:client_sources", + "//gpu/command_buffer/client:gles2_cmd_helper_sources", + ] + } + + defines = [ + "COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY", + "EGLAPIENTRY=", + ] + if (current_os == "win") { + defines += [ "EGLAPI=__declspec(dllexport)" ] + } else { + defines += [ "EGLAPI=__attribute__((visibility(\"default\")))" ] + } +} + source_set("test_support") { testonly = true sources = [ |