Chromium Code Reviews| 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 1595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1606 ['input_speech==1', { | 1606 ['input_speech==1', { |
| 1607 'defines': ['ENABLE_INPUT_SPEECH'], | 1607 'defines': ['ENABLE_INPUT_SPEECH'], |
| 1608 }], | 1608 }], |
| 1609 ['notifications==1', { | 1609 ['notifications==1', { |
| 1610 'defines': ['ENABLE_NOTIFICATIONS'], | 1610 'defines': ['ENABLE_NOTIFICATIONS'], |
| 1611 }], | 1611 }], |
| 1612 ['enable_hidpi==1', { | 1612 ['enable_hidpi==1', { |
| 1613 'defines': ['ENABLE_HIDPI=1'], | 1613 'defines': ['ENABLE_HIDPI=1'], |
| 1614 }], | 1614 }], |
| 1615 ['fastbuild!=0', { | 1615 ['fastbuild!=0', { |
| 1616 | 1616 # Clang creates chubby debug information, which makes linking very |
| 1617 # slow. For now, don't create debug information with clang. See | |
| 1618 # http://crbug.com/70000 | |
| 1617 'conditions': [ | 1619 'conditions': [ |
| 1618 # For Windows and Mac, we don't genererate debug information. | 1620 ['clang==1', { |
| 1619 ['OS=="win" or OS=="mac"', { | 1621 'conditions': [ |
| 1620 'msvs_settings': { | 1622 ['OS=="linux"', { |
| 1621 'VCLinkerTool': { | 1623 'variables': { |
| 1622 'GenerateDebugInformation': 'false', | 1624 'debug_extra_cflags': '-g0', |
| 1623 }, | 1625 }, |
| 1624 'VCCLCompilerTool': { | 1626 }], |
| 1625 'DebugInformationFormat': '0', | 1627 # Android builds symbols on release by default, disable them. |
| 1626 } | 1628 ['OS=="android"', { |
| 1627 }, | 1629 'variables': { |
| 1628 'xcode_settings': { | 1630 'debug_extra_cflags': '-g0', |
| 1629 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO', | 1631 'release_extra_cflags': '-g0', |
| 1630 }, | 1632 }, |
| 1631 }, { # else: OS != "win", generate less debug information. | 1633 }], |
| 1632 'variables': { | 1634 ], |
| 1633 'debug_extra_cflags': '-g1', | 1635 }, { # else clang!=1 |
| 1634 }, | 1636 'conditions': [ |
| 1635 }], | 1637 # For Windows and Mac, we don't genererate debug information. |
| 1636 # Clang creates chubby debug information, which makes linking very | 1638 ['OS=="win"', { |
| 1637 # slow. For now, don't create debug information with clang. See | 1639 'msvs_settings': { |
| 1638 # http://crbug.com/70000 | 1640 'VCLinkerTool': { |
| 1639 ['(OS=="linux" or OS=="android") and clang==1', { | 1641 'GenerateDebugInformation': 'false', |
| 1640 'variables': { | 1642 }, |
| 1641 'debug_extra_cflags': '-g0', | 1643 'VCCLCompilerTool': { |
| 1642 }, | 1644 'DebugInformationFormat': '0', |
| 1643 }], | 1645 }, |
| 1644 ], # conditions for fastbuild. | 1646 }, |
| 1647 }], | |
| 1648 ['OS=="mac"', { | |
| 1649 'xcode_settings': { | |
| 1650 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO', | |
|
Nico
2013/04/24 05:23:45
Since clang is always ==1 on mac, this CL effectiv
Isaac (away)
2013/04/24 11:47:56
:-\ Glad it is getting fixed.
| |
| 1651 }, | |
| 1652 }], | |
| 1653 ['OS=="linux"', { | |
| 1654 'variables': { | |
| 1655 'debug_extra_cflags': '-g1', | |
| 1656 }, | |
| 1657 }], | |
| 1658 ['OS=="android"', { | |
| 1659 'variables': { | |
| 1660 'debug_extra_cflags': '-g1', | |
| 1661 'release_extra_cflags': '-g1', | |
| 1662 }, | |
| 1663 }], | |
| 1664 ], | |
| 1665 }], # clang!=1 | |
| 1666 ], | |
| 1645 }], # fastbuild!=0 | 1667 }], # fastbuild!=0 |
| 1646 ['dcheck_always_on!=0', { | 1668 ['dcheck_always_on!=0', { |
| 1647 'defines': ['DCHECK_ALWAYS_ON=1'], | 1669 'defines': ['DCHECK_ALWAYS_ON=1'], |
| 1648 }], # dcheck_always_on!=0 | 1670 }], # dcheck_always_on!=0 |
| 1649 ['selinux==1', { | 1671 ['selinux==1', { |
| 1650 'defines': ['CHROMIUM_SELINUX=1'], | 1672 'defines': ['CHROMIUM_SELINUX=1'], |
| 1651 }], | 1673 }], |
| 1652 ['win_use_allocator_shim==0', { | 1674 ['win_use_allocator_shim==0', { |
| 1653 'conditions': [ | 1675 'conditions': [ |
| 1654 ['OS=="win"', { | 1676 ['OS=="win"', { |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2131 ], | 2153 ], |
| 2132 }, { | 2154 }, { |
| 2133 'defines': [ | 2155 'defines': [ |
| 2134 'DYNAMIC_ANNOTATIONS_ENABLED=1', | 2156 'DYNAMIC_ANNOTATIONS_ENABLED=1', |
| 2135 'WTF_USE_DYNAMIC_ANNOTATIONS=1', | 2157 'WTF_USE_DYNAMIC_ANNOTATIONS=1', |
| 2136 ], | 2158 ], |
| 2137 }], | 2159 }], |
| 2138 ['win_use_allocator_shim==0', { | 2160 ['win_use_allocator_shim==0', { |
| 2139 'defines': ['NO_TCMALLOC'], | 2161 'defines': ['NO_TCMALLOC'], |
| 2140 }], | 2162 }], |
| 2141 ['OS=="linux"', { | 2163 ['OS=="linux" or OS=="android"', { |
| 2142 'target_conditions': [ | 2164 'target_conditions': [ |
| 2143 ['_toolset=="target"', { | 2165 ['_toolset=="target"', { |
| 2144 'cflags': [ | 2166 'cflags': [ |
| 2145 '<@(release_extra_cflags)', | 2167 '<@(release_extra_cflags)', |
| 2146 ], | 2168 ], |
| 2147 }], | 2169 }], |
| 2148 ], | 2170 ], |
| 2149 }], | 2171 }], |
| 2150 ], | 2172 ], |
| 2151 }, | 2173 }, |
| (...skipping 1515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3667 # settings in target dicts. SYMROOT is a special case, because many other | 3689 # settings in target dicts. SYMROOT is a special case, because many other |
| 3668 # Xcode variables depend on it, including variables such as | 3690 # Xcode variables depend on it, including variables such as |
| 3669 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3691 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 3670 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3692 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 3671 # files to appear (when present) in the UI as actual files and not red | 3693 # files to appear (when present) in the UI as actual files and not red |
| 3672 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3694 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 3673 # and therefore SYMROOT, needs to be set at the project level. | 3695 # and therefore SYMROOT, needs to be set at the project level. |
| 3674 'SYMROOT': '<(DEPTH)/xcodebuild', | 3696 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 3675 }, | 3697 }, |
| 3676 } | 3698 } |
| OLD | NEW |