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