OLD | NEW |
---|---|
(Empty) | |
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': 'run_pie-unstripped', | |
9 'type': 'executable', | |
10 'sources': [ | |
11 'run_pie.c', | |
12 ], | |
13 # Of course, run_pie is the only Android executable which must be NON-PIE. | |
bulach
2014/05/14 12:57:05
nit: be kind on our future selves!
s/Of course/See
Primiano Tucci (use gerrit)
2014/05/14 13:21:23
Done.
| |
14 'cflags!': [ | |
15 '-fPIE', | |
16 ], | |
17 'ldflags!': [ | |
18 '-pie', | |
19 ], | |
20 # Don't inherit unneeded dependencies on stlport.so, so the binary remains | |
21 # self-contained also in component=shared_library builds. | |
22 'libraries!': [ | |
23 '-l<(android_stlport_library)', | |
24 ], | |
25 }, | |
26 { | |
27 'target_name': 'run_pie', | |
28 'type': 'none', | |
29 'dependencies': [ | |
30 'run_pie-unstripped', | |
31 ], | |
32 'actions': [ | |
33 { | |
34 'action_name': 'strip_run_pie', | |
35 'inputs': ['<(PRODUCT_DIR)/run_pie-unstripped'], | |
36 'outputs': ['<(PRODUCT_DIR)/run_pie'], | |
37 'action': [ | |
38 '<(android_strip)', | |
39 '--strip-unneeded', | |
40 '<@(_inputs)', | |
41 '-o', | |
42 '<@(_outputs)', | |
43 ], | |
44 }, | |
45 ], | |
46 }, | |
47 ], | |
48 } | |
OLD | NEW |