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

Unified Diff: remoting/client/display/BUILD.gn

Issue 2614443003: Moving the GL implementation details into a sub folder for client display. (Closed)
Patch Set: Adding deps restriction on r/c/display; Moving sys_opengl.h Created 3 years, 11 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 | « remoting/client/BUILD.gn ('k') | remoting/client/display/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/display/BUILD.gn
diff --git a/remoting/client/display/BUILD.gn b/remoting/client/display/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..102850bd1f3c8ef3d29feabe12125d53ff0784af
--- /dev/null
+++ b/remoting/client/display/BUILD.gn
@@ -0,0 +1,81 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+source_set("display") {
+ sources = [
+ "gl_canvas.cc",
+ "gl_canvas.h",
+ "gl_cursor.cc",
+ "gl_cursor.h",
+ "gl_cursor_feedback.cc",
+ "gl_cursor_feedback.h",
+ "gl_cursor_feedback_texture.cc",
+ "gl_cursor_feedback_texture.h",
+ "gl_desktop.cc",
+ "gl_desktop.h",
+ "gl_helpers.cc",
+ "gl_helpers.h",
+ "gl_math.cc",
+ "gl_math.h",
+ "gl_render_layer.cc",
+ "gl_render_layer.h",
+ "gl_renderer.cc",
+ "gl_renderer.h",
+ ]
+
+ deps = [
+ "//remoting/proto",
+ "//third_party/libyuv",
+ "//third_party/webrtc/base:rtc_base",
+ ]
+
+ configs += [ "//third_party/khronos:khronos_headers" ]
+
+ if (is_linux) {
+ libs = [ "GL" ]
+ }
+
+ if (is_mac) {
+ libs = [ "OpenGL.framework" ]
+ }
+
+ if (is_ios) {
+ libs = [
+ "GLKit.framework",
+ "OpenGLES.framework",
+ ]
+ }
+
+ if (is_win) {
+ deps += [ "//third_party/angle:libGLESv2" ]
+ }
+}
+
+source_set("unit_tests") {
+ testonly = true
+
+ sources = [
+ "gl_renderer_unittest.cc",
+ ]
+
+ configs += [
+ "//remoting/build/config:version",
+ "//remoting/build/config:enable_webrtc_remoting_client",
+ ]
+
+ deps = [
+ ":display",
+ "//remoting/proto",
+ "//testing/gmock",
+ "//testing/gtest",
+ "//third_party/webrtc/base:rtc_base",
+ ]
+
+ if (is_win) {
+ # Windows clang builder fails to link the test binary with ANGLE GLESv2.
+ # crbug.com/642027
+ sources -= [ "gl_renderer_unittest.cc" ]
+ deps -= [ ":display" ]
+ }
+}
« no previous file with comments | « remoting/client/BUILD.gn ('k') | remoting/client/display/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698