James Robinson | 646469d | 2014-10-03 15:33:28 -0700 | [diff] [blame] | 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', |
James Robinson | e2ac7e8 | 2014-10-15 13:21:59 -0700 | [diff] [blame] | 28 | '../../../build/android/pylib/device/commands/commands.gyp:chromium_commands', |
James Robinson | 646469d | 2014-10-03 15:33:28 -0700 | [diff] [blame] | 29 | '../common/common.gyp:android_tools_common', |
| 30 | ], |
| 31 | 'include_dirs': [ |
| 32 | '../../..', |
| 33 | ], |
| 34 | 'sources': [ |
| 35 | 'command.cc', |
| 36 | 'common.cc', |
| 37 | 'daemon.cc', |
| 38 | 'device_controller.cc', |
| 39 | 'device_forwarder_main.cc', |
| 40 | 'device_listener.cc', |
| 41 | 'forwarder.cc', |
| 42 | 'forwarders_manager.cc', |
| 43 | 'pipe_notifier.cc', |
| 44 | 'socket.cc', |
| 45 | ], |
| 46 | }, |
| 47 | { |
| 48 | 'target_name': 'host_forwarder', |
| 49 | 'type': 'executable', |
| 50 | 'toolsets': ['host'], |
| 51 | 'dependencies': [ |
| 52 | '../../../base/base.gyp:base', |
| 53 | '../common/common.gyp:android_tools_common', |
| 54 | ], |
| 55 | 'include_dirs': [ |
| 56 | '../../..', |
| 57 | ], |
| 58 | 'sources': [ |
| 59 | 'command.cc', |
| 60 | 'common.cc', |
| 61 | 'daemon.cc', |
| 62 | 'forwarder.cc', |
| 63 | 'forwarders_manager.cc', |
| 64 | 'host_controller.cc', |
| 65 | 'host_forwarder_main.cc', |
| 66 | 'pipe_notifier.cc', |
| 67 | 'socket.cc', |
| 68 | ], |
| 69 | }, |
| 70 | ], |
| 71 | } |