1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
# 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.
static_library("client") {
# Disabled the source filters because there are _mac files that need to
# be compiled on all platforms.
set_sources_assignment_filter([])
sources = [
"audio_consumer.h",
"audio_player.cc",
"audio_player.h",
"chromoting_client.cc",
"chromoting_client.h",
"chromoting_session.cc",
"chromoting_session.h",
"client_context.cc",
"client_context.h",
"client_telemetry_logger.cc",
"client_telemetry_logger.h",
"client_user_interface.h",
"connect_to_host_info.cc",
"connect_to_host_info.h",
"cursor_shape_stub_proxy.cc",
"cursor_shape_stub_proxy.h",
"dual_buffer_frame_consumer.cc",
"dual_buffer_frame_consumer.h",
"empty_cursor_filter.cc",
"empty_cursor_filter.h",
"host_experiment_sender.cc",
"host_experiment_sender.h",
"key_event_mapper.cc",
"key_event_mapper.h",
"native_device_keymap.cc",
"native_device_keymap.h",
"normalizing_input_filter_cros.cc",
"normalizing_input_filter_cros.h",
"normalizing_input_filter_mac.cc",
"normalizing_input_filter_mac.h",
"normalizing_input_filter_win.cc",
"normalizing_input_filter_win.h",
"queued_task_poster.cc",
"queued_task_poster.h",
"server_log_entry_client.cc",
"server_log_entry_client.h",
"software_video_renderer.cc",
"software_video_renderer.h",
"touch_input_scaler.cc",
"touch_input_scaler.h",
]
set_sources_assignment_filter(sources_assignment_filter)
configs += [
"//build/config/compiler:wexit_time_destructors",
"//remoting/build/config:version",
"//remoting/build/config:enable_webrtc_remoting_client",
]
deps = [
"//remoting/base",
"//remoting/codec:decoder",
"//remoting/protocol",
"//third_party/libyuv",
"//third_party/webrtc/modules/desktop_capture:primitives",
"//ui/events:dom_keycode_converter",
]
libs = []
if (is_nacl) {
sources -= [
"client_telemetry_logger.cc",
"server_log_entry_client.cc",
]
} else {
sources += [
"chromoting_client_runtime.cc",
"chromoting_client_runtime.h",
]
}
if (is_android) {
sources += [
"audio_player_android.cc",
"audio_player_android.h",
"native_device_keymap_android.cc",
]
sources -= [ "native_device_keymap.cc" ]
libs += [
"android",
"OpenSLES",
]
}
}
source_set("unit_tests") {
testonly = true
# Disabled the source filters because there are _mac files that need to
# be compiled on all platforms.
set_sources_assignment_filter([])
sources = [
"audio_player_unittest.cc",
"chromoting_client_runtime_unittest.cc",
"client_telemetry_logger_unittest.cc",
"dual_buffer_frame_consumer_unittest.cc",
"empty_cursor_filter_unittest.cc",
"key_event_mapper_unittest.cc",
"normalizing_input_filter_cros_unittest.cc",
"normalizing_input_filter_mac_unittest.cc",
"normalizing_input_filter_win_unittest.cc",
"queued_task_poster_unittest.cc",
"server_log_entry_client_unittest.cc",
"software_video_renderer_unittest.cc",
"touch_input_scaler_unittest.cc",
]
set_sources_assignment_filter(sources_assignment_filter)
configs += [
"//remoting/build/config:version",
"//remoting/build/config:enable_webrtc_remoting_client",
]
deps = [
":client",
"//remoting/proto",
"//testing/gmock",
"//testing/gtest",
"//third_party/webrtc/base:rtc_base_approved",
]
}
|