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.
5 import("//build/config/features.gni")
6 import("//build/config/ui.gni")
7 import("//build/util/version.gni")
8 import("//remoting/remoting_version.gni")
9 import("//remoting/remoting_enable.gni")
10 import("//testing/test.gni")
12 # Various remoting targets need this version definition.
14 defines = [ "VERSION=$chrome_version_full" ]
17 group("remoting_all") {
21 #"//remoting:remoting_browser_test_resources",
22 "//remoting:remoting_unittests",
23 #"//remoting:remoting_webapp_unittests",
24 #"//app_remoting_test.gyp:ar_sample_test_driver",
25 #"//app_remoting_webapp.gyp:ar_sample_app",
28 # TODO(GYP): add is_mac
29 if ((is_linux && !is_chromeos) || is_win) {
30 deps += [ "//remoting/webapp" ]
35 #"//remoting:remoting_breakpad_tester",
36 #"//remoting:remoting_console",
37 #"//remoting:remoting_desktop",
38 #"//remoting:remoting_host_installation",
44 #"//remoting:remoting_apk",
45 #"//remoting:remoting_test_apk",
46 #"//remoting:remoting_unittests_apk",
50 if (enable_remoting_host) {
52 "//remoting:remoting_perftests",
54 "//remoting/host:remoting_start_host",
55 "//remoting/host/it2me:remote_assistance_host",
57 #"//remoting:remoting_it2me_native_messaging_host",
58 #"//remoting:remoting_native_messaging_manifests",
62 if (enable_me2me_host) {
64 "//remoting/host:remoting_me2me_host",
65 #"//remoting/host:remoting_me2me_host_archive",
69 # TODO(GYP) Depends on crbug.com/471924 being fixed for PNaCl.
71 deps += [ "//remoting:remoting_key_tester" ]
75 # GYP version: remoting/remoting_test.gypi:remoting_test_support
76 source_set("test_support") {
85 "//remoting/protocol:test_support",
86 "//remoting/resources",
87 "//remoting/signaling:test_support",
88 "//remoting/test:test_support",
93 if (enable_configuration_policy) {
94 deps += [ "//components/policy:test_support" ]
97 if (enable_remoting_host) {
98 deps += [ "//remoting/host:test_support" ]
102 # TODO(GYP) remoting_unittests on Mac. Needs to be tested.
104 # TODO(GYP): Delete this after we've converted everything to GN.
105 # The _run targets exist only for compatibility w/ GYP.
106 group("remoting_unittests_run") {
109 ":remoting_unittests",
113 test("remoting_unittests") {
117 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
118 "//build/config/compiler:no_size_t_to_int_warning",
122 "//net/data/ssl/certificates/ok_cert.pem",
123 "//net/data/ssl/certificates/unittest.key.bin",
124 "//net/data/ssl/certificates/unittest.selfsigned.der",
131 "//remoting/base:unit_tests",
132 "//remoting/client:unit_tests",
133 "//remoting/protocol:unit_tests",
134 "//remoting/signaling:unit_tests",
135 "//remoting/test:unit_tests",
138 "//third_party/webrtc",
142 deps += [ "//testing/android/native_test:native_test_native_code" ]
145 if (enable_remoting_host) {
147 "//remoting/codec:unit_tests",
148 "//remoting/host:unit_tests",
155 "//third_party/libjingle:libjingle_webrtc",
156 "//third_party/libjingle:libpeerconnection",
161 if (enable_remoting_host) {
162 test("remoting_perftests") {
164 "codec/codec_test.cc",
165 "codec/codec_test.h",
166 "codec/video_encoder_vpx_perftest.cc",
167 "test/protocol_perftest.cc",
170 configs += [ ":version" ]
175 "//base/test:run_all_unittests",
176 "//base/test:test_support",
177 "//net:test_support",
180 "//third_party/webrtc/modules/desktop_capture",
181 "//third_party/libjingle",
185 deps += [ "//third_party/libjingle:libjingle_webrtc" ]
190 group("remoting_unittests") {
195 group("remoting_key_tester") {
197 ":remoting_key_tester_copies",
201 copy("remoting_key_tester_copies") {
203 "tools/javascript_key_tester/background.js",
204 "tools/javascript_key_tester/chord_tracker.js",
205 "tools/javascript_key_tester/event_listeners.js",
206 "tools/javascript_key_tester/icon_128.png",
207 "tools/javascript_key_tester/main.css",
208 "tools/javascript_key_tester/main.html",
209 "tools/javascript_key_tester/main.js",
210 "tools/javascript_key_tester/manifest.json",
211 "tools/javascript_key_tester/pnacl/remoting_key_tester.nmf",
213 # TODO(GYP): crbug.com/471924 "$target_out_dir/remoting_key_tester_newlib.pexe",
217 "$target_out_dir/remoting/key_tester/{{source_file_part}}",
221 ":remoting_key_tester_jscompile",
222 ":remoting_key_tester_pexe",
226 group("remoting_key_tester_jscompile") {
227 # TODO(GYP): crbug.com/471926 add support for run_jscompile=true.
228 run_jscompile = false
233 group("remoting_key_tester_pexe") {
234 # TODO(GYP): crbug.com/471924 implement me when we have a pnacl toolchain.
236 # "tools/javascript_key_tester/pnacl/remoting_key_tester.cc",