OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 # This file is meant to be included into a target for instrumented dynamic | 5 # This file is meant to be included into a target for instrumented dynamic |
6 # packages and describes standard build action for most of the packages. | 6 # packages and describes standard build action for most of the packages. |
7 | 7 |
8 { | 8 { |
9 'target_name': '<(_sanitizer_type)-<(_package_name)', | 9 'target_name': '<(_sanitizer_type)-<(_package_name)', |
10 'type': 'none', | 10 'type': 'none', |
11 'actions': [ | 11 'actions': [ |
12 { | 12 { |
13 'action_name': '<(_package_name)', | 13 'action_name': '<(_package_name)', |
14 'inputs': [ | 14 'inputs': [ |
15 # TODO(earthdok): reintroduce some sort of dependency | 15 # TODO(earthdok): reintroduce some sort of dependency |
16 # See http://crbug.com/343515 | 16 # See http://crbug.com/343515 |
17 #'download_build_install.py', | 17 #'download_build_install.py', |
18 ], | 18 ], |
19 'outputs': [ | 19 'outputs': [ |
20 '<(PRODUCT_DIR)/instrumented_libraries/<(_sanitizer_type)/<(_package_nam
e).txt', | 20 '<(PRODUCT_DIR)/instrumented_libraries/<(_sanitizer_type)/<(_package_nam
e).txt', |
21 ], | 21 ], |
22 'action': ['<(DEPTH)/third_party/instrumented_libraries/download_build_ins
tall.py', | 22 'action': ['<(DEPTH)/third_party/instrumented_libraries/download_build_ins
tall.py', |
23 '--product-directory=<(PRODUCT_DIR)', | 23 '--product-directory=<(PRODUCT_DIR)', |
24 '--package=<(_package_name)', | 24 '--package=<(_package_name)', |
25 '--intermediate-directory=<(INTERMEDIATE_DIR)', | 25 '--intermediate-directory=<(INTERMEDIATE_DIR)', |
26 '--sanitizer-type=<(_sanitizer_type)', | 26 '--sanitizer-type=<(_sanitizer_type)', |
27 '--extra-configure-flags=>(_extra_configure_flags)', | 27 '--extra-configure-flags=>(_extra_configure_flags)', |
28 '--cflags=>(_package_cflags)', | 28 '--cflags=>(_package_cflags)', |
29 '--ldflags=>(_package_ldflags)', | 29 '--ldflags=>(_package_ldflags)', |
| 30 '--patch=>(_patch)', |
30 '--run-before-build=>(_run_before_build)', | 31 '--run-before-build=>(_run_before_build)', |
31 '--cc=<(_cc)', | 32 '--cc=<(_cc)', |
32 '--cxx=<(_cxx)', | 33 '--cxx=<(_cxx)', |
33 '--jobs=>(_jobs)', | 34 '--jobs=>(_jobs)', |
34 '--build-method=>(_build_method)', | 35 '--build-method=>(_build_method)', |
35 '--sanitizer-blacklist=>(_sanitizer_blacklist)', | 36 '--sanitizer-blacklist=>(_sanitizer_blacklist)', |
36 ], | 37 ], |
37 'conditions': [ | 38 'conditions': [ |
38 ['verbose_libraries_build==1', { | 39 ['verbose_libraries_build==1', { |
39 'action+': [ | 40 'action+': [ |
40 '--verbose', | 41 '--verbose', |
41 ], | 42 ], |
42 }], | 43 }], |
43 ] | 44 ], |
| 45 'target_conditions': [ |
| 46 ['">(_patch)"!=""', { |
| 47 'inputs+': [ |
| 48 '>(_patch)', |
| 49 ], |
| 50 }], |
| 51 ['">(_run_before_build)"!=""', { |
| 52 'inputs+': [ |
| 53 '>(_run_before_build)', |
| 54 ], |
| 55 }], |
| 56 ], |
44 }, | 57 }, |
45 ], | 58 ], |
46 } | 59 } |
OLD | NEW |