Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: remoting/client/BUILD.gn

Issue 2196493002: [Chromoting] Unit Tests for GlRenderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't draw when canvas is not set Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/client/gl_cursor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/BUILD.gn
diff --git a/remoting/client/BUILD.gn b/remoting/client/BUILD.gn
index 05ae3d4d70f13943be8dbb242464c9821a55bd3e..389da69d46f4e9d03b0b493991e86737e20083c5 100644
--- a/remoting/client/BUILD.gn
+++ b/remoting/client/BUILD.gn
@@ -41,20 +41,30 @@ static_library("client") {
}
}
-if (is_android || is_ios) {
- source_set("opengl_renderer") {
- sources =
- rebase_path(remoting_srcs_gypi_values.remoting_opengl_renderer_sources,
- ".",
- "//remoting")
-
- deps = [
- "//remoting/proto",
- "//third_party/libyuv",
- "//third_party/webrtc",
- ]
+source_set("opengl_renderer") {
+ sources =
+ rebase_path(remoting_srcs_gypi_values.remoting_opengl_renderer_sources,
+ ".",
+ "//remoting")
+
+ deps = [
+ "//remoting/proto",
+ "//third_party/libyuv",
+ "//third_party/webrtc",
+ ]
+
+ configs += [ "//third_party/khronos:khronos_headers" ]
+
+ if (is_linux) {
+ libs = [ "GL" ]
+ }
+
+ if (is_mac) {
+ libs = [ "OpenGL.framework" ]
+ }
- configs += [ "//third_party/khronos:khronos_headers" ]
+ if (is_win) {
+ deps += [ "//third_party/angle:libGLESv2" ]
}
}
@@ -87,6 +97,7 @@ source_set("unit_tests") {
"client_telemetry_logger_unittest.cc",
"dual_buffer_frame_consumer_unittest.cc",
"empty_cursor_filter_unittest.cc",
+ "gl_renderer_unittest.cc",
"key_event_mapper_unittest.cc",
"normalizing_input_filter_cros_unittest.cc",
"normalizing_input_filter_mac_unittest.cc",
@@ -105,6 +116,7 @@ source_set("unit_tests") {
deps = [
":client",
+ ":opengl_renderer",
":test_support",
"//remoting/proto",
"//testing/gmock",
« no previous file with comments | « no previous file | remoting/client/gl_cursor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698