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