Chromium Code Reviews| Index: gpu/BUILD.gn |
| diff --git a/gpu/BUILD.gn b/gpu/BUILD.gn |
| index cf993771214fe341fbe0762c2fc6d3d7e6c076f6..1a0f9bee28d6a0edf4ed9bf39867b8d3d5b3189e 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) { |
|
Nico
2015/12/21 16:48:46
Why is this conditional here? This seems wrong at
|
| + 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 = [ |