Index: tools/android/forwarder2/forwarder.gyp |
diff --git a/tools/android/forwarder2/forwarder.gyp b/tools/android/forwarder2/forwarder.gyp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0d94a97f1ee48d28923fd02eee80ea16f1ccc6f4 |
--- /dev/null |
+++ b/tools/android/forwarder2/forwarder.gyp |
@@ -0,0 +1,63 @@ |
+# Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+{ |
+ 'targets': [ |
+ { |
+ 'target_name': 'device_forwarder', |
+ 'type': 'executable', |
+ 'dependencies': [ |
+ '../../../base/base.gyp:base', |
+ '../common/common.gyp:android_tools_common', |
+ ], |
+ 'include_dirs': [ |
+ '../../..', |
+ ], |
+ 'conditions': [ |
+ # Warning: A PIE tool cannot run on ICS 4.0.4, so only |
+ # build it as position-independent when ASAN |
+ # is activated. See b/6587214 for details. |
+ [ 'asan==1', { |
+ 'cflags': [ |
+ '-fPIE', |
+ ], |
+ 'ldflags': [ |
+ '-pie', |
+ ], |
+ }], |
+ ], |
+ 'sources': [ |
+ 'command.cc', |
+ 'device_controller.cc', |
+ 'device_forwarder_main.cc', |
+ 'device_listener.cc', |
+ 'forwarder.cc', |
+ 'pipe_notifier.cc', |
+ 'socket.cc', |
+ 'thread.cc', |
+ ], |
+ }, |
+ { |
+ 'target_name': 'host_forwarder', |
+ 'type': 'executable', |
+ 'toolsets': ['host'], |
+ 'dependencies': [ |
+ '../../../base/base.gyp:base', |
+ '../common/common.gyp:android_tools_common', |
+ ], |
+ 'include_dirs': [ |
+ '../../..', |
+ ], |
+ 'sources': [ |
+ 'command.cc', |
+ 'forwarder.cc', |
+ 'host_controller.cc', |
+ 'host_forwarder_main.cc', |
+ 'pipe_notifier.cc', |
+ 'socket.cc', |
+ 'thread.cc', |
+ ], |
+ }, |
+ ], |
+} |