OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
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 ] | |
13 } | |
14 | |
15 # GYP: //tools/android/forwarder2/forwarder.gyp:device_forwarder | |
16 executable("device_forwarder") { | |
cjhopman
2014/10/29 17:21:24
This can probably go in the current_toolchain==def
qsr
2014/10/30 12:15:53
Done.
| |
17 sources = [ | |
18 "command.cc", | |
cjhopman
2014/10/29 17:21:24
looks like headers are missing here and below
qsr
2014/10/30 12:15:53
Done.
| |
19 "common.cc", | |
20 "daemon.cc", | |
21 "device_controller.cc", | |
22 "device_forwarder_main.cc", | |
23 "device_listener.cc", | |
24 "forwarder.cc", | |
25 "forwarders_manager.cc", | |
26 "pipe_notifier.cc", | |
27 "socket.cc", | |
28 ] | |
29 deps = [ | |
30 "//base", | |
31 "//tools/android/common", | |
32 ] | |
33 datadeps = [ | |
34 "//build/android/pylib/device/commands", | |
35 ] | |
36 } | |
37 | |
38 if (current_toolchain == default_toolchain) { | |
39 import("//build/config/android/rules.gni") | |
40 | |
41 # GYP: //tools/android/forwarder2/forwarder.gyp:forwarder2 | |
42 create_native_executable_dist("device_forwarder_prepare_dist") { | |
43 dist_dir = "$root_build_dir/forwarder_dist" | |
44 binary = "$root_build_dir/exe.stripped/device_forwarder" | |
45 } | |
46 } | |
47 | |
48 # GYP: //tools/android/forwarder2/forwarder.gyp:host_forwarder | |
49 executable("host_forwarder") { | |
50 sources = [ | |
51 "command.cc", | |
52 "common.cc", | |
53 "daemon.cc", | |
54 "forwarder.cc", | |
55 "forwarders_manager.cc", | |
56 "host_controller.cc", | |
57 "host_forwarder_main.cc", | |
58 "pipe_notifier.cc", | |
59 "socket.cc", | |
60 ] | |
61 deps = [ | |
62 "//base", | |
63 "//tools/android/common", | |
64 ] | |
65 } | |
66 | |
67 if (current_toolchain != default_toolchain) { | |
68 # GYP: //tools/android/forwarder2/forwarder.gyp:forwarder2 | |
69 copy("host_forwarder_copy") { | |
70 sources = ["$root_out_dir/host_forwarder"] | |
71 outputs = ["$root_build_dir/host_forwarder"] | |
72 } | |
73 } | |
OLD | NEW |