OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 1642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1653 }], | 1653 }], |
1654 ], | 1654 ], |
1655 }, | 1655 }, |
1656 'target_conditions': [ | 1656 'target_conditions': [ |
1657 ['_type!="static_library"', { | 1657 ['_type!="static_library"', { |
1658 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 1658 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
1659 }], | 1659 }], |
1660 ['_mac_bundle', { | 1660 ['_mac_bundle', { |
1661 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, | 1661 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, |
1662 }], | 1662 }], |
| 1663 ['_type=="executable"', { |
| 1664 'postbuilds': [ |
| 1665 { |
| 1666 # Arranges for data (heap) pages to be protected against |
| 1667 # code execution when running on Mac OS X 10.7 ("Lion"). |
| 1668 'variables': { |
| 1669 # Define make_heap_non_executable in a variable ending in |
| 1670 # _path so that gyp understands it's a path and performs |
| 1671 # proper relativization during dict merging. |
| 1672 'make_heap_non_executable_path': |
| 1673 'mac/make_heap_non_executable_from_xcode.sh', |
| 1674 }, |
| 1675 'postbuild_name': 'Make Heap Non-Executable', |
| 1676 'action': ['<(make_heap_non_executable_path)'], |
| 1677 }, |
| 1678 ], |
| 1679 }], |
1663 ['_type=="executable" and release_valgrind_build==0', { | 1680 ['_type=="executable" and release_valgrind_build==0', { |
1664 # Turn on position-independence (ASLR) for executables. When PIE | 1681 # Turn on position-independence (ASLR) for executables. When PIE |
1665 # is on for the Chrome executables, the framework will also be | 1682 # is on for the Chrome executables, the framework will also be |
1666 # subject to ASLR. | 1683 # subject to ASLR. |
1667 # Don't do this when building for Valgrind because Valgrind | 1684 # Don't do this when building for Valgrind because Valgrind |
1668 # doesn't understand slide. TODO: Make Valgrind on Mac OS X | 1685 # doesn't understand slide. TODO: Make Valgrind on Mac OS X |
1669 # understand slide, and get rid of the Valgrind check. | 1686 # understand slide, and get rid of the Valgrind check. |
1670 'xcode_settings': { | 1687 'xcode_settings': { |
1671 'OTHER_LDFLAGS': [ | 1688 'OTHER_LDFLAGS': [ |
1672 '-Wl,-pie', # Position-independent executable (MH_PIE) | 1689 '-Wl,-pie', # Position-independent executable (MH_PIE) |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1934 # settings in target dicts. SYMROOT is a special case, because many other | 1951 # settings in target dicts. SYMROOT is a special case, because many other |
1935 # Xcode variables depend on it, including variables such as | 1952 # Xcode variables depend on it, including variables such as |
1936 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 1953 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
1937 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 1954 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
1938 # files to appear (when present) in the UI as actual files and not red | 1955 # files to appear (when present) in the UI as actual files and not red |
1939 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 1956 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
1940 # and therefore SYMROOT, needs to be set at the project level. | 1957 # and therefore SYMROOT, needs to be set at the project level. |
1941 'SYMROOT': '<(DEPTH)/xcodebuild', | 1958 'SYMROOT': '<(DEPTH)/xcodebuild', |
1942 }, | 1959 }, |
1943 } | 1960 } |
OLD | NEW |