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("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//remoting/remoting_version.gni") | 7 import("//remoting/remoting_version.gni") |
8 | 8 |
9 static_library("host") { | 9 static_library("host") { |
10 gypi_values = exec_script("//build/gypi_to_gn.py", | 10 gypi_values = exec_script("//build/gypi_to_gn.py", |
(...skipping 16 matching lines...) Expand all Loading... |
27 "//crypto", | 27 "//crypto", |
28 "//google_apis", | 28 "//google_apis", |
29 "//ipc", | 29 "//ipc", |
30 "//remoting/base", | 30 "//remoting/base", |
31 "//remoting/protocol", | 31 "//remoting/protocol", |
32 "//remoting/resources", | 32 "//remoting/resources", |
33 "//ui/events/platform", | 33 "//ui/events/platform", |
34 "//ui/events:dom4_keycode_converter", | 34 "//ui/events:dom4_keycode_converter", |
35 ] | 35 ] |
36 | 36 |
37 if (is_linux) { | 37 if (is_linux && !is_chromeos) { |
38 libs += [ "pam" ] | 38 libs += [ "pam" ] |
39 } | 39 } |
40 | 40 |
41 if (use_x11) { | 41 if (use_x11) { |
42 configs += [ | 42 configs += [ |
43 #TODO : (kelvinp) Add GTK to the configs. | 43 # TODO(kelvinp): Add GTK to the configs. |
44 "//build/config/linux:x11", | 44 "//build/config/linux:x11", |
45 ] | 45 ] |
46 } else { | 46 } else { |
47 sources -= [ | 47 sources -= [ |
48 "clipboard_x11.cc", | 48 "clipboard_x11.cc", |
49 "linux/x_server_clipboard.cc", | 49 "linux/x_server_clipboard.cc", |
50 "linux/x_server_clipboard.h", | 50 "linux/x_server_clipboard.h", |
51 ] | 51 ] |
52 } | 52 } |
53 | 53 |
(...skipping 22 matching lines...) Expand all Loading... |
76 "input_injector_chromeos.h", | 76 "input_injector_chromeos.h", |
77 "linux/x_server_clipboard.cc", | 77 "linux/x_server_clipboard.cc", |
78 "linux/x_server_clipboard.h", | 78 "linux/x_server_clipboard.h", |
79 ] | 79 ] |
80 } | 80 } |
81 | 81 |
82 sources -= [ | 82 sources -= [ |
83 "continue_window_linux.cc", | 83 "continue_window_linux.cc", |
84 "disconnect_window_linux.cc", | 84 "disconnect_window_linux.cc", |
85 "local_input_monitor_x11.cc", | 85 "local_input_monitor_x11.cc", |
86 "remoting_me2me_host.cc", | |
87 ] | 86 ] |
88 } | 87 } |
89 | 88 |
90 if (is_mac) { | 89 if (is_mac) { |
91 defines += [ | 90 defines += [ |
92 "HOST_BUNDLE_NAME=\"$host_bundle_name\"", | 91 "HOST_BUNDLE_NAME=\"$host_bundle_name\"", |
93 "PREFPANE_BUNDLE_NAME=\"$prefpane_bundle_name\"", | 92 "PREFPANE_BUNDLE_NAME=\"$prefpane_bundle_name\"", |
94 ] | 93 ] |
95 | 94 |
96 libs += [ | 95 libs += [ |
97 "Accelerate.framework", | 96 "Accelerate.framework", |
98 "libpam.a", | 97 "libpam.a", |
99 ] | 98 ] |
100 | 99 |
101 deps += [ "//google_toolbox_for_mac" ] | 100 deps += [ "//google_toolbox_for_mac" ] |
102 } | 101 } |
103 | 102 |
104 if (enable_webrtc) { | 103 if (enable_webrtc) { |
105 deps += [ | 104 deps += [ |
106 "//third_party/libjingle:libpeerconnection", | 105 "//third_party/libjingle:libpeerconnection", |
107 "//third_party/webrtc/modules/desktop_capture", | 106 "//third_party/webrtc/modules/desktop_capture", |
108 ] | 107 ] |
109 | 108 |
110 sources += rebase_path(gypi_values.remoting_cast_sources, ".", "//remoting") | 109 sources += rebase_path(gypi_values.remoting_cast_sources, ".", "//remoting") |
111 } | 110 } |
112 } | 111 } |
OLD | NEW |