Chromium Code Reviews| 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 'conditions': [ | |
| 7 ['asan==1', { | |
| 8 'sanitizer_type': 'asan', | |
| 9 }], | |
| 10 ['msan==1', { | |
| 11 'sanitizer_type': 'msan', | |
| 12 }], | |
| 13 ], | |
| 6 'targets': [ | 14 'targets': [ |
| 7 { | 15 { |
| 8 'target_name': 'instrumented_libraries', | 16 'target_name': 'instrumented_libraries', |
| 9 'type': 'none', | 17 'type': 'none', |
| 10 'variables': { | 18 'variables': { |
| 11 'prune_self_dependency': 1, | 19 'prune_self_dependency': 1, |
| 12 }, | 20 }, |
| 13 'dependencies': [ | 21 'dependencies': [ |
| 14 'libpng12-0', | 22 'libpng12-0', |
| 15 'libxau6', | 23 'libxau6', |
| 16 'libglib2.0-0', | 24 'libglib2.0-0', |
| 17 ], | 25 ], |
| 18 'actions': [ | 26 'actions': [ |
| 19 { | 27 { |
| 20 'action_name': 'fix_rpaths', | 28 'action_name': 'fix_rpaths', |
| 21 'inputs': [ | 29 'inputs': [ |
| 22 'fix_rpaths.sh', | 30 'fix_rpaths.sh', |
| 23 ], | 31 ], |
| 24 'outputs': [ | 32 'outputs': [ |
| 25 '<(PRODUCT_DIR)/instrumented_libraries/asan/rpaths.fixed.txt', | 33 '<(PRODUCT_DIR)/instrumented_libraries/<(_sanitizer_type)/rpaths.fix ed.txt', |
| 26 ], | 34 ], |
| 27 'action': ['./fix_rpaths.sh', '<(PRODUCT_DIR)/instrumented_libraries/a san'], | 35 'action': ['./fix_rpaths.sh', '<(PRODUCT_DIR)/instrumented_libraries/< (_sanitizer_type)'], |
|
Alexander Potapenko
2013/12/03 10:23:54
I suggest to wrap this line (see the next comment)
alextaran1
2013/12/03 11:35:47
Done.
| |
| 28 }, | 36 }, |
| 29 ], | 37 ], |
| 30 }, | 38 }, |
| 31 { | 39 { |
| 32 'target_name': 'libpng12-0', | 40 'target_name': 'libpng12-0', |
| 33 'dependencies=': [], | 41 'dependencies=': [], |
| 34 'includes': ['standard_instrumented_library_target.gypi'], | 42 'includes': ['standard_instrumented_library_target.gypi'], |
| 35 }, | 43 }, |
| 36 { | 44 { |
| 37 'target_name': 'libxau6', | 45 'target_name': 'libxau6', |
| 38 'dependencies=': [], | 46 'dependencies=': [], |
| 39 'includes': ['standard_instrumented_library_target.gypi'], | 47 'includes': ['standard_instrumented_library_target.gypi'], |
| 40 }, | 48 }, |
| 41 { | 49 { |
| 42 'target_name': 'libglib2.0-0', | 50 'target_name': 'libglib2.0-0', |
| 43 'dependencies=': [], | 51 'dependencies=': [], |
| 44 'includes': ['standard_instrumented_library_target.gypi'], | 52 'includes': ['standard_instrumented_library_target.gypi'], |
| 45 }, | 53 }, |
| 46 ], | 54 ], |
| 47 } | 55 } |
| OLD | NEW |