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("//remoting/remoting_enable.gni") | 6 import("//remoting/remoting_host.gni") |
7 import("//remoting/remoting_srcs.gni") | 7 import("//remoting/remoting_srcs.gni") |
8 | 8 |
9 source_set("common") { | 9 source_set("common") { |
10 sources = rebase_path( | 10 sources = rebase_path( |
11 remoting_host_srcs_gypi_values.remoting_it2me_host_static_sources, | 11 remoting_host_srcs_gypi_values.remoting_it2me_host_static_sources, |
12 ".", | 12 ".", |
13 "//remoting") | 13 "//remoting") |
14 | 14 |
15 configs += [ | 15 configs += [ |
16 "//build/config/compiler:wexit_time_destructors", | 16 "//build/config/compiler:wexit_time_destructors", |
17 "//remoting:version", | 17 "//remoting:version", |
18 ] | 18 ] |
19 | 19 |
20 deps = [ | 20 deps = [ |
21 "//base:i18n", | 21 "//base:i18n", |
22 "//net:net", | 22 "//net:net", |
23 "//remoting/base", | 23 "//remoting/base", |
24 "//remoting/host", | 24 "//remoting/host", |
25 "//remoting/protocol", | 25 "//remoting/protocol", |
26 "//remoting/resources", | 26 "//remoting/resources", |
27 ] | 27 ] |
28 } | 28 } |
29 | 29 |
30 if (!is_chromeos && enable_remoting_host) { | 30 if (!is_win && !is_chromeos && enable_remoting_host) { |
31 if (is_win) { | 31 executable("remote_assistance_host") { |
32 # GYP version: | 32 sources = [ |
33 # //remoting/remoting_host_win.gypi:remoting_it2me_native_messaging_host | 33 "it2me_native_messaging_host_entry_point.cc", |
34 executable("remote_assistance_host") { | 34 "it2me_native_messaging_host_main.cc", |
35 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 35 "it2me_native_messaging_host_main.h", |
| 36 ] |
36 | 37 |
37 deps = [ | 38 configs += [ |
38 "//base/allocator", | 39 "//build/config/compiler:wexit_time_destructors", |
39 "//remoting/host:remoting_core", | 40 "//remoting:version", |
40 "//remoting/host:remoting_windows_resources", | 41 ] |
41 ] | |
42 | 42 |
43 sources = [ | 43 deps = [ |
44 "$root_gen_dir/remoting/version.rc", | 44 ":common", |
45 "it2me_native_messaging_host_entry_point.cc", | 45 "//build/config/sanitizers:deps", |
46 ] | 46 "//remoting/host", |
| 47 "//remoting/host/native_messaging", |
| 48 "//remoting/proto", |
| 49 "//ui/gfx", |
| 50 ] |
47 | 51 |
48 defines = [ "BINARY=BINARY_REMOTE_ASSISTANCE_HOST" ] | 52 if (enable_webrtc) { |
| 53 deps += [ "//third_party/libjingle:libjingle_webrtc" ] |
| 54 } |
49 | 55 |
50 ldflags = [ | 56 if (is_desktop_linux) { |
51 "/MANIFEST:EMBED", | 57 deps += [ "//build/config/linux/gtk2" ] |
52 "/MANIFESTINPUT:" + | |
53 rebase_path("../win/common-controls.manifest", root_build_dir), | |
54 "/MANIFESTINPUT:" + | |
55 rebase_path("../win/dpi_aware.manifest", root_build_dir), | |
56 | |
57 # "/NODEFAULTLIB", TODO(zijiehe): Why IgnoreAllDefaultLibraries: true in | |
58 # GYP does not take effect? | |
59 "comctl32.lib", | |
60 ] | |
61 } | |
62 } else { | |
63 executable("remote_assistance_host") { | |
64 sources = [ | |
65 "it2me_native_messaging_host_entry_point.cc", | |
66 "it2me_native_messaging_host_main.cc", | |
67 "it2me_native_messaging_host_main.h", | |
68 ] | |
69 | |
70 configs += [ | |
71 "//build/config/compiler:wexit_time_destructors", | |
72 "//remoting:version", | |
73 ] | |
74 | |
75 deps = [ | |
76 ":common", | |
77 "//build/config/sanitizers:deps", | |
78 "//remoting/host", | |
79 "//remoting/host/native_messaging", | |
80 "//remoting/proto", | |
81 "//ui/gfx", | |
82 ] | |
83 | |
84 if (enable_webrtc) { | |
85 deps += [ "//third_party/libjingle:libjingle_webrtc" ] | |
86 } | |
87 | |
88 if (is_desktop_linux) { | |
89 deps += [ "//build/config/linux/gtk2" ] | |
90 } | |
91 } | 58 } |
92 } | 59 } |
93 } | 60 } |
OLD | NEW |