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 2000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2011 'clang_chrome_plugins_flags': [ | 2011 'clang_chrome_plugins_flags': [ |
2012 '<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)' | 2012 '<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)' |
2013 ], | 2013 ], |
2014 }], | 2014 }], |
2015 | 2015 |
2016 ['asan==1', { | 2016 ['asan==1', { |
2017 'clang%': 1, | 2017 'clang%': 1, |
2018 'use_allocator%': 'none', | 2018 'use_allocator%': 'none', |
2019 }], | 2019 }], |
2020 ['asan==1 and OS=="mac"', { | 2020 ['asan==1 and OS=="mac"', { |
2021 # Strip and produce the .dSYM files. | 2021 # TODO(glider): we do not strip ASan binaries until the dynamic ASan |
2022 'mac_strip_release': 1, | 2022 # runtime is fully adopted. See http://crbug.com/242503. |
| 2023 'mac_strip_release': 0, |
2023 }], | 2024 }], |
2024 ['lsan==1', { | 2025 ['lsan==1', { |
2025 'clang%': 1, | 2026 'clang%': 1, |
2026 }], | 2027 }], |
2027 ['tsan==1', { | 2028 ['tsan==1', { |
2028 'clang%': 1, | 2029 'clang%': 1, |
2029 'use_custom_libcxx%': 1, | 2030 'use_custom_libcxx%': 1, |
2030 }], | 2031 }], |
2031 ['msan==1', { | 2032 ['msan==1', { |
2032 'clang%': 1, | 2033 'clang%': 1, |
(...skipping 2649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4682 }], | 4683 }], |
4683 ], | 4684 ], |
4684 }, | 4685 }, |
4685 'postbuild_name': 'Change Mach-O Flags', | 4686 'postbuild_name': 'Change Mach-O Flags', |
4686 'action': [ | 4687 'action': [ |
4687 '<(change_mach_o_flags_path)', | 4688 '<(change_mach_o_flags_path)', |
4688 '>@(change_mach_o_flags_options)', | 4689 '>@(change_mach_o_flags_options)', |
4689 ], | 4690 ], |
4690 }, | 4691 }, |
4691 ], | 4692 ], |
| 4693 'conditions': [ |
| 4694 ['asan==1', { |
| 4695 'variables': { |
| 4696 'asan_saves_file': 'asan.saves', |
| 4697 }, |
| 4698 'xcode_settings': { |
| 4699 'CHROMIUM_STRIP_SAVE_FILE': '<(asan_saves_file)', |
| 4700 }, |
| 4701 }], |
| 4702 ], |
4692 'target_conditions': [ | 4703 'target_conditions': [ |
4693 ['mac_pie==1 and release_valgrind_build==0', { | 4704 ['mac_pie==1 and release_valgrind_build==0', { |
4694 # Turn on position-independence (ASLR) for executables. When | 4705 # Turn on position-independence (ASLR) for executables. When |
4695 # PIE is on for the Chrome executables, the framework will | 4706 # PIE is on for the Chrome executables, the framework will |
4696 # also be subject to ASLR. | 4707 # also be subject to ASLR. |
4697 # Don't do this when building for Valgrind, because Valgrind | 4708 # Don't do this when building for Valgrind, because Valgrind |
4698 # doesn't understand slide. TODO: Make Valgrind on Mac OS X | 4709 # doesn't understand slide. TODO: Make Valgrind on Mac OS X |
4699 # understand slide, and get rid of the Valgrind check. | 4710 # understand slide, and get rid of the Valgrind check. |
4700 'xcode_settings': { | 4711 'xcode_settings': { |
4701 'OTHER_LDFLAGS': [ | 4712 'OTHER_LDFLAGS': [ |
(...skipping 19 matching lines...) Expand all Loading... |
4721 'STRIP_INSTALLED_PRODUCT': 'YES', | 4732 'STRIP_INSTALLED_PRODUCT': 'YES', |
4722 'target_conditions': [ | 4733 'target_conditions': [ |
4723 ['_type=="shared_library" or _type=="loadable_module"',
{ | 4734 ['_type=="shared_library" or _type=="loadable_module"',
{ |
4724 # The Xcode default is to strip debugging symbols | 4735 # The Xcode default is to strip debugging symbols |
4725 # only (-S). Local symbols should be stripped as | 4736 # only (-S). Local symbols should be stripped as |
4726 # well, which will be handled by -x. Xcode will | 4737 # well, which will be handled by -x. Xcode will |
4727 # continue to insert -S when stripping even when | 4738 # continue to insert -S when stripping even when |
4728 # additional flags are added with STRIPFLAGS. | 4739 # additional flags are added with STRIPFLAGS. |
4729 'STRIPFLAGS': '-x', | 4740 'STRIPFLAGS': '-x', |
4730 }], # _type=="shared_library" or _type=="loadable_modul
e" | 4741 }], # _type=="shared_library" or _type=="loadable_modul
e" |
| 4742 ['_type=="executable"', { |
| 4743 'conditions': [ |
| 4744 ['asan==1', { |
| 4745 'STRIPFLAGS': '-s $(CHROMIUM_STRIP_SAVE_FILE)', |
| 4746 }] |
| 4747 ], |
| 4748 }], # _type=="executable" and asan==1 |
4731 ], # target_conditions | 4749 ], # target_conditions |
4732 }, # xcode_settings | 4750 }, # xcode_settings |
4733 }, # configuration "Release" | 4751 }, # configuration "Release" |
4734 }, # configurations | 4752 }, # configurations |
4735 }, { # mac_real_dsym != 1 | 4753 }, { # mac_real_dsym != 1 |
4736 # To get a fast fake .dSYM bundle, use a post-build step to | 4754 # To get a fast fake .dSYM bundle, use a post-build step to |
4737 # produce the .dSYM and strip the executable. strip_from_xcode | 4755 # produce the .dSYM and strip the executable. strip_from_xcode |
4738 # only operates in the Release configuration. | 4756 # only operates in the Release configuration. |
4739 'postbuilds': [ | 4757 'postbuilds': [ |
4740 { | 4758 { |
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5361 # settings in target dicts. SYMROOT is a special case, because many other | 5379 # settings in target dicts. SYMROOT is a special case, because many other |
5362 # Xcode variables depend on it, including variables such as | 5380 # Xcode variables depend on it, including variables such as |
5363 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5381 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5364 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5382 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5365 # files to appear (when present) in the UI as actual files and not red | 5383 # files to appear (when present) in the UI as actual files and not red |
5366 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5384 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5367 # and therefore SYMROOT, needs to be set at the project level. | 5385 # and therefore SYMROOT, needs to be set at the project level. |
5368 'SYMROOT': '<(DEPTH)/xcodebuild', | 5386 'SYMROOT': '<(DEPTH)/xcodebuild', |
5369 }, | 5387 }, |
5370 } | 5388 } |
OLD | NEW |