Index: gpu/BUILD.gn |
diff --git a/gpu/BUILD.gn b/gpu/BUILD.gn |
index cf993771214fe341fbe0762c2fc6d3d7e6c076f6..589717c19a7a774e82a167a1a1842b3208451a38 100644 |
--- a/gpu/BUILD.gn |
+++ b/gpu/BUILD.gn |
@@ -49,6 +49,33 @@ 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 = [ |
+ "//gpu/command_buffer/client:gles2_c_lib", |
+ "//gpu/command_buffer/client:gles2_implementation", |
+ "//gpu/command_buffer/service", |
+ ] |
+ |
+ defines = [ "EGLAPIENTRY=" ] |
+ if (current_os == "win") { |
+ defines += [ "EGLAPI=__declspec(dllexport)" ] |
+ } else { |
+ defines += [ "EGLAPI=__attribute__((visibility(\"default\")))" ] |
+ } |
+} |
+ |
source_set("test_support") { |
testonly = true |
sources = [ |