Roll src/third_party/skia c6f3e2c:efb7e42
[chromium-blink-merge.git] / third_party / instrumented_libraries / standard_instrumented_package_target.gypi
blobac2e1c35ad06d21de0f50caa3f1a5b112912aead
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
3 # found in the LICENSE file.
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.
9   'target_name': '<(_sanitizer_type)-<(_package_name)',
10   'type': 'none',
11   'actions': [
12     {
13       'action_name': '<(_package_name)',
14       'inputs': [
15         # TODO(earthdok): reintroduce some sort of dependency
16         # See http://crbug.com/343515
17         #'download_build_install.py',
18       ],
19       'outputs': [
20         '<(PRODUCT_DIR)/instrumented_libraries/<(_sanitizer_type)/<(_package_name).txt',
21       ],
22       'action': ['./download_build_install.py',
23         '--product-directory=<(PRODUCT_DIR)',
24         '--package=<(_package_name)',
25         '--intermediate-directory=<(INTERMEDIATE_DIR)',
26         '--sanitizer-type=<(_sanitizer_type)',
27         '--extra-configure-flags=>(_extra_configure_flags)',
28         '--cflags=>(_package_cflags)',
29         '--ldflags=>(_package_ldflags)',
30         '--cc=<(_cc)',
31         '--cxx=<(_cxx)',
32         '--jobs=>(_jobs)',
33         '--build-method=>(_build_method)',
34       ],
35       'conditions': [
36         ['verbose_libraries_build==1', {
37           'action+': [
38             '--verbose',
39           ],
40         }],
41       ],
42       'target_conditions': [
43         ['">(_patch)"!=""', {
44           'action+': [
45             '--patch=>(_patch)',
46           ],
47           'inputs+': [
48             '>(_patch)',
49           ],
50         }],
51         ['">(_run_before_build)"!=""', {
52           'action+': [
53             '--run-before-build=>(_run_before_build)',
54           ],
55           'inputs+': [
56             '>(_run_before_build)',
57           ],
58         }],
59         ['">(_<(_sanitizer_type)_blacklist)"!=""', {
60           'action+': [
61             '--sanitizer-blacklist=>(_<(_sanitizer_type)_blacklist)',
62           ],
63           'inputs+': [
64             '>(_<(_sanitizer_type)_blacklist)',
65           ],
66         }],
67       ],
68     },
69   ],