| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/symlink.gni") | 5 import("//build/symlink.gni") |
| 6 | 6 |
| 7 # GYP: //tools/android/forwarder2/forwarder.gyp:forwarder2 | |
| 8 group("forwarder2") { | 7 group("forwarder2") { |
| 9 data_deps = [ | 8 data_deps = [ |
| 10 ":host_forwarder", | 9 ":host_forwarder", |
| 11 ":device_forwarder_prepare_dist($default_toolchain)", | 10 ":device_forwarder_prepare_dist($default_toolchain)", |
| 12 ] | 11 ] |
| 13 } | 12 } |
| 14 | 13 |
| 15 if (current_toolchain == default_toolchain) { | 14 if (current_toolchain == default_toolchain) { |
| 16 import("//build/config/android/rules.gni") | 15 import("//build/config/android/rules.gni") |
| 17 | 16 |
| 18 # GYP: //tools/android/forwarder2/forwarder.gyp:device_forwarder | |
| 19 executable("device_forwarder") { | 17 executable("device_forwarder") { |
| 20 sources = [ | 18 sources = [ |
| 21 "command.cc", | 19 "command.cc", |
| 22 "command.h", | 20 "command.h", |
| 23 "common.cc", | 21 "common.cc", |
| 24 "common.h", | 22 "common.h", |
| 25 "daemon.cc", | 23 "daemon.cc", |
| 26 "daemon.h", | 24 "daemon.h", |
| 27 "device_controller.cc", | 25 "device_controller.cc", |
| 28 "device_controller.h", | 26 "device_controller.h", |
| (...skipping 14 matching lines...) Expand all Loading... |
| 43 deps = [ | 41 deps = [ |
| 44 "//base", | 42 "//base", |
| 45 "//build/config/sanitizers:deps", | 43 "//build/config/sanitizers:deps", |
| 46 "//tools/android/common", | 44 "//tools/android/common", |
| 47 ] | 45 ] |
| 48 data_deps = [ | 46 data_deps = [ |
| 49 "//build/android/pylib/device/commands", | 47 "//build/android/pylib/device/commands", |
| 50 ] | 48 ] |
| 51 } | 49 } |
| 52 | 50 |
| 53 # GYP: //tools/android/forwarder2/forwarder.gyp:forwarder2 | |
| 54 create_native_executable_dist("device_forwarder_prepare_dist") { | 51 create_native_executable_dist("device_forwarder_prepare_dist") { |
| 55 dist_dir = "$root_build_dir/forwarder_dist" | 52 dist_dir = "$root_build_dir/forwarder_dist" |
| 56 binary = "$root_build_dir/device_forwarder" | 53 binary = "$root_build_dir/device_forwarder" |
| 57 deps = [ | 54 deps = [ |
| 58 ":device_forwarder", | 55 ":device_forwarder", |
| 59 ] | 56 ] |
| 60 } | 57 } |
| 61 } | 58 } |
| 62 | 59 |
| 63 if (current_toolchain != default_toolchain) { | 60 if (current_toolchain != default_toolchain) { |
| 64 # GYP: //tools/android/forwarder2/forwarder.gyp:host_forwarder | |
| 65 executable("host_forwarder") { | 61 executable("host_forwarder") { |
| 66 sources = [ | 62 sources = [ |
| 67 "command.cc", | 63 "command.cc", |
| 68 "command.h", | 64 "command.h", |
| 69 "common.cc", | 65 "common.cc", |
| 70 "common.h", | 66 "common.h", |
| 71 "daemon.cc", | 67 "daemon.cc", |
| 72 "daemon.h", | 68 "daemon.h", |
| 73 "forwarder.cc", | 69 "forwarder.cc", |
| 74 "forwarder.h", | 70 "forwarder.h", |
| (...skipping 14 matching lines...) Expand all Loading... |
| 89 "//build/config/sanitizers:deps", | 85 "//build/config/sanitizers:deps", |
| 90 "//tools/android/common", | 86 "//tools/android/common", |
| 91 ] | 87 ] |
| 92 } | 88 } |
| 93 } else { | 89 } else { |
| 94 # Create a symlink from root_build_dir -> clang_x64/host_forwarder. | 90 # Create a symlink from root_build_dir -> clang_x64/host_forwarder. |
| 95 binary_symlink("host_forwarder") { | 91 binary_symlink("host_forwarder") { |
| 96 binary_label = ":$target_name($host_toolchain)" | 92 binary_label = ":$target_name($host_toolchain)" |
| 97 } | 93 } |
| 98 } | 94 } |
| OLD | NEW |