Commit c588ac73 by Geoff Lang

Add the OpenGL renderer to the GN build.

BUG=angle:890 Change-Id: I097296c7125e203ba04eab1c179dc8c183ed4789 Reviewed-on: https://chromium-review.googlesource.com/249842Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent d28f6113
...@@ -148,6 +148,7 @@ action("commit_id") { ...@@ -148,6 +148,7 @@ action("commit_id") {
angle_enable_d3d9 = false angle_enable_d3d9 = false
angle_enable_d3d11 = false angle_enable_d3d11 = false
angle_enable_gl = false
if (is_win) { if (is_win) {
angle_enable_d3d9 = true angle_enable_d3d9 = true
...@@ -170,6 +171,9 @@ config("libANGLE_config") { ...@@ -170,6 +171,9 @@ config("libANGLE_config") {
if (angle_enable_d3d11) { if (angle_enable_d3d11) {
defines += [ "ANGLE_ENABLE_D3D11" ] defines += [ "ANGLE_ENABLE_D3D11" ]
} }
if (angle_enable_gl) {
defines += [ "ANGLE_ENABLE_OPENGL" ]
}
defines += [ defines += [
"GL_APICALL=", "GL_APICALL=",
"GL_GLEXT_PROTOTYPES=", "GL_GLEXT_PROTOTYPES=",
...@@ -183,6 +187,7 @@ config("libANGLE_config") { ...@@ -183,6 +187,7 @@ config("libANGLE_config") {
static_library("libANGLE") { static_library("libANGLE") {
sources = rebase_path(gles_gypi.libangle_sources, ".", "src") sources = rebase_path(gles_gypi.libangle_sources, ".", "src")
include_dirs = []
libs = [] libs = []
defines = [ defines = [
"LIBANGLE_IMPLEMENTATION", "LIBANGLE_IMPLEMENTATION",
...@@ -209,6 +214,15 @@ static_library("libANGLE") { ...@@ -209,6 +214,15 @@ static_library("libANGLE") {
libs += [ "dxguid.lib" ] 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) { if (is_debug) {
defines += [ defines += [
"ANGLE_GENERATE_SHADER_DEBUG_INFO", "ANGLE_GENERATE_SHADER_DEBUG_INFO",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment