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 1988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1999 'clang_chrome_plugins_flags': [ | 1999 'clang_chrome_plugins_flags': [ |
2000 '<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)' | 2000 '<!@(<(DEPTH)/tools/clang/scripts/plugin_flags.sh)' |
2001 ], | 2001 ], |
2002 }], | 2002 }], |
2003 | 2003 |
2004 ['asan==1', { | 2004 ['asan==1', { |
2005 'clang%': 1, | 2005 'clang%': 1, |
2006 'use_allocator%': 'none', | 2006 'use_allocator%': 'none', |
2007 }], | 2007 }], |
2008 ['asan==1 and OS=="mac"', { | 2008 ['asan==1 and OS=="mac"', { |
2009 # TODO(glider): we do not strip ASan binaries until the dynamic ASan | 2009 'mac_strip_release': 1, |
Mark Mentovai
2014/05/27 03:33:22
Current behavior for mac_strip_release seems to be
Nico
2014/05/27 15:37:23
(I to found this confusing; maybe add a comment ex
| |
2010 # runtime is fully adopted. See http://crbug.com/242503. | |
2011 'mac_strip_release': 0, | |
2012 }], | 2010 }], |
2013 ['lsan==1', { | 2011 ['lsan==1', { |
2014 'clang%': 1, | 2012 'clang%': 1, |
2015 }], | 2013 }], |
2016 ['tsan==1', { | 2014 ['tsan==1', { |
2017 'clang%': 1, | 2015 'clang%': 1, |
2018 'use_custom_libcxx%': 1, | 2016 'use_custom_libcxx%': 1, |
2019 }], | 2017 }], |
2020 ['msan==1', { | 2018 ['msan==1', { |
2021 'clang%': 1, | 2019 'clang%': 1, |
(...skipping 2647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4669 }], | 4667 }], |
4670 ], | 4668 ], |
4671 }, | 4669 }, |
4672 'postbuild_name': 'Change Mach-O Flags', | 4670 'postbuild_name': 'Change Mach-O Flags', |
4673 'action': [ | 4671 'action': [ |
4674 '<(change_mach_o_flags_path)', | 4672 '<(change_mach_o_flags_path)', |
4675 '>@(change_mach_o_flags_options)', | 4673 '>@(change_mach_o_flags_options)', |
4676 ], | 4674 ], |
4677 }, | 4675 }, |
4678 ], | 4676 ], |
4679 'conditions': [ | |
4680 ['asan==1', { | |
4681 'variables': { | |
4682 'asan_saves_file': 'asan.saves', | |
4683 }, | |
4684 'xcode_settings': { | |
4685 'CHROMIUM_STRIP_SAVE_FILE': '<(asan_saves_file)', | |
4686 }, | |
4687 }], | |
4688 ], | |
4689 'target_conditions': [ | 4677 'target_conditions': [ |
4690 ['mac_pie==1 and release_valgrind_build==0', { | 4678 ['mac_pie==1 and release_valgrind_build==0', { |
4691 # Turn on position-independence (ASLR) for executables. When | 4679 # Turn on position-independence (ASLR) for executables. When |
4692 # PIE is on for the Chrome executables, the framework will | 4680 # PIE is on for the Chrome executables, the framework will |
4693 # also be subject to ASLR. | 4681 # also be subject to ASLR. |
4694 # Don't do this when building for Valgrind, because Valgrind | 4682 # Don't do this when building for Valgrind, because Valgrind |
4695 # doesn't understand slide. TODO: Make Valgrind on Mac OS X | 4683 # doesn't understand slide. TODO: Make Valgrind on Mac OS X |
4696 # understand slide, and get rid of the Valgrind check. | 4684 # understand slide, and get rid of the Valgrind check. |
4697 'xcode_settings': { | 4685 'xcode_settings': { |
4698 'OTHER_LDFLAGS': [ | 4686 'OTHER_LDFLAGS': [ |
(...skipping 19 matching lines...) Expand all Loading... | |
4718 'STRIP_INSTALLED_PRODUCT': 'YES', | 4706 'STRIP_INSTALLED_PRODUCT': 'YES', |
4719 'target_conditions': [ | 4707 'target_conditions': [ |
4720 ['_type=="shared_library" or _type=="loadable_module"', { | 4708 ['_type=="shared_library" or _type=="loadable_module"', { |
4721 # The Xcode default is to strip debugging symbols | 4709 # The Xcode default is to strip debugging symbols |
4722 # only (-S). Local symbols should be stripped as | 4710 # only (-S). Local symbols should be stripped as |
4723 # well, which will be handled by -x. Xcode will | 4711 # well, which will be handled by -x. Xcode will |
4724 # continue to insert -S when stripping even when | 4712 # continue to insert -S when stripping even when |
4725 # additional flags are added with STRIPFLAGS. | 4713 # additional flags are added with STRIPFLAGS. |
4726 'STRIPFLAGS': '-x', | 4714 'STRIPFLAGS': '-x', |
4727 }], # _type=="shared_library" or _type=="loadable_modul e" | 4715 }], # _type=="shared_library" or _type=="loadable_modul e" |
4728 ['_type=="executable"', { | |
4729 'conditions': [ | |
4730 ['asan==1', { | |
4731 'STRIPFLAGS': '-s $(CHROMIUM_STRIP_SAVE_FILE)', | |
4732 }] | |
4733 ], | |
4734 }], # _type=="executable" and asan==1 | |
4735 ], # target_conditions | 4716 ], # target_conditions |
4736 }, # xcode_settings | 4717 }, # xcode_settings |
4737 }, # configuration "Release" | 4718 }, # configuration "Release" |
4738 }, # configurations | 4719 }, # configurations |
4739 }, { # mac_real_dsym != 1 | 4720 }, { # mac_real_dsym != 1 |
4740 # To get a fast fake .dSYM bundle, use a post-build step to | 4721 # To get a fast fake .dSYM bundle, use a post-build step to |
4741 # produce the .dSYM and strip the executable. strip_from_xcode | 4722 # produce the .dSYM and strip the executable. strip_from_xcode |
4742 # only operates in the Release configuration. | 4723 # only operates in the Release configuration. |
4743 'postbuilds': [ | 4724 'postbuilds': [ |
4744 { | 4725 { |
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5365 # settings in target dicts. SYMROOT is a special case, because many other | 5346 # settings in target dicts. SYMROOT is a special case, because many other |
5366 # Xcode variables depend on it, including variables such as | 5347 # Xcode variables depend on it, including variables such as |
5367 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5348 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5368 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5349 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5369 # files to appear (when present) in the UI as actual files and not red | 5350 # files to appear (when present) in the UI as actual files and not red |
5370 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5351 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5371 # and therefore SYMROOT, needs to be set at the project level. | 5352 # and therefore SYMROOT, needs to be set at the project level. |
5372 'SYMROOT': '<(DEPTH)/xcodebuild', | 5353 'SYMROOT': '<(DEPTH)/xcodebuild', |
5373 }, | 5354 }, |
5374 } | 5355 } |
OLD | NEW |