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
8 ":host_forwarder($host_toolchain)",
9 ":host_forwarder_copy($host_toolchain)",
10 ":device_forwarder($default_toolchain)",
11 ":device_forwarder_prepare_dist($default_toolchain)",
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") {
27 "device_controller.cc",
28 "device_controller.h",
29 "device_forwarder_main.cc",
34 "forwarders_manager.cc",
35 "forwarders_manager.h",
38 "self_deleter_helper.h",
45 "//build/config/sanitizers:deps",
46 "//tools/android/common",
48 data_deps = [ "//build/android/pylib/device/commands" ]
51 # GYP: //tools/android/forwarder2/forwarder.gyp:forwarder2
52 create_native_executable_dist("device_forwarder_prepare_dist") {
53 dist_dir = "$root_build_dir/forwarder_dist"
54 binary = "$root_build_dir/device_forwarder"
61 if (current_toolchain != default_toolchain) {
62 # GYP: //tools/android/forwarder2/forwarder.gyp:host_forwarder
63 executable("host_forwarder") {
73 "forwarders_manager.cc",
74 "forwarders_manager.h",
77 "host_forwarder_main.cc",
80 "self_deleter_helper.h",
87 "//build/config/sanitizers:deps",
88 "//tools/android/common",
92 # GYP: //tools/android/forwarder2/forwarder.gyp:forwarder2
93 copy("host_forwarder_copy") {
95 "$root_out_dir/host_forwarder",
98 "$root_build_dir/host_forwarder",