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 if (current_toolchain == default_toolchain) { |
| 16 import("//build/config/android/rules.gni") |
| 17 |
| 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 "//tools/android/common", |
| 46 ] |
| 47 datadeps = [ |
| 48 "//build/android/pylib/device/commands", |
| 49 ] |
| 50 } |
| 51 |
| 52 # GYP: //tools/android/forwarder2/forwarder.gyp:forwarder2 |
| 53 create_native_executable_dist("device_forwarder_prepare_dist") { |
| 54 dist_dir = "$root_build_dir/forwarder_dist" |
| 55 binary = "$root_build_dir/exe.stripped/device_forwarder" |
| 56 } |
| 57 } |
| 58 |
| 59 if (current_toolchain != default_toolchain) { |
| 60 # GYP: //tools/android/forwarder2/forwarder.gyp:host_forwarder |
| 61 executable("host_forwarder") { |
| 62 sources = [ |
| 63 "command.cc", |
| 64 "command.h", |
| 65 "common.cc", |
| 66 "common.h", |
| 67 "daemon.cc", |
| 68 "daemon.h", |
| 69 "forwarder.cc", |
| 70 "forwarder.h", |
| 71 "forwarders_manager.cc", |
| 72 "forwarders_manager.h", |
| 73 "host_controller.cc", |
| 74 "host_controller.h", |
| 75 "host_forwarder_main.cc", |
| 76 "pipe_notifier.cc", |
| 77 "pipe_notifier.h", |
| 78 "self_deleter_helper.h", |
| 79 "socket.cc", |
| 80 "socket.h", |
| 81 "util.h", |
| 82 ] |
| 83 deps = [ |
| 84 "//base", |
| 85 "//tools/android/common", |
| 86 ] |
| 87 } |
| 88 |
| 89 # GYP: //tools/android/forwarder2/forwarder.gyp:forwarder2 |
| 90 copy("host_forwarder_copy") { |
| 91 sources = ["$root_out_dir/host_forwarder"] |
| 92 outputs = ["$root_build_dir/host_forwarder"] |
| 93 } |
| 94 } |
OLD | NEW |