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 |
| 6 group("forwarder2") { |
| 7 deps = [ |
| 8 ":device_forwarder_dist($default_toolchain)", |
| 9 ":host_forwarder($host_toolchain)", |
| 10 ] |
| 11 } |
| 12 |
| 13 if (current_toolchain == default_toolchain) { |
| 14 # GYP version: tools/android/forwarder2/forwarder.gyp:device_forwarder |
| 15 executable("device_forwarder") { |
| 16 sources = [ |
| 17 "command.cc", |
| 18 "command.h", |
| 19 "common.cc", |
| 20 "common.h", |
| 21 "daemon.cc", |
| 22 "daemon.h", |
| 23 "device_controller.cc", |
| 24 "device_controller.h", |
| 25 "device_forwarder_main.cc", |
| 26 "device_listener.cc", |
| 27 "device_listener.h", |
| 28 "forwarder.cc", |
| 29 "forwarder.h", |
| 30 "forwarders_manager.cc", |
| 31 "forwarders_manager.h", |
| 32 "pipe_notifier.cc", |
| 33 "pipe_notifier.h", |
| 34 "socket.cc", |
| 35 "socket.h", |
| 36 ] |
| 37 |
| 38 deps = [ |
| 39 "//base", |
| 40 "//tools/android/common", |
| 41 ] |
| 42 datadeps = [ |
| 43 "//build/android/pylib/device/commands:chromium_commands", |
| 44 ] |
| 45 |
| 46 include_dirs = [ "../../" ] |
| 47 |
| 48 configs -= [ "//build/config/compiler:chromium_code" ] |
| 49 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 50 } |
| 51 |
| 52 import("//build/config/android/rules.gni") |
| 53 create_native_executable_dist("device_forwarder_dist") { |
| 54 dist_dir = "$root_build_dir/forwarder_dist" |
| 55 binary = "$root_build_dir/exe.stripped/device_forwarder" |
| 56 } |
| 57 } else { |
| 58 # GYP version: tools/android/forwarder2/forwarder.gyp:host_forwarder |
| 59 executable("host_forwarder") { |
| 60 sources = [ |
| 61 "command.cc", |
| 62 "common.cc", |
| 63 "daemon.cc", |
| 64 "forwarder.cc", |
| 65 "forwarders_manager.cc", |
| 66 "host_controller.cc", |
| 67 "host_forwarder_main.cc", |
| 68 "pipe_notifier.cc", |
| 69 "socket.cc", |
| 70 ] |
| 71 |
| 72 deps = [ |
| 73 "//base", |
| 74 "//tools/android/common", |
| 75 ] |
| 76 |
| 77 include_dirs = [ "../../.." ] |
| 78 |
| 79 configs -= [ "//build/config/compiler:chromium_code" ] |
| 80 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 81 } |
| 82 } |
OLD | NEW |