| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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("//remoting/build/config/remoting_build.gni") | 5 import("//remoting/build/config/remoting_build.gni") |
| 6 | 6 |
| 7 group("all_tests") { | 7 group("all_tests") { |
| 8 testonly = true | 8 testonly = true |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 "certificate_watcher.cc", | 46 "certificate_watcher.cc", |
| 47 "certificate_watcher.h", | 47 "certificate_watcher.h", |
| 48 "unicode_to_keysym.cc", | 48 "unicode_to_keysym.cc", |
| 49 "unicode_to_keysym.h", | 49 "unicode_to_keysym.h", |
| 50 ] | 50 ] |
| 51 | 51 |
| 52 deps = [ | 52 deps = [ |
| 53 "//remoting/protocol", | 53 "//remoting/protocol", |
| 54 "//third_party/webrtc/modules/desktop_capture", | 54 "//third_party/webrtc/modules/desktop_capture", |
| 55 ] | 55 ] |
| 56 public_deps = [] |
| 56 | 57 |
| 57 if (use_x11) { | 58 if (use_x11) { |
| 58 deps += [ ":x11" ] | 59 deps += [ ":x11" ] |
| 59 } | 60 } |
| 61 if (is_desktop_linux) { |
| 62 if (use_gtk3) { |
| 63 public_deps += [ "//build/config/linux/gtk3" ] |
| 64 } else { |
| 65 public_deps += [ "//build/config/linux/gtk2" ] |
| 66 } |
| 67 } |
| 60 } | 68 } |
| 61 | 69 |
| 62 source_set("x11") { | 70 source_set("x11") { |
| 63 sources = [ | 71 sources = [ |
| 72 "x11_character_injector.cc", |
| 73 "x11_character_injector.h", |
| 74 "x11_keyboard_impl.cc", |
| 75 "x11_keyboard_impl.h", |
| 64 "x11_util.cc", | 76 "x11_util.cc", |
| 65 "x11_util.h", | 77 "x11_util.h", |
| 66 "x_server_clipboard.cc", | 78 "x_server_clipboard.cc", |
| 67 "x_server_clipboard.h", | 79 "x_server_clipboard.h", |
| 68 ] | 80 ] |
| 69 deps = [ | 81 deps = [ |
| 70 "//third_party/webrtc/modules/desktop_capture", | 82 "//third_party/webrtc/modules/desktop_capture", |
| 71 ] | 83 ] |
| 72 } | 84 } |
| 73 | 85 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 89 "//remoting/host/setup", | 101 "//remoting/host/setup", |
| 90 ] | 102 ] |
| 91 | 103 |
| 92 # The |major|, |build| and |patch| versions are inherited from Chrome. | 104 # The |major|, |build| and |patch| versions are inherited from Chrome. |
| 93 # Since Chrome's |minor| version is always '0', we replace it with a | 105 # Since Chrome's |minor| version is always '0', we replace it with a |
| 94 # Chromoting-specific patch version. | 106 # Chromoting-specific patch version. |
| 95 defines = | 107 defines = |
| 96 [ "VERSION=" + "$chrome_version_major" + "." + "$remoting_version_patch" + | 108 [ "VERSION=" + "$chrome_version_major" + "." + "$remoting_version_patch" + |
| 97 "." + "$chrome_version_build" + "." + "$chrome_version_patch" ] | 109 "." + "$chrome_version_build" + "." + "$chrome_version_patch" ] |
| 98 } | 110 } |
| 111 |
| 112 source_set("unit_tests") { |
| 113 testonly = true |
| 114 |
| 115 sources = [ |
| 116 "audio_pipe_reader_unittest.cc", |
| 117 "certificate_watcher_unittest.cc", |
| 118 "unicode_to_keysym_unittest.cc", |
| 119 "x11_character_injector_unittest.cc", |
| 120 "x_server_clipboard_unittest.cc", |
| 121 ] |
| 122 |
| 123 if (!use_x11) { |
| 124 sources -= [ "unicode_to_keysym_unittest.cc" ] |
| 125 } |
| 126 |
| 127 configs += [ "//remoting/build/config:version" ] |
| 128 |
| 129 deps = [ |
| 130 "//remoting/host", |
| 131 "//remoting/host:test_support", |
| 132 "//remoting/host/it2me:common", |
| 133 "//remoting/host/native_messaging", |
| 134 "//remoting/host/security_key:unit_tests", |
| 135 "//remoting/host/setup", |
| 136 "//remoting/proto", |
| 137 "//remoting/resources", |
| 138 "//skia", |
| 139 "//testing/gmock", |
| 140 "//testing/gtest", |
| 141 ] |
| 142 |
| 143 if (enable_configuration_policy) { |
| 144 deps += [ "//components/policy/core/browser:test_support" ] |
| 145 } |
| 146 } |
| OLD | NEW |