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 group("forwarder2") { | |
6 deps = [ | |
7 ":device_forwarder($default_toolchain)", | |
8 ":host_forwarder($host_toolchain)", | |
9 ] | |
10 | |
11 # TODO(GYP) | |
12 # For the component build, ensure dependent shared libraries are stripped | |
13 # and put alongside forwarder to simplify pushing to the device. | |
14 # 'variables': { | |
jamesr
2014/10/24 00:21:44
i think this is basically create_native_executable
cjhopman
2014/10/24 01:23:34
Yeah, that's correct.
The magic should (mostly) j
| |
15 # 'output_dir': '<(PRODUCT_DIR)/forwarder_dist/', | |
16 # 'native_binary': '<(PRODUCT_DIR)/device_forwarder', | |
17 # }, | |
18 } | |
19 | |
20 if (current_toolchain == default_toolchain) { | |
21 # GYP version: tools/android/forwarder2/forwarder.gyp:device_forwarder | |
22 executable("device_forwarder") { | |
23 sources = [ | |
24 "command.cc", | |
25 "command.h", | |
26 "common.cc", | |
27 "common.h", | |
28 "daemon.cc", | |
29 "daemon.h", | |
30 "device_controller.cc", | |
31 "device_controller.h", | |
32 "device_forwarder_main.cc", | |
33 "device_listener.cc", | |
34 "device_listener.h", | |
35 "forwarder.cc", | |
36 "forwarder.h", | |
37 "forwarders_manager.cc", | |
38 "forwarders_manager.h", | |
39 "pipe_notifier.cc", | |
40 "pipe_notifier.h", | |
41 "socket.cc", | |
42 "socket.h", | |
43 ] | |
44 | |
45 deps = [ | |
46 "//base", | |
47 "//tools/android/common", | |
48 ] | |
49 datadeps = [ | |
50 "//build/android/pylib/device/commands:chromium_commands", | |
51 ] | |
52 | |
53 include_dirs = [ "../../" ] | |
54 | |
55 configs -= [ "//build/config/compiler:chromium_code" ] | |
56 configs += [ "//build/config/compiler:no_chromium_code" ] | |
57 } | |
58 } else { | |
59 # GYP version: tools/android/forwarder2/forwarder.gyp:host_forwarder | |
60 executable("host_forwarder") { | |
61 sources = [ | |
62 "command.cc", | |
63 "common.cc", | |
64 "daemon.cc", | |
65 "forwarder.cc", | |
66 "forwarders_manager.cc", | |
67 "host_controller.cc", | |
68 "host_forwarder_main.cc", | |
69 "pipe_notifier.cc", | |
70 "socket.cc", | |
71 ] | |
72 | |
73 deps = [ | |
74 "//base", | |
75 "//tools/android/common", | |
76 ] | |
77 | |
78 include_dirs = [ "../../.." ] | |
79 | |
80 configs -= [ "//build/config/compiler:chromium_code" ] | |
81 configs += [ "//build/config/compiler:no_chromium_code" ] | |
82 } | |
83 } | |
OLD | NEW |