| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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: |
| OLD | NEW |