cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / tools / android / forwarder2 / BUILD.gn
blob942be600aa3d81a43f8cbfa59548e56e49002ed6
1 # Copyright 2014 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 # GYP: //tools/android/forwarder2/forwarder.gyp:forwarder2
6 group("forwarder2") {
7   datadeps = [
8     ":host_forwarder($host_toolchain)",
9     ":host_forwarder_copy($host_toolchain)",
10     ":device_forwarder($default_toolchain)",
11     ":device_forwarder_prepare_dist($default_toolchain)",
12   ]
15 if (current_toolchain == default_toolchain) {
16   import("//build/config/android/rules.gni")
18   # GYP: //tools/android/forwarder2/forwarder.gyp:device_forwarder
19   executable("device_forwarder") {
20     sources = [
21       "command.cc",
22       "command.h",
23       "common.cc",
24       "common.h",
25       "daemon.cc",
26       "daemon.h",
27       "device_controller.cc",
28       "device_controller.h",
29       "device_forwarder_main.cc",
30       "device_listener.cc",
31       "device_listener.h",
32       "forwarder.cc",
33       "forwarder.h",
34       "forwarders_manager.cc",
35       "forwarders_manager.h",
36       "pipe_notifier.cc",
37       "pipe_notifier.h",
38       "self_deleter_helper.h",
39       "socket.cc",
40       "socket.h",
41       "util.h",
42     ]
43     deps = [
44       "//base",
45       "//build/config/sanitizers:deps",
46       "//tools/android/common",
47     ]
48     datadeps = [
49       "//build/android/pylib/device/commands",
50     ]
51   }
53   # GYP: //tools/android/forwarder2/forwarder.gyp:forwarder2
54   create_native_executable_dist("device_forwarder_prepare_dist") {
55     dist_dir = "$root_build_dir/forwarder_dist"
56     binary = "$root_build_dir/device_forwarder"
57     deps = [
58       ":device_forwarder",
59     ]
60   }
63 if (current_toolchain != default_toolchain) {
64   # GYP: //tools/android/forwarder2/forwarder.gyp:host_forwarder
65   executable("host_forwarder") {
66     sources = [
67       "command.cc",
68       "command.h",
69       "common.cc",
70       "common.h",
71       "daemon.cc",
72       "daemon.h",
73       "forwarder.cc",
74       "forwarder.h",
75       "forwarders_manager.cc",
76       "forwarders_manager.h",
77       "host_controller.cc",
78       "host_controller.h",
79       "host_forwarder_main.cc",
80       "pipe_notifier.cc",
81       "pipe_notifier.h",
82       "self_deleter_helper.h",
83       "socket.cc",
84       "socket.h",
85       "util.h",
86     ]
87     deps = [
88       "//base",
89       "//build/config/sanitizers:deps",
90       "//tools/android/common",
91     ]
92   }
94   # GYP: //tools/android/forwarder2/forwarder.gyp:forwarder2
95   copy("host_forwarder_copy") {
96     sources = [
97       "$root_out_dir/host_forwarder",
98     ]
99     outputs = [
100       "$root_build_dir/host_forwarder",
101     ]
102     deps = [
103       ":host_forwarder",
104     ]
105   }