OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 # IMPORTANT: | 5 # IMPORTANT: |
6 # Please don't directly include this file if you are building via gyp_chromium, | 6 # Please don't directly include this file if you are building via gyp_chromium, |
7 # since gyp_chromium is automatically forcing its inclusion. | 7 # since gyp_chromium is automatically forcing its inclusion. |
8 { | 8 { |
9 # Variables expected to be overriden on the GYP command line (-D) or by | 9 # Variables expected to be overriden on the GYP command line (-D) or by |
10 # ~/.gyp/include.gypi. | 10 # ~/.gyp/include.gypi. |
(...skipping 2143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2154 }], | 2154 }], |
2155 ['ubsan==1', { | 2155 ['ubsan==1', { |
2156 'clang%': 1, | 2156 'clang%': 1, |
2157 }], | 2157 }], |
2158 ['ubsan_vptr==1', { | 2158 ['ubsan_vptr==1', { |
2159 'clang%': 1, | 2159 'clang%': 1, |
2160 }], | 2160 }], |
2161 ['asan==1 and OS=="mac"', { | 2161 ['asan==1 and OS=="mac"', { |
2162 # TODO(glider): we do not strip ASan binaries until the dynamic ASan | 2162 # TODO(glider): we do not strip ASan binaries until the dynamic ASan |
2163 # runtime is fully adopted. See http://crbug.com/242503. | 2163 # runtime is fully adopted. See http://crbug.com/242503. |
2164 'mac_strip_release': 0, | 2164 'mac_strip_release': 1, |
2165 }], | 2165 }], |
2166 ['tsan==1', { | 2166 ['tsan==1', { |
2167 'use_custom_libcxx%': 1, | 2167 'use_custom_libcxx%': 1, |
2168 }], | 2168 }], |
2169 ['msan==1', { | 2169 ['msan==1', { |
2170 # Use a just-built, MSan-instrumented libc++ instead of the system-wide | 2170 # Use a just-built, MSan-instrumented libc++ instead of the system-wide |
2171 # libstdc++. This is required to avoid false positive reports whenever | 2171 # libstdc++. This is required to avoid false positive reports whenever |
2172 # the C++ standard library is used. | 2172 # the C++ standard library is used. |
2173 'use_custom_libcxx%': 1, | 2173 'use_custom_libcxx%': 1, |
2174 # Running the V8-generated code on an ARM simulator is a powerful hack | 2174 # Running the V8-generated code on an ARM simulator is a powerful hack |
(...skipping 2900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5075 'postbuild_name': 'Change Mach-O Flags', | 5075 'postbuild_name': 'Change Mach-O Flags', |
5076 'action': [ | 5076 'action': [ |
5077 '<(change_mach_o_flags_path)', | 5077 '<(change_mach_o_flags_path)', |
5078 '>@(change_mach_o_flags_options)', | 5078 '>@(change_mach_o_flags_options)', |
5079 ], | 5079 ], |
5080 }, | 5080 }, |
5081 ], | 5081 ], |
5082 'conditions': [ | 5082 'conditions': [ |
5083 ['asan==1', { | 5083 ['asan==1', { |
5084 'variables': { | 5084 'variables': { |
5085 'asan_saves_file': 'asan.saves', | 5085 'asan_saves_file_path': 'asan.saves', |
5086 }, | 5086 }, |
5087 'xcode_settings': { | 5087 'xcode_settings': { |
5088 'CHROMIUM_STRIP_SAVE_FILE': '<(asan_saves_file)', | 5088 'CHROMIUM_STRIP_SAVE_FILE': '<(asan_saves_file_path)', |
5089 }, | 5089 }, |
5090 }], | 5090 }], |
5091 ], | 5091 ], |
5092 'target_conditions': [ | 5092 'target_conditions': [ |
5093 ['mac_pie==1 and release_valgrind_build==0', { | 5093 ['mac_pie==1 and release_valgrind_build==0', { |
5094 # Turn on position-independence (ASLR) for executables. When | 5094 # Turn on position-independence (ASLR) for executables. When |
5095 # PIE is on for the Chrome executables, the framework will | 5095 # PIE is on for the Chrome executables, the framework will |
5096 # also be subject to ASLR. | 5096 # also be subject to ASLR. |
5097 # Don't do this when building for Valgrind, because Valgrind | 5097 # Don't do this when building for Valgrind, because Valgrind |
5098 # doesn't understand slide. TODO: Make Valgrind on Mac OS X | 5098 # doesn't understand slide. TODO: Make Valgrind on Mac OS X |
(...skipping 13 matching lines...) Expand all Loading... |
5112 # To get a real .dSYM bundle produced by dsymutil, set the | 5112 # To get a real .dSYM bundle produced by dsymutil, set the |
5113 # debug information format to dwarf-with-dsym. Since | 5113 # debug information format to dwarf-with-dsym. Since |
5114 # strip_from_xcode will not be used, set Xcode to do the | 5114 # strip_from_xcode will not be used, set Xcode to do the |
5115 # stripping as well. | 5115 # stripping as well. |
5116 'configurations': { | 5116 'configurations': { |
5117 'Release_Base': { | 5117 'Release_Base': { |
5118 'xcode_settings': { | 5118 'xcode_settings': { |
5119 'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym', | 5119 'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym', |
5120 'DEPLOYMENT_POSTPROCESSING': 'YES', | 5120 'DEPLOYMENT_POSTPROCESSING': 'YES', |
5121 'STRIP_INSTALLED_PRODUCT': 'YES', | 5121 'STRIP_INSTALLED_PRODUCT': 'YES', |
5122 'target_conditions': [ | 5122 'conditions': [ |
5123 ['_type=="shared_library" or _type=="loadable_module"',
{ | 5123 ['asan==0', { |
5124 # The Xcode default is to strip debugging symbols | 5124 'target_conditions': [ |
5125 # only (-S). Local symbols should be stripped as | 5125 ['_type=="shared_library" or _type=="loadable_module
"', { |
5126 # well, which will be handled by -x. Xcode will | 5126 # The Xcode default is to strip debugging symbols |
5127 # continue to insert -S when stripping even when | 5127 # only (-S). Local symbols should be stripped as |
5128 # additional flags are added with STRIPFLAGS. | 5128 # well, which will be handled by -x. Xcode will |
5129 'STRIPFLAGS': '-x', | 5129 # continue to insert -S when stripping even when |
5130 }], # _type=="shared_library" or _type=="loadable_modul
e" | 5130 # additional flags are added with STRIPFLAGS. |
5131 ['_type=="executable"', { | 5131 'STRIPFLAGS': '-x', |
5132 'conditions': [ | 5132 }], # _type=="shared_library" or _type=="loadable_m
odule" |
5133 ['asan==1', { | 5133 ## ['_type=="executable"', { |
5134 'STRIPFLAGS': '-s $(CHROMIUM_STRIP_SAVE_FILE)', | 5134 ## 'conditions': [ |
5135 }] | 5135 ## ['asan==1', { |
5136 ], | 5136 ## 'STRIPFLAGS': '-s $(CHROMIUM_STRIP_SAVE_FILE
)', |
5137 }], # _type=="executable" and asan==1 | 5137 ## }], |
5138 ], # target_conditions | 5138 ## ], |
| 5139 ## }], # _type=="executable" and asan==1 |
| 5140 ], # target_conditions |
| 5141 }, { |
| 5142 'STRIPFLAGS': '-S', |
| 5143 }], |
| 5144 ], |
5139 }, # xcode_settings | 5145 }, # xcode_settings |
5140 }, # configuration "Release" | 5146 }, # configuration "Release" |
5141 }, # configurations | 5147 }, # configurations |
5142 }, { # mac_real_dsym != 1 | 5148 }, { # mac_real_dsym != 1 |
5143 # To get a fast fake .dSYM bundle, use a post-build step to | 5149 # To get a fast fake .dSYM bundle, use a post-build step to |
5144 # produce the .dSYM and strip the executable. strip_from_xcode | 5150 # produce the .dSYM and strip the executable. strip_from_xcode |
5145 # only operates in the Release configuration. | 5151 # only operates in the Release configuration. |
5146 'postbuilds': [ | 5152 'postbuilds': [ |
5147 { | 5153 { |
5148 'variables': { | 5154 'variables': { |
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5912 # settings in target dicts. SYMROOT is a special case, because many other | 5918 # settings in target dicts. SYMROOT is a special case, because many other |
5913 # Xcode variables depend on it, including variables such as | 5919 # Xcode variables depend on it, including variables such as |
5914 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5920 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5915 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5921 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5916 # files to appear (when present) in the UI as actual files and not red | 5922 # files to appear (when present) in the UI as actual files and not red |
5917 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5923 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5918 # and therefore SYMROOT, needs to be set at the project level. | 5924 # and therefore SYMROOT, needs to be set at the project level. |
5919 'SYMROOT': '<(DEPTH)/xcodebuild', | 5925 'SYMROOT': '<(DEPTH)/xcodebuild', |
5920 }, | 5926 }, |
5921 } | 5927 } |
OLD | NEW |