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 import("//remoting/remoting_version.gni") | 5 import("//remoting/remoting_srcs.gni") |
6 | 6 |
7 static_library("client") { | 7 source_set("client") { |
8 gypi_values = exec_script("//build/gypi_to_gn.py", | 8 sources = rebase_path(remoting_srcs_gypi_values.remoting_client_sources, ".",
"//remoting") |
9 [ rebase_path("../remoting_srcs.gypi") ], | |
10 "scope", | |
11 [ "../remoting_srcs.gypi" ]) | |
12 | 9 |
13 sources = rebase_path(gypi_values.remoting_client_sources, ".", "//remoting") | 10 configs += [ |
14 | 11 "//build/config/compiler:wexit_time_destructors", |
15 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 12 "//remoting:version", |
16 | 13 ] |
17 defines = [ "VERSION=$version_full" ] | |
18 | 14 |
19 deps = [ | 15 deps = [ |
20 "//remoting/base", | 16 "//remoting/base", |
| 17 "//remoting/codec", |
21 "//remoting/protocol", | 18 "//remoting/protocol", |
22 "//third_party/libyuv", | 19 "//third_party/libyuv", |
23 "//third_party/webrtc/modules/desktop_capture", | 20 "//third_party/webrtc/modules/desktop_capture", |
24 ] | 21 ] |
25 } | 22 } |
| 23 |
| 24 source_set("unit_tests") { |
| 25 testonly = true |
| 26 |
| 27 sources = [ |
| 28 "audio_player_unittest.cc", |
| 29 "client_status_logger_unittest.cc", |
| 30 "key_event_mapper_unittest.cc", |
| 31 "plugin/empty_cursor_filter_unittest.cc", |
| 32 "plugin/normalizing_input_filter_mac_unittest.cc", |
| 33 "server_log_entry_client_unittest.cc", |
| 34 ] |
| 35 |
| 36 if (is_chromeos) { |
| 37 sources += [ "plugin/normalizing_input_filter_cros_unittest.cc" ] |
| 38 } |
| 39 |
| 40 deps = [ |
| 41 ":client", |
| 42 "//remoting/proto", |
| 43 "//testing/gmock", |
| 44 "//testing/gtest", |
| 45 "//third_party/webrtc", |
| 46 ] |
| 47 } |
OLD | NEW |