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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 ] | 128 ] |
130 } | 129 } |
131 | 130 |
132 if (enable_webrtc) { | 131 if (enable_webrtc) { |
133 deps += [ | 132 deps += [ |
134 "//third_party/libjingle:libjingle_webrtc", | 133 "//third_party/libjingle:libjingle_webrtc", |
135 "//third_party/libjingle:libpeerconnection", | 134 "//third_party/libjingle:libpeerconnection", |
136 ] | 135 ] |
137 } | 136 } |
138 } | 137 } |
| 138 |
| 139 if (enable_remoting_host) { |
| 140 test("remoting_perftests") { |
| 141 sources = [ |
| 142 "codec/codec_test.cc", |
| 143 "codec/codec_test.h", |
| 144 "codec/video_encoder_vpx_perftest.cc", |
| 145 "test/protocol_perftest.cc", |
| 146 ] |
| 147 |
| 148 configs += [ ":version" ] |
| 149 |
| 150 deps = [ |
| 151 ":test_support", |
| 152 "//base", |
| 153 "//base/test:run_all_unittests", |
| 154 "//base/test:test_support", |
| 155 "//net:test_support", |
| 156 "//remoting/base", |
| 157 "//testing/gtest", |
| 158 "//third_party/webrtc/modules/desktop_capture", |
| 159 "//third_party/libjingle", |
| 160 ] |
| 161 |
| 162 if (enable_webrtc) { |
| 163 deps += [ "//third_party/libjingle:libjingle_webrtc" ] |
| 164 } |
| 165 } |
| 166 } |
139 } else { | 167 } else { |
140 group("remoting_unittests") { | 168 group("remoting_unittests") { |
141 } | 169 } |
142 } | 170 } |
| 171 |
| 172 if (enable_pnacl) { |
| 173 group("remoting_key_tester") { |
| 174 deps = [ |
| 175 ":remoting_key_tester_copies", |
| 176 ] |
| 177 } |
| 178 |
| 179 copy("remoting_key_tester_copies") { |
| 180 sources = [ |
| 181 "tools/javascript_key_tester/background.js", |
| 182 "tools/javascript_key_tester/chord_tracker.js", |
| 183 "tools/javascript_key_tester/event_listeners.js", |
| 184 "tools/javascript_key_tester/icon_128.png", |
| 185 "tools/javascript_key_tester/main.css", |
| 186 "tools/javascript_key_tester/main.html", |
| 187 "tools/javascript_key_tester/main.js", |
| 188 "tools/javascript_key_tester/manifest.json", |
| 189 "tools/javascript_key_tester/pnacl/remoting_key_tester.nmf", |
| 190 |
| 191 # TODO(GYP): crbug.com/471924 "$target_out_dir/remoting_key_tester_newlib.
pexe", |
| 192 ] |
| 193 |
| 194 outputs = [ |
| 195 "$target_out_dir/remoting/key_tester/{{source_file_part}}", |
| 196 ] |
| 197 |
| 198 deps = [ |
| 199 ":remoting_key_tester_jscompile", |
| 200 ":remoting_key_tester_pexe", |
| 201 ] |
| 202 } |
| 203 |
| 204 group("remoting_key_tester_jscompile") { |
| 205 # TODO(GYP): crbug.com/471926 add support for run_jscompile=true. |
| 206 run_jscompile = false |
| 207 if (run_jscompile) { |
| 208 } |
| 209 } |
| 210 |
| 211 group("remoting_key_tester_pexe") { |
| 212 # TODO(GYP): crbug.com/471924 implement me when we have a pnacl toolchain. |
| 213 #sources = [ |
| 214 # "tools/javascript_key_tester/pnacl/remoting_key_tester.cc", |
| 215 #] |
| 216 } |
| 217 } |
OLD | NEW |