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': ['./download_build_install.py', | 22 'action': ['scripts/download_build_install.py', |
23 '--build-method=>(_build_method)', | 23 '--build-method=>(_build_method)', |
24 '--cc=<(_cc)', | 24 '--cc=<(_cc)', |
25 '--cflags=>(_package_cflags)', | 25 '--cflags=>(_package_cflags)', |
26 '--cxx=<(_cxx)', | 26 '--cxx=<(_cxx)', |
27 '--extra-configure-flags=>(_extra_configure_flags)', | 27 '--extra-configure-flags=>(_extra_configure_flags)', |
28 '--intermediate-dir=<(INTERMEDIATE_DIR)', | 28 '--intermediate-dir=<(INTERMEDIATE_DIR)', |
29 '--jobs=>(_jobs)', | 29 '--jobs=>(_jobs)', |
30 '--ldflags=>(_package_ldflags)', | 30 '--ldflags=>(_package_ldflags)', |
31 '--libdir=<(_libdir)', | 31 '--libdir=<(_libdir)', |
32 '--package=<(_package_name)', | 32 '--package=<(_package_name)', |
33 '--product-dir=<(PRODUCT_DIR)', | 33 '--product-dir=<(PRODUCT_DIR)', |
34 '--sanitizer=<(_sanitizer_type)', | 34 '--sanitizer=<(_sanitizer_type)', |
35 ], | 35 ], |
36 'conditions': [ | 36 'conditions': [ |
37 ['verbose_libraries_build==1', { | 37 ['verbose_libraries_build==1', { |
38 'action+': [ | 38 'action+': [ |
39 '--verbose', | 39 '--verbose', |
40 ], | 40 ], |
41 }], | 41 }], |
42 ], | 42 ], |
43 'target_conditions': [ | 43 'target_conditions': [ |
44 ['">(_patch)"!=""', { | 44 ['">(_patch)"!=""', { |
45 'action+': [ | 45 'action+': [ |
46 '--patch=>(_patch)', | 46 '--patch=>(_patch)', |
47 ], | 47 ], |
48 'inputs+': [ | 48 'inputs+': [ |
49 '>(_patch)', | 49 '>(_patch)', |
50 ], | 50 ], |
51 }], | 51 }], |
52 ['">(_run_before_build)"!=""', { | 52 ['">(_pre_build)"!=""', { |
53 'action+': [ | 53 'action+': [ |
54 '--run-before-build=>(_run_before_build)', | 54 '--pre-build=>(_pre_build)', |
55 ], | 55 ], |
56 'inputs+': [ | 56 'inputs+': [ |
57 '>(_run_before_build)', | 57 '>(_pre_build)', |
58 ], | 58 ], |
59 }], | 59 }], |
60 ['">(_<(_sanitizer_type)_blacklist)"!=""', { | 60 ['">(_<(_sanitizer_type)_blacklist)"!=""', { |
61 'action+': [ | 61 'action+': [ |
62 '--sanitizer-blacklist=>(_<(_sanitizer_type)_blacklist)', | 62 '--sanitizer-blacklist=>(_<(_sanitizer_type)_blacklist)', |
63 ], | 63 ], |
64 'inputs+': [ | 64 'inputs+': [ |
65 '>(_<(_sanitizer_type)_blacklist)', | 65 '>(_<(_sanitizer_type)_blacklist)', |
66 ], | 66 ], |
67 }], | 67 }], |
68 ], | 68 ], |
69 }, | 69 }, |
70 ], | 70 ], |
71 } | 71 } |
OLD | NEW |