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( | 10 gypi_values = exec_script( |
(...skipping 12 matching lines...) Expand all Loading... |
23 defines = [ "WEBRTC_CHROMIUM_BUILD" ] | 23 defines = [ "WEBRTC_CHROMIUM_BUILD" ] |
24 | 24 |
25 deps = [ | 25 deps = [ |
26 "//base:i18n", | 26 "//base:i18n", |
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", | |
34 "//ui/events:dom4_keycode_converter", | 33 "//ui/events:dom4_keycode_converter", |
35 ] | 34 ] |
36 | 35 |
37 if (is_linux) { | 36 if (is_linux) { |
38 libs += [ "pam" ] | 37 libs += [ "pam" ] |
39 } | 38 } |
40 | 39 |
41 if (use_x11) { | 40 if (use_x11) { |
42 configs += [ | 41 configs += [ |
43 #TODO : (kelvinp) Add GTK to the configs. | 42 #TODO : (kelvinp) Add GTK to the configs. |
44 "//build/config/linux:x11", | 43 "//build/config/linux:x11", |
45 ] | 44 ] |
46 } else { | 45 } else { |
47 sources -= [ | 46 sources -= [ "clipboard_x11.cc" ] |
48 "clipboard_x11.cc", | |
49 "linux/x_server_clipboard.cc", | |
50 "linux/x_server_clipboard.h", | |
51 ] | |
52 } | 47 } |
53 | 48 |
54 if (is_chromeos) { | 49 if (is_chromeos) { |
55 deps += [ | 50 deps += [ |
56 "//cc", | 51 "//cc", |
57 "//components/policy:policy_component_common", | 52 "//components/policy:policy_component_common", |
58 "//content", | 53 "//content", |
59 "//ppapi:ppapi_host", | 54 "//ppapi:ppapi_host", |
60 "//skia", | 55 "//skia", |
61 "//ui/aura", | 56 "//ui/aura", |
62 "//ui/compositor", | 57 "//ui/compositor", |
63 "//ui/events", | 58 "//ui/events", |
64 "//ui/views", | 59 "//ui/views", |
65 ] | 60 ] |
66 | 61 |
67 if (use_ash) { | 62 if (use_ash) { |
68 deps += [ "//ash" ] | 63 deps += [ "//ash" ] |
69 } | 64 } |
70 | 65 |
71 if (use_ozone) { | |
72 sources -= [ | |
73 "input_injector_x11.cc", | |
74 "local_input_monitor_x11.cc", | |
75 ] | |
76 } else { | |
77 sources -= [ | |
78 "chromeos/mouse_cursor_monitor_aura.cc", | |
79 "chromeos/mouse_cursor_monitor_aura.h", | |
80 "clipboard_x11.cc", | |
81 "input_injector_chromeos.cc", | |
82 "input_injector_chromeos.h", | |
83 "linux/x_server_clipboard.cc", | |
84 "linux/x_server_clipboard.h", | |
85 "local_input_monitor_chromeos.cc", | |
86 ] | |
87 } | |
88 | |
89 sources -= [ | 66 sources -= [ |
| 67 "clipboard_x11.cc", |
90 "continue_window_linux.cc", | 68 "continue_window_linux.cc", |
91 "disconnect_window_linux.cc", | 69 "disconnect_window_linux.cc", |
92 "policy_hack/policy_watcher_linux.cc", | 70 "policy_hack/policy_watcher_linux.cc", |
93 "remoting_me2me_host.cc", | 71 "remoting_me2me_host.cc", |
94 ] | 72 ] |
| 73 |
| 74 } else { |
| 75 sources -= [ |
| 76 "clipboard_aura.cc", |
| 77 "clipboard_aura.h", |
| 78 ] |
95 } | 79 } |
96 | 80 |
97 if (is_mac) { | 81 if (is_mac) { |
98 defines += [ | 82 defines += [ |
99 "HOST_BUNDLE_NAME=\"$host_bundle_name\"", | 83 "HOST_BUNDLE_NAME=\"$host_bundle_name\"", |
100 "PREFPANE_BUNDLE_NAME=\"$prefpane_bundle_name\"", | 84 "PREFPANE_BUNDLE_NAME=\"$prefpane_bundle_name\"", |
101 ] | 85 ] |
102 | 86 |
103 libs += [ | 87 libs += [ |
104 "Accelerate.framework", | 88 "Accelerate.framework", |
105 "libpam.a", | 89 "libpam.a", |
106 ] | 90 ] |
107 | 91 |
108 deps += [ | 92 deps += [ |
109 "//google_toolbox_for_mac" | 93 "//google_toolbox_for_mac" |
110 ] | 94 ] |
111 } | 95 } |
112 | 96 |
113 if (enable_webrtc) { | 97 if (enable_webrtc) { |
114 deps += [ | 98 deps += [ |
115 "//third_party/libjingle:libpeerconnection", | 99 "//third_party/libjingle:libpeerconnection", |
116 "//third_party/webrtc/modules/desktop_capture", | 100 "//third_party/webrtc/modules/desktop_capture", |
117 ] | 101 ] |
118 | 102 |
119 sources += rebase_path( | 103 sources += rebase_path( |
120 gypi_values.remoting_cast_sources, ".", "//remoting") | 104 gypi_values.remoting_cast_sources, ".", "//remoting") |
121 } | 105 } |
122 } | 106 } |
OLD | NEW |