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