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_srcs.gni") |
6 | 6 |
7 source_set("client") { | 7 source_set("client") { |
| 8 # Disabled the source filters because there are _mac files that need to |
| 9 # be compiled on all platforms. |
| 10 set_sources_assignment_filter([]) |
8 sources = rebase_path(remoting_srcs_gypi_values.remoting_client_sources, | 11 sources = rebase_path(remoting_srcs_gypi_values.remoting_client_sources, |
9 ".", | 12 ".", |
10 "//remoting") | 13 "//remoting") |
| 14 set_sources_assignment_filter(sources_assignment_filter) |
11 | 15 |
12 configs += [ | 16 configs += [ |
13 "//build/config/compiler:wexit_time_destructors", | 17 "//build/config/compiler:wexit_time_destructors", |
14 "//remoting:version", | 18 "//remoting:version", |
15 ] | 19 ] |
16 | 20 |
17 deps = [ | 21 deps = [ |
18 "//remoting/base", | 22 "//remoting/base", |
19 "//remoting/codec", | 23 "//remoting/codec", |
20 "//remoting/protocol", | 24 "//remoting/protocol", |
21 "//third_party/libyuv", | 25 "//third_party/libyuv", |
22 "//third_party/webrtc/modules/desktop_capture", | 26 "//third_party/webrtc/modules/desktop_capture:primitives", |
23 ] | 27 ] |
| 28 |
| 29 if (is_nacl) { |
| 30 sources -= [ |
| 31 "client_status_logger.cc", |
| 32 "server_log_entry_client.cc", |
| 33 ] |
| 34 } |
24 } | 35 } |
25 | 36 |
26 source_set("unit_tests") { | 37 source_set("unit_tests") { |
27 testonly = true | 38 testonly = true |
28 | 39 |
| 40 # Disabled the source filters because there are _mac files that need to |
| 41 # be compiled on all platforms. |
| 42 set_sources_assignment_filter([]) |
29 sources = [ | 43 sources = [ |
30 "audio_player_unittest.cc", | 44 "audio_player_unittest.cc", |
31 "client_status_logger_unittest.cc", | 45 "client_status_logger_unittest.cc", |
32 "empty_cursor_filter_unittest.cc", | 46 "empty_cursor_filter_unittest.cc", |
33 "key_event_mapper_unittest.cc", | 47 "key_event_mapper_unittest.cc", |
34 "normalizing_input_filter_cros_unittest.cc", | 48 "normalizing_input_filter_cros_unittest.cc", |
35 "normalizing_input_filter_mac_unittest.cc", | 49 "normalizing_input_filter_mac_unittest.cc", |
36 "server_log_entry_client_unittest.cc", | 50 "server_log_entry_client_unittest.cc", |
37 "software_video_renderer_unittest.cc", | 51 "software_video_renderer_unittest.cc", |
38 "touch_input_scaler_unittest.cc", | 52 "touch_input_scaler_unittest.cc", |
39 ] | 53 ] |
| 54 set_sources_assignment_filter(sources_assignment_filter) |
40 | 55 |
41 configs += [ "//remoting:version" ] | 56 configs += [ "//remoting:version" ] |
42 | 57 |
43 deps = [ | 58 deps = [ |
44 ":client", | 59 ":client", |
45 "//remoting/proto", | 60 "//remoting/proto", |
46 "//testing/gmock", | 61 "//testing/gmock", |
47 "//testing/gtest", | 62 "//testing/gtest", |
48 "//third_party/webrtc", | 63 "//third_party/webrtc", |
49 ] | 64 ] |
50 } | 65 } |
OLD | NEW |