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 # Default value for all libraries. | 6 # Default value for all libraries. |
7 'custom_configure_flags': '', | 7 'custom_configure_flags': '', |
8 'custom_c_compiler_flags': '', | 8 'custom_c_compiler_flags': '', |
9 'custom_cxx_compiler_flags': '', | 9 'custom_cxx_compiler_flags': '', |
10 'custom_linker_flags': '', | 10 'custom_linker_flags': '', |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 ], | 109 ], |
110 'outputs': [ | 110 'outputs': [ |
111 '<(PRODUCT_DIR)/instrumented_libraries/<(_sanitizer_type)/rpaths.fix
ed.txt', | 111 '<(PRODUCT_DIR)/instrumented_libraries/<(_sanitizer_type)/rpaths.fix
ed.txt', |
112 ], | 112 ], |
113 'action': [ | 113 'action': [ |
114 '<(DEPTH)/third_party/instrumented_libraries/fix_rpaths.sh', | 114 '<(DEPTH)/third_party/instrumented_libraries/fix_rpaths.sh', |
115 '<(PRODUCT_DIR)/instrumented_libraries/<(_sanitizer_type)' | 115 '<(PRODUCT_DIR)/instrumented_libraries/<(_sanitizer_type)' |
116 ], | 116 ], |
117 }, | 117 }, |
118 ], | 118 ], |
| 119 'direct_dependent_settings': { |
| 120 'target_conditions': [ |
| 121 ['_toolset=="target"', { |
| 122 'ldflags': [ |
| 123 # Add RPATH to result binary to make it linking instrumented libra
ries ($ORIGIN means relative RPATH) |
| 124 '-Wl,-R,\$$ORIGIN/instrumented_libraries/<(_sanitizer_type)/lib/:\
$$ORIGIN/instrumented_libraries/<(_sanitizer_type)/usr/lib/x86_64-linux-gnu/', |
| 125 '-Wl,-z,origin', |
| 126 ], |
| 127 }], |
| 128 ], |
| 129 }, |
119 }, | 130 }, |
120 { | 131 { |
121 'library_name': 'freetype', | 132 'library_name': 'freetype', |
122 'dependencies=': [], | 133 'dependencies=': [], |
123 'custom_configure_flags': '', | 134 'custom_configure_flags': '', |
124 'run_before_build': 'freetype.sh', | 135 'run_before_build': 'freetype.sh', |
125 'includes': ['standard_instrumented_library_target.gypi'], | 136 'includes': ['standard_instrumented_library_target.gypi'], |
126 }, | 137 }, |
127 { | 138 { |
128 'library_name': 'libcairo2', | 139 'library_name': 'libcairo2', |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 # Build static libs (from debian/rules). | 419 # Build static libs (from debian/rules). |
409 '--enable-static', | 420 '--enable-static', |
410 '--enable-tests=no', | 421 '--enable-tests=no', |
411 ], | 422 ], |
412 'custom_linker_flags': '-Wl,--as-needed', | 423 'custom_linker_flags': '-Wl,--as-needed', |
413 'dependencies=': [], | 424 'dependencies=': [], |
414 'includes': ['standard_instrumented_library_target.gypi'], | 425 'includes': ['standard_instrumented_library_target.gypi'], |
415 }, | 426 }, |
416 ], | 427 ], |
417 } | 428 } |
OLD | NEW |