OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 source_set("display") { | 5 source_set("display") { |
6 sources = [ | 6 sources = [ |
| 7 "canvas.h", |
| 8 "drawable.h", |
7 "gl_canvas.cc", | 9 "gl_canvas.cc", |
8 "gl_canvas.h", | 10 "gl_canvas.h", |
9 "gl_cursor.cc", | 11 "gl_cursor.cc", |
10 "gl_cursor.h", | 12 "gl_cursor.h", |
11 "gl_cursor_feedback.cc", | 13 "gl_cursor_feedback.cc", |
12 "gl_cursor_feedback.h", | 14 "gl_cursor_feedback.h", |
13 "gl_cursor_feedback_texture.cc", | 15 "gl_cursor_feedback_texture.cc", |
14 "gl_cursor_feedback_texture.h", | 16 "gl_cursor_feedback_texture.h", |
15 "gl_desktop.cc", | 17 "gl_desktop.cc", |
16 "gl_desktop.h", | 18 "gl_desktop.h", |
17 "gl_helpers.cc", | 19 "gl_helpers.cc", |
18 "gl_helpers.h", | 20 "gl_helpers.h", |
19 "gl_math.cc", | 21 "gl_math.cc", |
20 "gl_math.h", | 22 "gl_math.h", |
21 "gl_render_layer.cc", | 23 "gl_render_layer.cc", |
22 "gl_render_layer.h", | 24 "gl_render_layer.h", |
23 "gl_renderer.cc", | 25 "gl_renderer.cc", |
24 "gl_renderer.h", | 26 "gl_renderer.h", |
| 27 "sys_opengl.h", |
25 ] | 28 ] |
26 | 29 |
27 deps = [ | 30 deps = [ |
28 "//remoting/proto", | 31 "//remoting/proto", |
29 "//third_party/libyuv", | 32 "//third_party/libyuv", |
30 "//third_party/webrtc/base:rtc_base", | 33 "//third_party/webrtc/base:rtc_base", |
31 ] | 34 ] |
32 | 35 |
33 configs += [ "//third_party/khronos:khronos_headers" ] | 36 public_configs = [ "//third_party/khronos:khronos_headers" ] |
| 37 |
| 38 if (is_android) { |
| 39 libs = [ "GLESv2" ] |
| 40 } |
34 | 41 |
35 if (is_linux) { | 42 if (is_linux) { |
36 libs = [ "GL" ] | 43 libs = [ "GL" ] |
37 } | 44 } |
38 | 45 |
39 if (is_mac) { | 46 if (is_mac) { |
40 libs = [ "OpenGL.framework" ] | 47 libs = [ "OpenGL.framework" ] |
41 } | 48 } |
42 | 49 |
43 if (is_ios) { | 50 if (is_ios) { |
44 libs = [ | 51 libs = [ |
45 "GLKit.framework", | 52 "GLKit.framework", |
46 "OpenGLES.framework", | 53 "OpenGLES.framework", |
47 ] | 54 ] |
48 } | 55 } |
49 | 56 |
50 if (is_win) { | 57 if (is_win) { |
51 deps += [ "//third_party/angle:libGLESv2" ] | 58 deps += [ "//third_party/angle:libGLESv2" ] |
52 } | 59 } |
53 } | 60 } |
54 | 61 |
55 source_set("unit_tests") { | 62 if (is_win) { |
56 testonly = true | 63 # Windows clang builder fails to link the test binary with ANGLE GLESv2. |
| 64 # crbug.com/642027 |
| 65 group("unit_tests") { |
| 66 deps = [] |
| 67 } |
| 68 } else { |
| 69 source_set("unit_tests") { |
| 70 testonly = true |
57 | 71 |
58 sources = [ | 72 sources = [ |
59 "gl_renderer_unittest.cc", | 73 "fake_canvas.cc", |
60 ] | 74 "fake_canvas.h", |
| 75 "gl_renderer_unittest.cc", |
| 76 ] |
61 | 77 |
62 configs += [ | 78 configs += [ |
63 "//remoting/build/config:version", | 79 "//remoting/build/config:version", |
64 "//remoting/build/config:enable_webrtc_remoting_client", | 80 "//remoting/build/config:enable_webrtc_remoting_client", |
65 ] | 81 ] |
66 | 82 |
67 deps = [ | 83 deps = [ |
68 ":display", | 84 ":display", |
69 "//remoting/proto", | 85 "//remoting/proto", |
70 "//testing/gmock", | 86 "//testing/gmock", |
71 "//testing/gtest", | 87 "//testing/gtest", |
72 "//third_party/webrtc/base:rtc_base", | 88 "//third_party/webrtc/base:rtc_base", |
73 ] | 89 ] |
74 | |
75 if (is_win) { | |
76 # Windows clang builder fails to link the test binary with ANGLE GLESv2. | |
77 # crbug.com/642027 | |
78 sources -= [ "gl_renderer_unittest.cc" ] | |
79 deps -= [ ":display" ] | |
80 } | 90 } |
81 } | 91 } |
OLD | NEW |