| OLD | NEW |
| 1 # Copyright 2013 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': 'purge_ashmem', | 8 'target_name': 'purge_ashmem', |
| 9 'type': 'executable', | 9 'type': 'executable', |
| 10 'dependencies': [ | 10 'dependencies': [ |
| 11 '../../../third_party/ashmem/ashmem.gyp:ashmem', | 11 '../../../third_party/ashmem/ashmem.gyp:ashmem', |
| 12 ], | 12 ], |
| 13 'include_dirs': [ | 13 'include_dirs': [ |
| 14 '../../../', | 14 '../../../', |
| 15 ], | 15 ], |
| 16 'conditions': [ | |
| 17 # Warning: A PIE tool cannot run on ICS 4.0.4, so only | |
| 18 # build it as position-independent when ASAN | |
| 19 # is activated. See b/6587214 for details. | |
| 20 [ 'asan==1', { | |
| 21 'cflags': [ | |
| 22 '-fPIE', | |
| 23 ], | |
| 24 'ldflags': [ | |
| 25 '-pie', | |
| 26 ], | |
| 27 }], | |
| 28 ], | |
| 29 'sources': [ | 16 'sources': [ |
| 30 'purge_ashmem.c', | 17 'purge_ashmem.c', |
| 31 ], | 18 ], |
| 32 }, | 19 }, |
| 33 ], | 20 ], |
| 34 } | 21 } |
| OLD | NEW |