Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / tools / android / memdump / memdump.gyp
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': 'memdump-unstripped',
9       'type': 'executable',
10       'dependencies': [
11         '../../../base/base.gyp:base',
12       ],
13       'conditions': [
14         # Warning: A PIE tool cannot run on ICS 4.0.4, so only
15         #          build it as position-independent when ASAN
16         #          is activated. See b/6587214 for details.
17         [ 'asan==1', {
18           'cflags': [
19             '-fPIE',
20           ],
21           'ldflags': [
22             '-pie',
23           ],
24         }],
25       ],
26       'sources': [
27         'memdump.cc',
28       ],
29     },
30     {
31       'target_name': 'memdump',
32       'type': 'none',
33       'dependencies': [
34         'memdump-unstripped',
35       ],
36       'actions': [
37         {
38           'action_name': 'strip_memdump',
39           'inputs': ['<(PRODUCT_DIR)/memdump-unstripped'],
40           'outputs': ['<(PRODUCT_DIR)/memdump'],
41           'action': [
42             '<(android_strip)',
43             '--strip-unneeded',
44             '<@(_inputs)',
45             '-o',
46             '<@(_outputs)',
47           ],
48         },
49       ],
50     },
51   ],
52 }