diff options
Diffstat (limited to 'chromium/remoting/host/BUILD.gn')
-rw-r--r-- | chromium/remoting/host/BUILD.gn | 55 |
1 files changed, 23 insertions, 32 deletions
diff --git a/chromium/remoting/host/BUILD.gn b/chromium/remoting/host/BUILD.gn index 08851e9cdeb..b0fca33bffe 100644 --- a/chromium/remoting/host/BUILD.gn +++ b/chromium/remoting/host/BUILD.gn @@ -3,7 +3,6 @@ # found in the LICENSE file. import("//build/util/process_version.gni") -import("//media/media_options.gni") import("//remoting/build/config/remoting_build.gni") group("all_tests") { @@ -161,7 +160,6 @@ static_library("host") { "host_details.cc", "host_details.h", "host_event_logger.h", - "host_event_logger_posix.cc", "host_event_logger_win.cc", "host_exit_codes.cc", "host_exit_codes.h", @@ -235,8 +233,6 @@ static_library("host") { "pin_hash.h", "policy_watcher.cc", "policy_watcher.h", - "posix/signal_handler.cc", - "posix/signal_handler.h", "process_stats_agent.h", "process_stats_sender.cc", "process_stats_sender.h", @@ -308,6 +304,7 @@ static_library("host") { "//remoting/host/security_key", "//remoting/protocol", "//remoting/resources", + "//third_party/webrtc/modules/desktop_capture", # //remoting uses the power_save_blocker directly. See crbug.com/689423 "//services/device/wake_lock/power_save_blocker", @@ -320,6 +317,14 @@ static_library("host") { "//ipc", ] + if (is_posix) { + sources += [ + "host_event_logger_posix.cc", + "posix/signal_handler.cc", + "posix/signal_handler.h", + ] + } + if (!is_ios) { deps += [ "//components/policy:generated" ] } @@ -406,10 +411,6 @@ static_library("host") { public_deps += [ "//remoting/host/win" ] } - - if (enable_webrtc) { - deps += [ "//third_party/webrtc/modules/desktop_capture" ] - } } static_library("test_support") { @@ -436,16 +437,11 @@ static_library("test_support") { public_deps = [ ":host", "//remoting/base:test_support", + "//third_party/libjingle_xmpp", "//third_party/protobuf:protobuf_lite", + "//third_party/webrtc/modules/desktop_capture", + "//third_party/webrtc_overrides:init_webrtc", ] - - if (enable_webrtc) { - public_deps += [ - "//third_party/libjingle_xmpp", - "//third_party/webrtc/modules/desktop_capture", - "//third_party/webrtc_overrides:init_webrtc", - ] - } } # The host portions of the remoting unit tests. @@ -578,6 +574,8 @@ if (enable_remoting_host) { deps = [ "//build/config:exe_and_shlib_deps", + "//third_party/libjingle_xmpp", + "//third_party/webrtc_overrides:init_webrtc", ] configs += [ "//build/config/compiler:wexit_time_destructors" ] @@ -605,13 +603,6 @@ if (enable_remoting_host) { "//remoting/host/setup", ] } - - if (enable_webrtc) { - deps += [ - "//third_party/libjingle_xmpp", - "//third_party/webrtc_overrides:init_webrtc", - ] - } } action_foreach("remoting_native_messaging_manifests") { @@ -695,8 +686,6 @@ if (enable_remoting_host) { if (enable_me2me_host) { static_library("remoting_me2me_host_static") { sources = [ - "pam_authorization_factory_posix.cc", - "pam_authorization_factory_posix.h", "remoting_me2me_host.cc", ] defines = [] @@ -715,18 +704,20 @@ if (enable_me2me_host) { "//remoting/base", "//remoting/host", "//remoting/proto", + "//third_party/libjingle_xmpp", "//third_party/webrtc/modules/desktop_capture", + "//third_party/webrtc_overrides:init_webrtc", ] - if (!is_ios) { - deps += [ "//components/policy:generated" ] + if (is_posix) { + sources += [ + "pam_authorization_factory_posix.cc", + "pam_authorization_factory_posix.h", + ] } - if (enable_webrtc) { - deps += [ - "//third_party/libjingle_xmpp", - "//third_party/webrtc_overrides:init_webrtc", - ] + if (!is_ios) { + deps += [ "//components/policy:generated" ] } if (is_desktop_linux) { |