BUILD.gn 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. # Copyright 2015 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. source_set("setup") {
  5. public_deps = [ ":common" ]
  6. deps = [ "//remoting/host" ]
  7. }
  8. source_set("common") {
  9. sources = [
  10. "daemon_controller.cc",
  11. "daemon_controller.h",
  12. "me2me_native_messaging_host.cc",
  13. "me2me_native_messaging_host.h",
  14. "pin_validator.cc",
  15. "pin_validator.h",
  16. "service_client.cc",
  17. "service_client.h",
  18. "test_util.cc",
  19. "test_util.h",
  20. ]
  21. configs += [
  22. "//build/config/compiler:wexit_time_destructors",
  23. "//remoting/build/config:version",
  24. ]
  25. deps = [
  26. "//base",
  27. "//extensions/browser/api/messaging:native_messaging",
  28. "//google_apis",
  29. "//mojo/core/embedder",
  30. "//remoting/base:authorization",
  31. "//remoting/base:base",
  32. "//remoting/host:common",
  33. "//remoting/host:resources",
  34. "//remoting/host/native_messaging",
  35. "//remoting/protocol:protocol",
  36. "//services/network/public/cpp",
  37. "//services/network/public/mojom",
  38. ]
  39. if (is_linux || is_chromeos) {
  40. sources += [
  41. "daemon_controller_delegate_linux.cc",
  42. "daemon_controller_delegate_linux.h",
  43. ]
  44. }
  45. if (is_mac) {
  46. sources += [
  47. "daemon_controller_delegate_mac.h",
  48. "daemon_controller_delegate_mac.mm",
  49. ]
  50. deps += [
  51. "//remoting/host/mac:permission_checking",
  52. "//remoting/resources:strings_grit",
  53. "//ui/base:base",
  54. ]
  55. }
  56. if (is_apple) {
  57. deps += [ "//remoting/host/mac:constants" ]
  58. }
  59. if (is_win) {
  60. sources += [
  61. "daemon_controller_delegate_win.cc",
  62. "daemon_controller_delegate_win.h",
  63. ]
  64. deps += [
  65. "//remoting/host/win:elevated_native_messaging_host",
  66. "//remoting/host/win:remoting_lib_idl",
  67. "//remoting/host/win:security_descriptor",
  68. ]
  69. }
  70. }
  71. source_set("start_host_main_headers") {
  72. sources = [ "start_host_main.h" ]
  73. deps = [ "//remoting/host:host_main_headers" ]
  74. }
  75. source_set("start_host_main") {
  76. sources = [
  77. "host_starter.cc",
  78. "host_starter.h",
  79. "host_stopper.cc",
  80. "host_stopper.h",
  81. "start_host_main.cc",
  82. ]
  83. if (!is_win) {
  84. sources += [
  85. "start_host_as_root.cc",
  86. "start_host_as_root.h",
  87. ]
  88. }
  89. deps = [
  90. "//google_apis",
  91. "//mojo/core/embedder",
  92. "//net",
  93. "//remoting/base:base",
  94. "//remoting/host:common",
  95. "//remoting/host/setup",
  96. "//remoting/host/setup:start_host_main_headers",
  97. "//services/network:network_service",
  98. "//services/network/public/cpp:cpp",
  99. "//third_party/libjingle_xmpp:rtc_xmllite",
  100. "//third_party/webrtc_overrides:webrtc_component",
  101. ]
  102. configs += [
  103. "//build/config/compiler:wexit_time_destructors",
  104. "//remoting/build/config:host_implementation",
  105. "//remoting/build/config:version",
  106. ]
  107. }
  108. source_set("native_messaging_host_main_headers") {
  109. sources = [ "me2me_native_messaging_host_main.h" ]
  110. deps = [ "//remoting/host:host_main_headers" ]
  111. }
  112. source_set("native_messaging_host_main") {
  113. configs += [
  114. "//build/config/compiler:wexit_time_destructors",
  115. "//remoting/build/config:host_implementation",
  116. "//remoting/build/config:version",
  117. ]
  118. sources = [ "me2me_native_messaging_host_main.cc" ]
  119. deps = [
  120. ":native_messaging_host_main_headers",
  121. "//base",
  122. "//build:chromeos_buildflags",
  123. "//mojo/core/embedder",
  124. "//net",
  125. "//remoting/base",
  126. "//remoting/base:authorization",
  127. "//remoting/base:breakpad",
  128. "//remoting/host",
  129. "//remoting/host:common",
  130. "//remoting/host/base",
  131. "//remoting/host/native_messaging",
  132. "//remoting/host/setup",
  133. "//services/network:network_service",
  134. "//services/network/public/cpp",
  135. "//services/network/public/mojom",
  136. ]
  137. }