Chromium Code Reviews| Index: tools/android/forwarder2/BUILD.gn |
| diff --git a/tools/android/forwarder2/BUILD.gn b/tools/android/forwarder2/BUILD.gn |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..123d457e7a62d3a6ca2ee8875bf873aa509ef16d |
| --- /dev/null |
| +++ b/tools/android/forwarder2/BUILD.gn |
| @@ -0,0 +1,83 @@ |
| +# Copyright 2014 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +group("forwarder2") { |
| + deps = [ |
| + ":device_forwarder($default_toolchain)", |
| + ":host_forwarder($host_toolchain)", |
| + ] |
| + |
| +# TODO(GYP) |
| +# For the component build, ensure dependent shared libraries are stripped |
| +# and put alongside forwarder to simplify pushing to the device. |
| +# '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
|
| +# 'output_dir': '<(PRODUCT_DIR)/forwarder_dist/', |
| +# 'native_binary': '<(PRODUCT_DIR)/device_forwarder', |
| +# }, |
| +} |
| + |
| +if (current_toolchain == default_toolchain) { |
| + # GYP version: tools/android/forwarder2/forwarder.gyp:device_forwarder |
| + executable("device_forwarder") { |
| + sources = [ |
| + "command.cc", |
| + "command.h", |
| + "common.cc", |
| + "common.h", |
| + "daemon.cc", |
| + "daemon.h", |
| + "device_controller.cc", |
| + "device_controller.h", |
| + "device_forwarder_main.cc", |
| + "device_listener.cc", |
| + "device_listener.h", |
| + "forwarder.cc", |
| + "forwarder.h", |
| + "forwarders_manager.cc", |
| + "forwarders_manager.h", |
| + "pipe_notifier.cc", |
| + "pipe_notifier.h", |
| + "socket.cc", |
| + "socket.h", |
| + ] |
| + |
| + deps = [ |
| + "//base", |
| + "//tools/android/common", |
| + ] |
| + datadeps = [ |
| + "//build/android/pylib/device/commands:chromium_commands", |
| + ] |
| + |
| + include_dirs = [ "../../" ] |
| + |
| + configs -= [ "//build/config/compiler:chromium_code" ] |
| + configs += [ "//build/config/compiler:no_chromium_code" ] |
| + } |
| +} else { |
| + # GYP version: tools/android/forwarder2/forwarder.gyp:host_forwarder |
| + executable("host_forwarder") { |
| + sources = [ |
| + "command.cc", |
| + "common.cc", |
| + "daemon.cc", |
| + "forwarder.cc", |
| + "forwarders_manager.cc", |
| + "host_controller.cc", |
| + "host_forwarder_main.cc", |
| + "pipe_notifier.cc", |
| + "socket.cc", |
| + ] |
| + |
| + deps = [ |
| + "//base", |
| + "//tools/android/common", |
| + ] |
| + |
| + include_dirs = [ "../../.." ] |
| + |
| + configs -= [ "//build/config/compiler:chromium_code" ] |
| + configs += [ "//build/config/compiler:no_chromium_code" ] |
| +} |
| +} |