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': 'md5sum', 9 'type': 'none', 10 'dependencies': [ 11 'md5sum_stripped_device_bin', 12 'md5sum_bin_host#host', 13 ], 14 # For the component build, ensure dependent shared libraries are stripped 15 # and put alongside md5sum to simplify pushing to the device. 16 'variables': { 17 'output_dir': '<(PRODUCT_DIR)/md5sum_dist/', 18 'native_binary': '<(PRODUCT_DIR)/md5sum_bin', 19 }, 20 'includes': ['../../../build/android/native_app_dependencies.gypi'], 21 }, 22 { 23 'target_name': 'md5sum_device_bin', 24 'type': 'executable', 25 'dependencies': [ 26 '../../../base/base.gyp:base', 27 ], 28 'include_dirs': [ 29 '../../..', 30 ], 31 'sources': [ 32 'md5sum.cc', 33 ], 34 'conditions': [ 35 [ 'order_profiling!=0 and OS=="android"', { 36 'dependencies': [ '../../../tools/cygprofile/cygprofile.gyp:cygprofile', ], 37 }], 38 ], 39 }, 40 { 41 'target_name': 'md5sum_stripped_device_bin', 42 'type': 'none', 43 'dependencies': [ 44 'md5sum_device_bin', 45 ], 46 'actions': [ 47 { 48 'action_name': 'strip_md5sum_device_bin', 49 'inputs': ['<(PRODUCT_DIR)/md5sum_device_bin'], 50 'outputs': ['<(PRODUCT_DIR)/md5sum_bin'], 51 'action': [ 52 '<(android_strip)', 53 '--strip-unneeded', 54 '<@(_inputs)', 55 '-o', 56 '<@(_outputs)', 57 ], 58 }, 59 ], 60 }, 61 # Same binary but for the host rather than the device. 62 { 63 'target_name': 'md5sum_bin_host', 64 'toolsets': ['host'], 65 'type': 'executable', 66 'dependencies': [ 67 '../../../base/base.gyp:base', 68 ], 69 'include_dirs': [ 70 '../../..', 71 ], 72 'sources': [ 73 'md5sum.cc', 74 ], 75 }, 76 ], 77 } 78