Chromium Code Reviews| Index: remoting/host/BUILD.gn |
| diff --git a/remoting/host/BUILD.gn b/remoting/host/BUILD.gn |
| index 54407227986aac4778a45fe135913142d6c3edb9..060b0b7fa6ff5e2d231e9ad8fc3a37581a65b94a 100644 |
| --- a/remoting/host/BUILD.gn |
| +++ b/remoting/host/BUILD.gn |
| @@ -580,8 +580,12 @@ if (is_mac) { |
| "it2me/it2me_native_messaging_host_main.h", |
| "security_key/remote_security_key_main.cc", |
| "security_key/remote_security_key_main.h", |
| + "setup/host_starter.cc", |
| + "setup/host_starter.h", |
| "setup/me2me_native_messaging_host_main.cc", |
| "setup/me2me_native_messaging_host_main.h", |
| + "setup/start_host_main.cc", |
| + "setup/start_host_main.h", |
| "win/chromoting_lib.rc", |
| "win/chromoting_module.cc", |
| "win/chromoting_module.h", |
| @@ -723,17 +727,34 @@ if (is_mac) { |
| if (enable_remoting_host && !is_android) { |
| executable("remoting_start_host") { |
| sources = [ |
| - "setup/host_starter.cc", |
| - "setup/host_starter.h", |
| - "setup/start_host.cc", |
| + "setup/start_host_entry_point.cc", |
| ] |
| deps = [ |
| "//build/config/sanitizers:deps", |
| - "//build/win:default_exe_manifest", |
| - "//remoting/host/setup", |
| ] |
| + configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| + |
| + if (is_win) { |
| + defines = [ "BINARY=BINARY_REMOTING_START_HOST" ] |
|
Hzj_jie
2016/06/08 20:48:48
You may want to append 'host_predefines' before th
joedow
2016/06/09 04:17:52
Done.
|
| + |
| + deps += [ |
| + ":remoting_core", |
| + ":remoting_windows_resources", |
| + "//build/win:default_exe_manifest", |
| + ] |
| + } else { |
| + sources += [ |
| + "setup/host_starter.cc", |
| + "setup/host_starter.h", |
| + "setup/start_host_main.cc", |
| + "setup/start_host_main.h", |
| + ] |
| + |
| + deps += [ "//remoting/host/setup" ] |
| + } |
| + |
| if (enable_webrtc) { |
| deps += [ "//third_party/libjingle:libjingle_webrtc" ] |
| } |