BUILD.gn 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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. import("//build/config/chromeos/ui_mode.gni")
  5. import("//remoting/build/config/remoting_build.gni")
  6. group("remoting_all") {
  7. testonly = true
  8. deps = [ ":remoting_unittests" ]
  9. if (is_win) {
  10. deps += [
  11. "//remoting/host/win:all",
  12. "//remoting/tools:remoting_breakpad_tester",
  13. ]
  14. if (is_chrome_branded) {
  15. deps += [ "//remoting/host:remoting_host_installation" ]
  16. }
  17. }
  18. if (is_android) {
  19. deps += [
  20. "//remoting/android:remoting_apk",
  21. "//remoting/android:remoting_test_apk",
  22. ]
  23. }
  24. if (is_ios) {
  25. deps += [
  26. "//remoting/ios:all",
  27. "//remoting/ios:ios_remoting_unittests",
  28. ]
  29. }
  30. if (enable_remoting_host) {
  31. deps += [
  32. ":remoting_perftests",
  33. "//remoting/host",
  34. ]
  35. if (!is_chromeos_ash && !is_android) {
  36. deps += [
  37. "//remoting/host:remoting_native_messaging_manifests",
  38. "//remoting/host:remoting_start_host",
  39. ]
  40. if (!is_ios) {
  41. deps += [ "//remoting/host:remoting_native_messaging_host" ]
  42. }
  43. # it2me.
  44. deps += [ "//remoting/host/it2me:remote_assistance_host" ]
  45. if (is_win) {
  46. deps += [ "//remoting/host/it2me:remote_assistance_host_uiaccess" ]
  47. }
  48. }
  49. if (is_linux) {
  50. deps += [
  51. "//remoting/host/linux:remoting_dev_me2me_host",
  52. "//remoting/host/linux:remoting_user_session",
  53. ]
  54. }
  55. }
  56. if (enable_me2me_host) {
  57. deps += [ "//remoting/host:remoting_me2me_host" ]
  58. if (is_chrome_branded) {
  59. deps += [ "//remoting/host:remoting_me2me_host_archive" ]
  60. }
  61. }
  62. }
  63. group("test_support") {
  64. testonly = true
  65. deps = [
  66. "//base",
  67. "//net",
  68. "//remoting/base:test_support",
  69. "//remoting/client",
  70. "//remoting/codec:decoder",
  71. "//remoting/codec:encoder",
  72. "//remoting/protocol:test_support",
  73. "//remoting/resources",
  74. "//remoting/signaling:test_support",
  75. "//remoting/test:test_support",
  76. "//testing/gmock",
  77. "//testing/gtest",
  78. ]
  79. if (!is_ios) {
  80. deps += [ "//components/policy/core/browser:test_support" ]
  81. }
  82. if (enable_remoting_host) {
  83. deps += [ "//remoting/host:test_support" ]
  84. }
  85. }
  86. test("remoting_unittests") {
  87. defines = []
  88. libs = []
  89. configs += [ "//remoting/build/config:version" ]
  90. deps = [
  91. ":test_support",
  92. "//base",
  93. "//base/test:test_support",
  94. "//google_apis",
  95. "//remoting/base:unit_tests",
  96. "//remoting/client:unit_tests",
  97. "//remoting/client/audio:unit_tests",
  98. "//remoting/client/input:unit_tests",
  99. "//remoting/client/notification:unit_tests",
  100. "//remoting/client/ui:unit_tests",
  101. "//remoting/protocol:unit_tests",
  102. "//remoting/signaling:unit_tests",
  103. "//testing/gmock",
  104. "//testing/gtest",
  105. ]
  106. if (enable_remoting_host) {
  107. deps += [
  108. "//remoting/codec:unit_tests",
  109. "//remoting/host:unit_tests",
  110. "//ui/gfx",
  111. ]
  112. }
  113. deps += [ "//third_party/webrtc_overrides:webrtc_component" ]
  114. if (is_android) {
  115. deps += [ "//net/android:net_java" ]
  116. libs += [ "android" ]
  117. }
  118. if (is_win) {
  119. defines += [ "_ALT_NO_EXCEPTIONS" ]
  120. libs += [
  121. "comctl32.lib",
  122. "rpcrt4.lib",
  123. "wtsapi32.lib",
  124. ]
  125. }
  126. # TODO(crbug.com/1052397): Change to !is_chromeos once lacros-chrome is switched to target_os=chromeos.
  127. if (!is_chromeos) {
  128. deps += [ "//remoting/client/display:unit_tests" ]
  129. }
  130. }
  131. if (enable_remoting_host) {
  132. test("remoting_perftests") {
  133. defines = []
  134. libs = []
  135. sources = [
  136. "test/codec_perftest.cc",
  137. "test/protocol_perftest.cc",
  138. ]
  139. configs += [ "//remoting/build/config:version" ]
  140. deps = [
  141. ":test_support",
  142. "//base",
  143. "//base/test:run_all_unittests",
  144. "//base/test:test_support",
  145. "//components/webrtc:thread_wrapper",
  146. "//net:test_support",
  147. "//remoting/base",
  148. "//remoting/client:client",
  149. "//remoting/client/audio:audio",
  150. "//remoting/codec:encoder",
  151. "//remoting/host:common",
  152. "//remoting/host:test_support",
  153. "//remoting/protocol:protocol",
  154. "//remoting/signaling:test_support",
  155. "//remoting/test:test_support",
  156. "//testing/gtest",
  157. "//third_party/webrtc_overrides:webrtc_component",
  158. ]
  159. if (is_win) {
  160. defines += [ "_ALT_NO_EXCEPTIONS" ]
  161. libs += [
  162. "rpcrt4.lib",
  163. "wtsapi32.lib",
  164. ]
  165. }
  166. }
  167. }