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 'variables': { | 6 'variables': { |
7 'verbose_libraries_build%': 0, | 7 'verbose_libraries_build%': 0, |
8 'instrumented_libraries_jobs%': 1, | 8 'instrumented_libraries_jobs%': 1, |
9 }, | 9 }, |
10 | 10 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 }], | 75 }], |
76 ['tsan==1', { | 76 ['tsan==1', { |
77 'package_cflags': ['-fsanitize=thread'], | 77 'package_cflags': ['-fsanitize=thread'], |
78 'package_ldflags': ['-fsanitize=thread'], | 78 'package_ldflags': ['-fsanitize=thread'], |
79 }], | 79 }], |
80 ], | 80 ], |
81 }, | 81 }, |
82 | 82 |
83 'targets': [ | 83 'targets': [ |
84 { | 84 { |
| 85 'target_name': 'prebuilt_instrumented_libraries', |
| 86 'type': 'none', |
| 87 'variables': { |
| 88 'prune_self_dependency': 1, |
| 89 # Don't add this target to the dependencies of targets with type=none. |
| 90 'link_dependency': 1, |
| 91 'conditions': [ |
| 92 ['msan==1', { |
| 93 'conditions': [ |
| 94 ['msan_track_origins==2', { |
| 95 'archive_name': 'msan-chained-origins-<(_ubuntu_release)', |
| 96 }, { |
| 97 'archive_name': 'UNSUPPORTED_CONFIGURATION' |
| 98 }], |
| 99 ]}, { |
| 100 'archive_name': 'UNSUPPORTED_CONFIGURATION' |
| 101 }], |
| 102 ], |
| 103 }, |
| 104 'actions': [ |
| 105 { |
| 106 'action_name': 'unpack_<(archive_name).tgz', |
| 107 'inputs': [ |
| 108 'binaries/<(archive_name).tgz', |
| 109 ], |
| 110 'outputs': [ |
| 111 '<(PRODUCT_DIR)/instrumented_libraries_prebuilt/<(archive_name).txt'
, |
| 112 ], |
| 113 'action': [ |
| 114 'scripts/unpack_binaries.sh', |
| 115 'binaries/<(archive_name).tgz', |
| 116 '<(PRODUCT_DIR)/instrumented_libraries_prebuilt/', |
| 117 '<(PRODUCT_DIR)/instrumented_libraries_prebuilt/<(archive_name).txt'
, |
| 118 ], |
| 119 }, |
| 120 ], |
| 121 'direct_dependent_settings': { |
| 122 'target_conditions': [ |
| 123 ['_toolset=="target"', { |
| 124 'ldflags': [ |
| 125 # Add a relative RPATH entry to Chromium binaries. This puts |
| 126 # instrumented DSOs before system-installed versions in library |
| 127 # search path. |
| 128 '-Wl,-R,\$$ORIGIN/instrumented_libraries_prebuilt/<(_sanitizer_typ
e)/<(_libdir)/', |
| 129 '-Wl,-z,origin', |
| 130 ], |
| 131 }], |
| 132 ], |
| 133 }, |
| 134 }, |
| 135 { |
85 'target_name': 'instrumented_libraries', | 136 'target_name': 'instrumented_libraries', |
86 'type': 'none', | 137 'type': 'none', |
87 'variables': { | 138 'variables': { |
88 'prune_self_dependency': 1, | 139 'prune_self_dependency': 1, |
89 # Don't add this target to the dependencies of targets with type=none. | 140 # Don't add this target to the dependencies of targets with type=none. |
90 'link_dependency': 1, | 141 'link_dependency': 1, |
91 }, | 142 }, |
92 # NOTE: Please keep install-build-deps.sh in sync with this list. | 143 # NOTE: Please keep install-build-deps.sh in sync with this list. |
93 'dependencies': [ | 144 'dependencies': [ |
94 '<(_sanitizer_type)-freetype', | 145 '<(_sanitizer_type)-freetype', |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 'dependencies': [ | 218 'dependencies': [ |
168 '<(_sanitizer_type)-brltty', | 219 '<(_sanitizer_type)-brltty', |
169 '<(_sanitizer_type)-libva1', | 220 '<(_sanitizer_type)-libva1', |
170 ], | 221 ], |
171 }] | 222 }] |
172 ], | 223 ], |
173 'direct_dependent_settings': { | 224 'direct_dependent_settings': { |
174 'target_conditions': [ | 225 'target_conditions': [ |
175 ['_toolset=="target"', { | 226 ['_toolset=="target"', { |
176 'ldflags': [ | 227 'ldflags': [ |
177 # Add RPATH to result binary to make it linking instrumented libra
ries ($ORIGIN means relative RPATH) | 228 # Add a relative RPATH entry to Chromium binaries. This puts |
| 229 # instrumented DSOs before system-installed versions in library |
| 230 # search path. |
178 '-Wl,-R,\$$ORIGIN/instrumented_libraries/<(_sanitizer_type)/<(_lib
dir)/', | 231 '-Wl,-R,\$$ORIGIN/instrumented_libraries/<(_sanitizer_type)/<(_lib
dir)/', |
179 '-Wl,-z,origin', | 232 '-Wl,-z,origin', |
180 ], | 233 ], |
181 }], | 234 }], |
182 ], | 235 ], |
183 }, | 236 }, |
184 }, | 237 }, |
185 { | 238 { |
186 'package_name': 'freetype', | 239 'package_name': 'freetype', |
187 'dependencies=': [], | 240 'dependencies=': [], |
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
795 'extra_configure_flags': [ | 848 'extra_configure_flags': [ |
796 '--disable-static', | 849 '--disable-static', |
797 # See above. | 850 # See above. |
798 '--disable-introspection', | 851 '--disable-introspection', |
799 ], | 852 ], |
800 'pre_build': 'scripts/pre-build/autoreconf.sh', | 853 'pre_build': 'scripts/pre-build/autoreconf.sh', |
801 'includes': ['standard_instrumented_package_target.gypi'], | 854 'includes': ['standard_instrumented_package_target.gypi'], |
802 }, | 855 }, |
803 ], | 856 ], |
804 } | 857 } |
OLD | NEW |