1 # Copyright (c) 2012 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 'targets': [ 7 { 8 'target_name': 'forwarder2', 9 'type': 'none', 10 'dependencies': [ 11 'device_forwarder', 12 'host_forwarder#host', 13 ], 14 # For the component build, ensure dependent shared libraries are stripped 15 # and put alongside forwarder to simplify pushing to the device. 16 'variables': { 17 'output_dir': '<(PRODUCT_DIR)/forwarder_dist/', 18 'native_binary': '<(PRODUCT_DIR)/device_forwarder', 19 }, 20 'includes': ['../../../build/android/native_app_dependencies.gypi'], 21 }, 22 { 23 'target_name': 'device_forwarder', 24 'type': 'executable', 25 'toolsets': ['target'], 26 'dependencies': [ 27 '../../../base/base.gyp:base', 28 '../common/common.gyp:android_tools_common', 29 ], 30 'include_dirs': [ 31 '../../..', 32 ], 33 'sources': [ 34 'command.cc', 35 'common.cc', 36 'daemon.cc', 37 'device_controller.cc', 38 'device_forwarder_main.cc', 39 'device_listener.cc', 40 'forwarder.cc', 41 'forwarders_manager.cc', 42 'pipe_notifier.cc', 43 'socket.cc', 44 ], 45 }, 46 { 47 'target_name': 'host_forwarder', 48 'type': 'executable', 49 'toolsets': ['host'], 50 'dependencies': [ 51 '../../../base/base.gyp:base', 52 '../common/common.gyp:android_tools_common', 53 ], 54 'include_dirs': [ 55 '../../..', 56 ], 57 'sources': [ 58 'command.cc', 59 'common.cc', 60 'daemon.cc', 61 'forwarder.cc', 62 'forwarders_manager.cc', 63 'host_controller.cc', 64 'host_forwarder_main.cc', 65 'pipe_notifier.cc', 66 'socket.cc', 67 ], 68 }, 69 ], 70 } 71