aboutsummaryrefslogtreecommitdiffhomepage
path: root/BUILD.gn
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2016-11-11 15:35:34 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-11-14 14:34:11 +0000
commit238b820369c4b556c2e7c8277855e6950de3d9eb (patch)
tree765b061086aa14b09202d4bc3d27680c58b69d74 /BUILD.gn
parentd7148f673a426c49d6d830b9d0bd5ee6077f1b9d (diff)
Always build the ANGLE test code. Always build ANGLE on windows and linux.
Make ANGLE test code independent of having ANGLE lib. Make ANGLE test code not include EGL headers. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4040 DOCS_PREVIEW= https://skia.org/?cl=4040 Change-Id: I7b857e9785246743f53fb969647b1162ce7419ab Reviewed-on: https://skia-review.googlesource.com/4040 Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn12
1 files changed, 3 insertions, 9 deletions
diff --git a/BUILD.gn b/BUILD.gn
index dab8918c08..64e69e73e5 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -11,7 +11,6 @@ if (!defined(is_skia_standalone)) {
}
declare_args() {
- skia_use_angle = false
skia_use_expat = true
skia_use_fontconfig = is_linux
skia_use_freetype = is_android || is_fuchsia || is_linux
@@ -755,6 +754,7 @@ if (skia_enable_tools) {
"tools/gpu/GrTest.cpp",
"tools/gpu/TestContext.cpp",
"tools/gpu/gl/GLTestContext.cpp",
+ "tools/gpu/gl/angle/GLTestContext_angle.cpp",
"tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp",
"tools/gpu/gl/debug/DebugGLTestContext.cpp",
"tools/gpu/gl/debug/GrBufferObj.cpp",
@@ -774,6 +774,7 @@ if (skia_enable_tools) {
libs += [ "OpenGLES.framework" ]
} else if (is_linux) {
sources += [ "tools/gpu/gl/glx/CreatePlatformGLTestContext_glx.cpp" ]
+ deps += [ "//third_party/angle2" ]
} else if (is_mac) {
sources += [ "tools/gpu/gl/mac/CreatePlatformGLTestContext_mac.cpp" ]
} else if (is_win) {
@@ -782,13 +783,9 @@ if (skia_enable_tools) {
"Gdi32.lib",
"OpenGL32.lib",
]
- }
-
- if (skia_use_angle) {
- public_defines += [ "SK_ANGLE" ]
deps += [ "//third_party/angle2" ]
- sources += [ "tools/gpu/gl/angle/GLTestContext_angle.cpp" ]
}
+
if (skia_use_mesa) {
public_defines += [ "SK_MESA" ]
sources += [ "tools/gpu/gl/mesa/GLTestContext_mesa.cpp" ]
@@ -1103,9 +1100,6 @@ if (skia_enable_tools) {
":tool_utils",
":views",
]
- if (skia_use_angle) {
- deps += [ "//third_party/angle2" ]
- }
testonly = true
}
}