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", |
11 [ rebase_path("../remoting_host_srcs.gypi") ], | 11 [ rebase_path("../remoting_host_srcs.gypi") ], |
12 "scope", | 12 "scope", |
13 [ "../remoting_host_srcs.gypi" ]) | 13 [ "../remoting_host_srcs.gypi" ]) |
14 | 14 |
15 sources = rebase_path(gypi_values.remoting_host_sources, ".", "//remoting") | 15 sources = rebase_path(gypi_values.remoting_host_sources, ".", "//remoting") |
16 | 16 |
17 libs = [] | 17 libs = [] |
18 | 18 |
19 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 19 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
20 | 20 |
21 defines = [ "WEBRTC_CHROMIUM_BUILD" ] | 21 defines = [ "WEBRTC_CHROMIUM_BUILD" ] |
22 | 22 |
23 deps = [ | 23 deps = [ |
24 "//base:i18n", | 24 "//base:i18n", |
| 25 "//components/policy:policy", |
| 26 "//components/policy:policy_component_common", |
25 "//crypto", | 27 "//crypto", |
26 "//google_apis", | 28 "//google_apis", |
27 "//ipc", | 29 "//ipc", |
28 "//remoting/base", | 30 "//remoting/base", |
29 "//remoting/protocol", | 31 "//remoting/protocol", |
30 "//remoting/resources", | 32 "//remoting/resources", |
31 "//ui/events/platform", | 33 "//ui/events/platform", |
32 "//ui/events:dom4_keycode_converter", | 34 "//ui/events:dom4_keycode_converter", |
33 ] | 35 ] |
34 | 36 |
(...skipping 10 matching lines...) Expand all Loading... |
45 sources -= [ | 47 sources -= [ |
46 "clipboard_x11.cc", | 48 "clipboard_x11.cc", |
47 "linux/x_server_clipboard.cc", | 49 "linux/x_server_clipboard.cc", |
48 "linux/x_server_clipboard.h", | 50 "linux/x_server_clipboard.h", |
49 ] | 51 ] |
50 } | 52 } |
51 | 53 |
52 if (is_chromeos) { | 54 if (is_chromeos) { |
53 deps += [ | 55 deps += [ |
54 "//cc", | 56 "//cc", |
55 "//components/policy:policy_component_common", | |
56 "//content", | 57 "//content", |
57 "//ppapi:ppapi_host", | 58 "//ppapi:ppapi_host", |
58 "//skia", | 59 "//skia", |
59 "//ui/aura", | 60 "//ui/aura", |
60 "//ui/compositor", | 61 "//ui/compositor", |
61 "//ui/events", | 62 "//ui/events", |
62 "//ui/views", | 63 "//ui/views", |
63 ] | 64 ] |
64 | 65 |
65 if (use_ash) { | 66 if (use_ash) { |
(...skipping 10 matching lines...) Expand all Loading... |
76 "input_injector_chromeos.h", | 77 "input_injector_chromeos.h", |
77 "linux/x_server_clipboard.cc", | 78 "linux/x_server_clipboard.cc", |
78 "linux/x_server_clipboard.h", | 79 "linux/x_server_clipboard.h", |
79 ] | 80 ] |
80 } | 81 } |
81 | 82 |
82 sources -= [ | 83 sources -= [ |
83 "continue_window_linux.cc", | 84 "continue_window_linux.cc", |
84 "disconnect_window_linux.cc", | 85 "disconnect_window_linux.cc", |
85 "local_input_monitor_x11.cc", | 86 "local_input_monitor_x11.cc", |
86 "policy_hack/policy_watcher_linux.cc", | |
87 "remoting_me2me_host.cc", | 87 "remoting_me2me_host.cc", |
88 ] | 88 ] |
89 } | 89 } |
90 | 90 |
91 if (is_mac) { | 91 if (is_mac) { |
92 defines += [ | 92 defines += [ |
93 "HOST_BUNDLE_NAME=\"$host_bundle_name\"", | 93 "HOST_BUNDLE_NAME=\"$host_bundle_name\"", |
94 "PREFPANE_BUNDLE_NAME=\"$prefpane_bundle_name\"", | 94 "PREFPANE_BUNDLE_NAME=\"$prefpane_bundle_name\"", |
95 ] | 95 ] |
96 | 96 |
97 libs += [ | 97 libs += [ |
98 "Accelerate.framework", | 98 "Accelerate.framework", |
99 "libpam.a", | 99 "libpam.a", |
100 ] | 100 ] |
101 | 101 |
102 deps += [ "//google_toolbox_for_mac" ] | 102 deps += [ "//google_toolbox_for_mac" ] |
103 } | 103 } |
104 | 104 |
105 if (enable_webrtc) { | 105 if (enable_webrtc) { |
106 deps += [ | 106 deps += [ |
107 "//third_party/libjingle:libpeerconnection", | 107 "//third_party/libjingle:libpeerconnection", |
108 "//third_party/webrtc/modules/desktop_capture", | 108 "//third_party/webrtc/modules/desktop_capture", |
109 ] | 109 ] |
110 | 110 |
111 sources += rebase_path(gypi_values.remoting_cast_sources, ".", "//remoting") | 111 sources += rebase_path(gypi_values.remoting_cast_sources, ".", "//remoting") |
112 } | 112 } |
113 } | 113 } |
OLD | NEW |