OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'memdump', | 8 'target_name': 'purge_ashmem', |
9 'type': 'executable', | 9 'type': 'executable', |
10 'dependencies': [ | 10 'dependencies': [ |
11 '../../../base/base.gyp:base', | 11 '../../../third_party/ashmem/ashmem.gyp:ashmem', |
12 ], | 12 ], |
13 'conditions': [ | 13 'conditions': [ |
14 # Warning: A PIE tool cannot run on ICS 4.0.4, so only | 14 # Warning: A PIE tool cannot run on ICS 4.0.4, so only |
15 # build it as position-independent when ASAN | 15 # build it as position-independent when ASAN |
16 # is activated. See b/6587214 for details. | 16 # is activated. See b/6587214 for details. |
17 [ 'asan==1', { | 17 [ 'asan==1', { |
18 'cflags': [ | 18 'cflags': [ |
19 '-fPIE', | 19 '-fPIE', |
20 ], | 20 ], |
21 'ldflags': [ | 21 'ldflags': [ |
22 '-pie', | 22 '-pie', |
23 ], | 23 ], |
24 }], | 24 }], |
25 ], | 25 ], |
26 'sources': [ | 26 'sources': [ |
27 'memdump.cc', | 27 'purge_ashmem.c', |
28 ], | 28 ], |
29 }, | 29 }, |
30 ], | 30 ], |
31 } | 31 } |
OLD | NEW |