OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
| 8 # GN: //tools/android/md5sum:md5sum |
8 'target_name': 'md5sum', | 9 'target_name': 'md5sum', |
9 'type': 'none', | 10 'type': 'none', |
10 'dependencies': [ | 11 'dependencies': [ |
11 'md5sum_stripped_device_bin', | 12 'md5sum_stripped_device_bin', |
12 'md5sum_bin_host#host', | 13 'md5sum_bin_host#host', |
13 ], | 14 ], |
14 # For the component build, ensure dependent shared libraries are stripped | 15 # For the component build, ensure dependent shared libraries are stripped |
15 # and put alongside md5sum to simplify pushing to the device. | 16 # and put alongside md5sum to simplify pushing to the device. |
16 'variables': { | 17 'variables': { |
17 'output_dir': '<(PRODUCT_DIR)/md5sum_dist/', | 18 'output_dir': '<(PRODUCT_DIR)/md5sum_dist/', |
18 'native_binary': '<(PRODUCT_DIR)/md5sum_bin', | 19 'native_binary': '<(PRODUCT_DIR)/md5sum_bin', |
19 }, | 20 }, |
20 'includes': ['../../../build/android/native_app_dependencies.gypi'], | 21 'includes': ['../../../build/android/native_app_dependencies.gypi'], |
21 }, | 22 }, |
22 { | 23 { |
| 24 # GN: //tools/android/md5sum:md5sum_bin($default_toolchain) |
23 'target_name': 'md5sum_device_bin', | 25 'target_name': 'md5sum_device_bin', |
24 'type': 'executable', | 26 'type': 'executable', |
25 'dependencies': [ | 27 'dependencies': [ |
26 '../../../base/base.gyp:base', | 28 '../../../base/base.gyp:base', |
27 ], | 29 ], |
28 'include_dirs': [ | 30 'include_dirs': [ |
29 '../../..', | 31 '../../..', |
30 ], | 32 ], |
31 'sources': [ | 33 'sources': [ |
32 'md5sum.cc', | 34 'md5sum.cc', |
33 ], | 35 ], |
34 'conditions': [ | 36 'conditions': [ |
35 [ 'order_profiling!=0 and OS=="android"', { | 37 [ 'order_profiling!=0 and OS=="android"', { |
36 'dependencies': [ '../../../tools/cygprofile/cygprofile.gyp:cygprofi
le', ], | 38 'dependencies': [ '../../../tools/cygprofile/cygprofile.gyp:cygprofi
le', ], |
37 }], | 39 }], |
38 ], | 40 ], |
39 }, | 41 }, |
40 { | 42 { |
| 43 # GN: //tools/android/md5sum:md5sum_prepare_dist |
41 'target_name': 'md5sum_stripped_device_bin', | 44 'target_name': 'md5sum_stripped_device_bin', |
42 'type': 'none', | 45 'type': 'none', |
43 'dependencies': [ | 46 'dependencies': [ |
44 'md5sum_device_bin', | 47 'md5sum_device_bin', |
45 ], | 48 ], |
46 'actions': [ | 49 'actions': [ |
47 { | 50 { |
48 'action_name': 'strip_md5sum_device_bin', | 51 'action_name': 'strip_md5sum_device_bin', |
49 'inputs': ['<(PRODUCT_DIR)/md5sum_device_bin'], | 52 'inputs': ['<(PRODUCT_DIR)/md5sum_device_bin'], |
50 'outputs': ['<(PRODUCT_DIR)/md5sum_bin'], | 53 'outputs': ['<(PRODUCT_DIR)/md5sum_bin'], |
51 'action': [ | 54 'action': [ |
52 '<(android_strip)', | 55 '<(android_strip)', |
53 '--strip-unneeded', | 56 '--strip-unneeded', |
54 '<@(_inputs)', | 57 '<@(_inputs)', |
55 '-o', | 58 '-o', |
56 '<@(_outputs)', | 59 '<@(_outputs)', |
57 ], | 60 ], |
58 }, | 61 }, |
59 ], | 62 ], |
60 }, | 63 }, |
61 # Same binary but for the host rather than the device. | 64 # Same binary but for the host rather than the device. |
62 { | 65 { |
| 66 # GN: //tools/android/md5sum:md5sum_copy_host($default_toolchain) |
63 'target_name': 'md5sum_bin_host', | 67 'target_name': 'md5sum_bin_host', |
64 'toolsets': ['host'], | 68 'toolsets': ['host'], |
65 'type': 'executable', | 69 'type': 'executable', |
66 'dependencies': [ | 70 'dependencies': [ |
67 '../../../base/base.gyp:base', | 71 '../../../base/base.gyp:base', |
68 ], | 72 ], |
69 'include_dirs': [ | 73 'include_dirs': [ |
70 '../../..', | 74 '../../..', |
71 ], | 75 ], |
72 'sources': [ | 76 'sources': [ |
73 'md5sum.cc', | 77 'md5sum.cc', |
74 ], | 78 ], |
75 }, | 79 }, |
76 ], | 80 ], |
77 } | 81 } |
OLD | NEW |