| 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 { | |
| 136 'target_name': 'instrumented_libraries', | 85 'target_name': 'instrumented_libraries', |
| 137 'type': 'none', | 86 'type': 'none', |
| 138 'variables': { | 87 'variables': { |
| 139 'prune_self_dependency': 1, | 88 'prune_self_dependency': 1, |
| 140 # Don't add this target to the dependencies of targets with type=none. | 89 # Don't add this target to the dependencies of targets with type=none. |
| 141 'link_dependency': 1, | 90 'link_dependency': 1, |
| 142 }, | 91 }, |
| 143 # NOTE: Please keep install-build-deps.sh in sync with this list. | 92 # NOTE: Please keep install-build-deps.sh in sync with this list. |
| 144 'dependencies': [ | 93 'dependencies': [ |
| 145 '<(_sanitizer_type)-freetype', | 94 '<(_sanitizer_type)-freetype', |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 'dependencies': [ | 167 'dependencies': [ |
| 219 '<(_sanitizer_type)-brltty', | 168 '<(_sanitizer_type)-brltty', |
| 220 '<(_sanitizer_type)-libva1', | 169 '<(_sanitizer_type)-libva1', |
| 221 ], | 170 ], |
| 222 }] | 171 }] |
| 223 ], | 172 ], |
| 224 'direct_dependent_settings': { | 173 'direct_dependent_settings': { |
| 225 'target_conditions': [ | 174 'target_conditions': [ |
| 226 ['_toolset=="target"', { | 175 ['_toolset=="target"', { |
| 227 'ldflags': [ | 176 'ldflags': [ |
| 228 # Add a relative RPATH entry to Chromium binaries. This puts | 177 # Add RPATH to result binary to make it linking instrumented libra
ries ($ORIGIN means relative RPATH) |
| 229 # instrumented DSOs before system-installed versions in library | |
| 230 # search path. | |
| 231 '-Wl,-R,\$$ORIGIN/instrumented_libraries/<(_sanitizer_type)/<(_lib
dir)/', | 178 '-Wl,-R,\$$ORIGIN/instrumented_libraries/<(_sanitizer_type)/<(_lib
dir)/', |
| 232 '-Wl,-z,origin', | 179 '-Wl,-z,origin', |
| 233 ], | 180 ], |
| 234 }], | 181 }], |
| 235 ], | 182 ], |
| 236 }, | 183 }, |
| 237 }, | 184 }, |
| 238 { | 185 { |
| 239 'package_name': 'freetype', | 186 'package_name': 'freetype', |
| 240 'dependencies=': [], | 187 'dependencies=': [], |
| (...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 848 'extra_configure_flags': [ | 795 'extra_configure_flags': [ |
| 849 '--disable-static', | 796 '--disable-static', |
| 850 # See above. | 797 # See above. |
| 851 '--disable-introspection', | 798 '--disable-introspection', |
| 852 ], | 799 ], |
| 853 'pre_build': 'scripts/pre-build/autoreconf.sh', | 800 'pre_build': 'scripts/pre-build/autoreconf.sh', |
| 854 'includes': ['standard_instrumented_package_target.gypi'], | 801 'includes': ['standard_instrumented_package_target.gypi'], |
| 855 }, | 802 }, |
| 856 ], | 803 ], |
| 857 } | 804 } |
| OLD | NEW |