Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: build/common.gypi

Issue 308010: Mmm, pie (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2009 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': { 9 'variables': {
10 # .gyp files should set chromium_code to 1 if they build Chromium-specific 10 # .gyp files should set chromium_code to 1 if they build Chromium-specific
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 ], 735 ],
736 ], 736 ],
737 }, 737 },
738 'target_conditions': [ 738 'target_conditions': [
739 ['_type!="static_library"', { 739 ['_type!="static_library"', {
740 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, 740 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
741 }], 741 }],
742 ['_mac_bundle', { 742 ['_mac_bundle', {
743 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, 743 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
744 }], 744 }],
745 ['_type=="executable"', {
746 'xcode_settings': {
747 'OTHER_LDFLAGS': [
748 '-Wl,-pie', # Position-independent executable (MH_PIE)
749 ],
750 },
751 }],
745 ['_type=="executable" or _type=="shared_library"', { 752 ['_type=="executable" or _type=="shared_library"', {
746 'target_conditions': [ 753 'target_conditions': [
747 ['mac_real_dsym == 1', { 754 ['mac_real_dsym == 1', {
748 # To get a real .dSYM bundle produced by dsymutil, set the 755 # To get a real .dSYM bundle produced by dsymutil, set the
749 # debug information format to dwarf-with-dsym. Since 756 # debug information format to dwarf-with-dsym. Since
750 # strip_from_xcode will not be used, set Xcode to do the 757 # strip_from_xcode will not be used, set Xcode to do the
751 # stripping as well. 758 # stripping as well.
752 'configurations': { 759 'configurations': {
753 'Release': { 760 'Release': {
754 'xcode_settings': { 761 'xcode_settings': {
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 # and therefore SYMROOT, needs to be set at the project level. 936 # and therefore SYMROOT, needs to be set at the project level.
930 'SYMROOT': '<(DEPTH)/xcodebuild', 937 'SYMROOT': '<(DEPTH)/xcodebuild',
931 }, 938 },
932 } 939 }
933 940
934 # Local Variables: 941 # Local Variables:
935 # tab-width:2 942 # tab-width:2
936 # indent-tabs-mode:nil 943 # indent-tabs-mode:nil
937 # End: 944 # End:
938 # vim: set expandtab tabstop=2 shiftwidth=2: 945 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698