OLD | NEW |
| (Empty) |
1 # Copyright 2015 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': 'memtrack_helper-unstripped', | |
9 'type': 'executable', | |
10 # Unwind tables create a dependency on libc++. By removing them | |
11 # the final binary will not require anything more than libc and libdl. | |
12 # This makes its deployment easier in component=shared_library mode. | |
13 'cflags!': [ | |
14 '-funwind-tables', | |
15 '-fasynchronous-unwind-tables', | |
16 ], | |
17 'cflags': [ | |
18 '-fno-unwind-tables', | |
19 '-fno-asynchronous-unwind-tables', | |
20 ], | |
21 'sources': [ | |
22 'memtrack_helper.c', | |
23 ], | |
24 'include_dirs': [ | |
25 '../../..', | |
26 ], | |
27 }, | |
28 { | |
29 'target_name': 'memtrack_helper', | |
30 'type': 'none', | |
31 'dependencies': [ | |
32 'memtrack_helper-unstripped', | |
33 ], | |
34 'actions': [ | |
35 { | |
36 'action_name': 'strip_memtrack_helper', | |
37 'inputs': ['<(PRODUCT_DIR)/memtrack_helper-unstripped'], | |
38 'outputs': ['<(PRODUCT_DIR)/memtrack_helper'], | |
39 'action': [ | |
40 '<(android_strip)', | |
41 '--strip-unneeded', | |
42 '<@(_inputs)', | |
43 '-o', | |
44 '<@(_outputs)', | |
45 ], | |
46 }, | |
47 ], | |
48 }, | |
49 { | |
50 # Testing only, not typically pushed, hence not worth stripping. | |
51 'target_name': 'memtrack_helper_test_client', | |
52 'type': 'executable', | |
53 'sources': [ | |
54 'memtrack_helper_test_client.c', | |
55 ], | |
56 'include_dirs': [ | |
57 '../../..', | |
58 ], | |
59 }, | |
60 ], | |
61 } | |
OLD | NEW |