Chromium Code Reviews| Index: tools/android/md5sum/md5sum.gyp |
| diff --git a/tools/android/md5sum/md5sum.gyp b/tools/android/md5sum/md5sum.gyp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4e5868099ef8efd5c1d92cc113e1bd0620fb3770 |
| --- /dev/null |
| +++ b/tools/android/md5sum/md5sum.gyp |
| @@ -0,0 +1,65 @@ |
| +# 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': 'md5sum', |
| + 'type': 'none', |
| + 'dependencies': [ |
| + 'md5sum_stripped_device_bin', |
| + 'md5sum_host_bin#host', |
| + ], |
| + }, |
| + { |
| + 'target_name': 'md5sum_device_bin', |
| + 'type': 'executable', |
| + 'dependencies': [ |
| + '../../../base/base.gyp:base', |
| + ], |
| + 'include_dirs': [ |
| + '../../..', |
| + ], |
| + 'sources': [ |
| + 'md5sum.cc', |
| + ], |
| + }, |
| + { |
| + 'target_name': 'md5sum_stripped_device_bin', |
| + 'type': 'none', |
| + 'dependencies': [ |
| + 'md5sum_device_bin', |
| + ], |
| + 'actions': [ |
| + { |
| + 'action_name': 'strip_md5sum_device_bin', |
| + 'inputs': ['<(PRODUCT_DIR)/md5sum_device_bin'], |
| + 'outputs': ['<(PRODUCT_DIR)/md5sum'], |
| + 'action': [ |
| + '<(android_strip)', |
| + '--strip-unneeded', |
| + '<@(_inputs)', |
| + '-o', |
| + '<@(_outputs)', |
| + ], |
| + }, |
| + ], |
| + }, |
| + # Same binary but for the host rather than the device. |
| + { |
| + 'target_name': 'md5sum_host_bin', |
|
Peter Beverloo
2012/08/30 12:45:14
We can have a single target and include both host
Philippe
2012/08/31 11:57:39
Unfortunately I didn't manage to make it work that
|
| + 'toolsets': ['host'], |
| + 'type': 'executable', |
| + 'dependencies': [ |
| + '../../../base/base.gyp:base', |
| + ], |
| + 'include_dirs': [ |
| + '../../..', |
| + ], |
| + 'sources': [ |
| + 'md5sum.cc', |
| + ], |
| + }, |
| + ], |
| +} |