Add the OpenGL renderer to the GN build.

BUG=angle:890

Change-Id: I097296c7125e203ba04eab1c179dc8c183ed4789
Reviewed-on: https://chromium-review.googlesource.com/249842
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Tested-by: Geoff Lang <geofflang@chromium.org>
diff --git a/BUILD.gn b/BUILD.gn
index b87e4f7..167a79d 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -148,6 +148,7 @@
 
 angle_enable_d3d9 = false
 angle_enable_d3d11 = false
+angle_enable_gl = false
 
 if (is_win) {
   angle_enable_d3d9 = true
@@ -170,6 +171,9 @@
   if (angle_enable_d3d11) {
     defines += [ "ANGLE_ENABLE_D3D11" ]
   }
+  if (angle_enable_gl) {
+    defines += [ "ANGLE_ENABLE_OPENGL" ]
+  }
   defines += [
     "GL_APICALL=",
     "GL_GLEXT_PROTOTYPES=",
@@ -183,6 +187,7 @@
 static_library("libANGLE") {
   sources = rebase_path(gles_gypi.libangle_sources, ".", "src")
 
+  include_dirs = []
   libs = []
   defines = [
     "LIBANGLE_IMPLEMENTATION",
@@ -209,6 +214,15 @@
     libs += [ "dxguid.lib" ]
   }
 
+  if (angle_enable_gl) {
+    sources += rebase_path(gles_gypi.libangle_gl_sources, ".", "src")
+    include_dirs += [ "src/third_party/khronos" ]
+
+    if (is_win) {
+      sources += rebase_path(gles_gypi.libangle_gl_wgl_sources, ".", "src")
+    }
+  }
+
   if (is_debug) {
     defines += [
       "ANGLE_GENERATE_SHADER_DEBUG_INFO",