OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//remoting/remoting_version.gni") | 7 import("//remoting/remoting_version.gni") |
| 8 import("//remoting/remoting_host.gni") |
8 import("//testing/test.gni") | 9 import("//testing/test.gni") |
9 | 10 |
10 enable_remoting_host = is_win || is_mac || is_chromeos || use_x11 | |
11 | |
12 # Various remoting targets need this version definition. | 11 # Various remoting targets need this version definition. |
13 config("version") { | 12 config("version") { |
14 defines = [ "VERSION=$version_full" ] | 13 defines = [ "VERSION=$version_full" ] |
15 } | 14 } |
16 | 15 |
17 # GYP version: remoting/remoting_test.gypi:remoting_test_common | 16 # GYP version: remoting/remoting_test.gypi:remoting_test_common |
18 source_set("test_support") { | 17 source_set("test_support") { |
19 testonly = true | 18 testonly = true |
20 | 19 |
21 sources = [ | 20 sources = [ |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 ] | 122 ] |
124 } | 123 } |
125 | 124 |
126 if (enable_webrtc) { | 125 if (enable_webrtc) { |
127 deps += [ | 126 deps += [ |
128 "//third_party/libjingle:libjingle_webrtc", | 127 "//third_party/libjingle:libjingle_webrtc", |
129 "//third_party/libjingle:libpeerconnection", | 128 "//third_party/libjingle:libpeerconnection", |
130 ] | 129 ] |
131 } | 130 } |
132 } | 131 } |
| 132 |
| 133 if (enable_remoting_host) { |
| 134 test("remoting_perftests") { |
| 135 sources = [ |
| 136 "codec/codec_test.cc", |
| 137 "codec/codec_test.h", |
| 138 "codec/video_encoder_vpx_perftest.cc", |
| 139 "test/protocol_perftest.cc", |
| 140 ] |
| 141 |
| 142 configs += [ ":version" ] |
| 143 |
| 144 deps = [ |
| 145 ":test_support", |
| 146 "//base", |
| 147 "//base/test:run_all_unittests", |
| 148 "//base/test:test_support", |
| 149 "//net:test_support", |
| 150 "//remoting/base", |
| 151 "//testing/gtest", |
| 152 "//third_party/webrtc/modules/desktop_capture", |
| 153 "//third_party/libjingle", |
| 154 ] |
| 155 } |
| 156 } |
133 } else { | 157 } else { |
134 group("remoting_unittests") { | 158 group("remoting_unittests") { |
135 } | 159 } |
136 } | 160 } |
| 161 |
| 162 if (enable_pnacl) { |
| 163 group("remoting_key_tester") { |
| 164 deps = [ |
| 165 ":remoting_key_tester_copies", |
| 166 ] |
| 167 } |
| 168 |
| 169 copy("remoting_key_tester_copies") { |
| 170 sources = [ |
| 171 "tools/javascript_key_tester/background.js", |
| 172 "tools/javascript_key_tester/chord_tracker.js", |
| 173 "tools/javascript_key_tester/event_listeners.js", |
| 174 "tools/javascript_key_tester/icon_128.png", |
| 175 "tools/javascript_key_tester/main.css", |
| 176 "tools/javascript_key_tester/main.html", |
| 177 "tools/javascript_key_tester/main.js", |
| 178 "tools/javascript_key_tester/manifest.json", |
| 179 "tools/javascript_key_tester/pnacl/remoting_key_tester.nmf", |
| 180 |
| 181 # "$target_out_dir/remoting_key_tester_newlib.pexe", |
| 182 ] |
| 183 |
| 184 outputs = [ |
| 185 "$target_out_dir/remoting/key_tester/{{source_file_part}}", |
| 186 ] |
| 187 |
| 188 deps = [ |
| 189 ":remoting_key_tester_jscompile", |
| 190 ":remoting_key_tester_pexe", |
| 191 ] |
| 192 } |
| 193 |
| 194 group("remoting_key_tester_jscompile") { |
| 195 # TODO(GYP): implement me ... |
| 196 } |
| 197 |
| 198 group("remoting_key_tester_pexe") { |
| 199 # TODO(GYP): implement me ... |
| 200 #sources = [ |
| 201 # "tools/javascript_key_tester/pnacl/remoting_key_tester.cc", |
| 202 #] |
| 203 } |
| 204 } |
OLD | NEW |