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