Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 source_set("display") { | |
| 6 sources = [ | |
| 7 "gl_canvas.cc", | |
| 8 "gl_canvas.h", | |
| 9 "gl_cursor.cc", | |
| 10 "gl_cursor.h", | |
| 11 "gl_cursor_feedback.cc", | |
| 12 "gl_cursor_feedback.h", | |
| 13 "gl_cursor_feedback_texture.cc", | |
| 14 "gl_cursor_feedback_texture.h", | |
| 15 "gl_desktop.cc", | |
| 16 "gl_desktop.h", | |
| 17 "gl_helpers.cc", | |
| 18 "gl_helpers.h", | |
| 19 "gl_math.cc", | |
| 20 "gl_math.h", | |
| 21 "gl_render_layer.cc", | |
| 22 "gl_render_layer.h", | |
| 23 "gl_renderer.cc", | |
| 24 "gl_renderer.h", | |
| 25 ] | |
| 26 | |
| 27 deps = [ | |
| 28 "//remoting/proto", | |
| 29 "//third_party/libyuv", | |
| 30 "//third_party/webrtc/base:rtc_base", | |
| 31 ] | |
| 32 | |
| 33 configs += [ "//third_party/khronos:khronos_headers" ] | |
| 34 | |
| 35 if (is_linux) { | |
| 36 libs = [ "GL" ] | |
| 37 } | |
| 38 | |
| 39 if (is_mac) { | |
| 40 libs = [ "OpenGL.framework" ] | |
| 41 } | |
| 42 | |
| 43 if (is_ios) { | |
| 44 libs = [ | |
| 45 "GLKit.framework", | |
| 46 "OpenGLES.framework", | |
| 47 ] | |
| 48 } | |
| 49 | |
| 50 if (is_win) { | |
| 51 deps += [ "//third_party/angle:libGLESv2" ] | |
| 52 } | |
| 53 } | |
| 54 | |
| 55 source_set("unit_tests") { | |
| 56 testonly = true | |
| 57 | |
| 58 sources = [ | |
| 59 "gl_renderer_unittest.cc", | |
| 60 ] | |
| 61 | |
| 62 configs += [ | |
| 63 "//remoting/build/config:version", | |
| 64 "//remoting/build/config:enable_webrtc_remoting_client", | |
| 65 ] | |
| 66 | |
| 67 deps = [ | |
| 68 ":display", | |
| 69 "//remoting/client", | |
| 70 "//remoting/proto", | |
| 71 "//testing/gmock", | |
| 72 "//testing/gtest", | |
| 73 "//third_party/webrtc/base:rtc_base", | |
| 74 ] | |
| 75 | |
| 76 if (is_win) { | |
|
Yuwei
2017/01/04 20:37:33
It seems kind of weird to have a target with no so
nicholss
2017/01/04 20:51:24
It really does not matter. The easiest solution is
| |
| 77 # Windows clang builder fails to link the test binary with ANGLE GLESv2. | |
| 78 # crbug.com/642027 | |
| 79 sources -= [ "gl_renderer_unittest.cc" ] | |
| 80 deps -= [ ":display" ] | |
| 81 } | |
| 82 } | |
| OLD | NEW |