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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
179 'google_tv%': '<(google_tv)', | 179 'google_tv%': '<(google_tv)', |
180 'inside_chromium_build%': '<(inside_chromium_build)', | 180 'inside_chromium_build%': '<(inside_chromium_build)', |
181 'enable_app_list%': '<(enable_app_list)', | 181 'enable_app_list%': '<(enable_app_list)', |
182 'enable_message_center%': '<(enable_message_center)', | 182 'enable_message_center%': '<(enable_message_center)', |
183 'use_default_render_theme%': '<(use_default_render_theme)', | 183 'use_default_render_theme%': '<(use_default_render_theme)', |
184 'buildtype%': '<(buildtype)', | 184 'buildtype%': '<(buildtype)', |
185 | 185 |
186 # Override branding to select the desired branding flavor. | 186 # Override branding to select the desired branding flavor. |
187 'branding%': 'Chromium', | 187 'branding%': 'Chromium', |
188 | 188 |
189 # Set to 1 to enable fast builds. It disables debug info for fastest | 189 # Set to 1 to enable fast builds. Set to 2 for even faster builds |
190 # compilation. | 190 # (it disables debug info for fastest compilation - only for use |
191 # on compile-only bots). | |
191 'fastbuild%': 0, | 192 'fastbuild%': 0, |
192 | 193 |
193 # Set to 1 to enable dcheck in release without having to use the flag. | 194 # Set to 1 to enable dcheck in release without having to use the flag. |
194 'dcheck_always_on%': 0, | 195 'dcheck_always_on%': 0, |
195 | 196 |
196 # Disable file manager component extension by default. | 197 # Disable file manager component extension by default. |
197 'file_manager_extension%': 0, | 198 'file_manager_extension%': 0, |
198 | 199 |
199 # Disable image loader component extension by default. | 200 # Disable image loader component extension by default. |
200 'image_loader_extension%': 0, | 201 'image_loader_extension%': 0, |
(...skipping 1589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1790 ['input_speech==1', { | 1791 ['input_speech==1', { |
1791 'defines': ['ENABLE_INPUT_SPEECH'], | 1792 'defines': ['ENABLE_INPUT_SPEECH'], |
1792 }], | 1793 }], |
1793 ['notifications==1', { | 1794 ['notifications==1', { |
1794 'defines': ['ENABLE_NOTIFICATIONS'], | 1795 'defines': ['ENABLE_NOTIFICATIONS'], |
1795 }], | 1796 }], |
1796 ['enable_hidpi==1', { | 1797 ['enable_hidpi==1', { |
1797 'defines': ['ENABLE_HIDPI=1'], | 1798 'defines': ['ENABLE_HIDPI=1'], |
1798 }], | 1799 }], |
1799 ['fastbuild!=0', { | 1800 ['fastbuild!=0', { |
1800 # Clang creates chubby debug information, which makes linking very | 1801 # Clang creates chubby debug information, which makes linking very |
M-A Ruel
2013/04/02 15:55:54
Move this comment inside the clang==1 condition. I
| |
1801 # slow. For now, don't create debug information with clang. See | 1802 # slow. For now, don't create debug information with clang. See |
1802 # http://crbug.com/70000 | 1803 # http://crbug.com/70000 |
1803 'conditions': [ | 1804 'conditions': [ |
1804 ['clang==1', { | 1805 ['clang==1', { |
1805 'conditions': [ | 1806 'conditions': [ |
1806 ['OS=="linux"', { | 1807 ['OS=="linux"', { |
1807 'variables': { | 1808 'variables': { |
1808 'debug_extra_cflags': '-g0', | 1809 'debug_extra_cflags': '-g0', |
1809 }, | 1810 }, |
1810 }], | 1811 }], |
1811 # Android builds symbols on release by default, disable them. | 1812 # Android builds symbols on release by default, disable them. |
1812 ['OS=="android"', { | 1813 ['OS=="android"', { |
1813 'variables': { | 1814 'variables': { |
1814 'debug_extra_cflags': '-g0', | 1815 'debug_extra_cflags': '-g0', |
1815 'release_extra_cflags': '-g0', | 1816 'release_extra_cflags': '-g0', |
1816 }, | 1817 }, |
1817 }], | 1818 }], |
1818 ], | 1819 ], |
1819 }, { # else clang!=1 | 1820 }, { # else clang!=1 |
1820 'conditions': [ | 1821 'conditions': [ |
1821 # For Windows and Mac, we don't genererate debug information. | 1822 # For Windows and Mac, we don't genererate debug information. |
M-A Ruel
2013/04/02 15:55:54
The comments wasn't exact, please update.
| |
1822 ['OS=="win"', { | 1823 ['OS=="win" and fastbuild==2', { |
1824 # Completely disable debug information. | |
1825 'msvs_settings': { | |
1826 'VCLinkerTool': { | |
1827 'GenerateDebugInformation': 'false', | |
1828 }, | |
1829 'VCCLCompilerTool': { | |
1830 'DebugInformationFormat': '0', | |
1831 }, | |
1832 }, | |
1833 }], | |
1834 ['OS=="win" and fastbuild==1', { | |
1823 'msvs_settings': { | 1835 'msvs_settings': { |
1824 'VCLinkerTool': { | 1836 'VCLinkerTool': { |
1825 # This tells the linker to generate .pdbs, so that | 1837 # This tells the linker to generate .pdbs, so that |
1826 # we can get meaningful stack traces. | 1838 # we can get meaningful stack traces. |
1827 'GenerateDebugInformation': 'true', | 1839 'GenerateDebugInformation': 'true', |
1828 }, | 1840 }, |
1829 'VCCLCompilerTool': { | 1841 'VCCLCompilerTool': { |
1830 # No debug info to be generated by compiler. | 1842 # No debug info to be generated by compiler. |
1831 'DebugInformationFormat': '0', | 1843 'DebugInformationFormat': '0', |
1832 }, | 1844 }, |
1833 }, | 1845 }, |
1834 }], | 1846 }], |
1835 ['OS=="mac"', { | 1847 ['OS=="mac"', { |
1836 'xcode_settings': { | 1848 'xcode_settings': { |
1837 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO', | 1849 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO', |
1838 }, | 1850 }, |
1839 }], | 1851 }], |
1840 ['OS=="linux"', { | 1852 ['OS=="linux"', { |
1841 'variables': { | 1853 'variables': { |
1842 'debug_extra_cflags': '-g1', | 1854 'debug_extra_cflags': '-g1', |
M-A Ruel
2013/04/02 15:55:54
These should use -g0 with fastbuild==2.
| |
1843 }, | 1855 }, |
1844 }], | 1856 }], |
1845 ['OS=="android"', { | 1857 ['OS=="android"', { |
1846 'variables': { | 1858 'variables': { |
1847 'debug_extra_cflags': '-g1', | 1859 'debug_extra_cflags': '-g1', |
M-A Ruel
2013/04/02 15:55:54
And these
| |
1848 'release_extra_cflags': '-g1', | 1860 'release_extra_cflags': '-g1', |
1849 }, | 1861 }, |
1850 }], | 1862 }], |
1851 ], | 1863 ], |
1852 }], # clang!=1 | 1864 }], # clang!=1 |
1853 ], | 1865 ], |
1854 }], # fastbuild!=0 | 1866 }], # fastbuild!=0 |
1855 ['dcheck_always_on!=0', { | 1867 ['dcheck_always_on!=0', { |
1856 'defines': ['DCHECK_ALWAYS_ON=1'], | 1868 'defines': ['DCHECK_ALWAYS_ON=1'], |
1857 }], # dcheck_always_on!=0 | 1869 }], # dcheck_always_on!=0 |
(...skipping 2315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4173 # settings in target dicts. SYMROOT is a special case, because many other | 4185 # settings in target dicts. SYMROOT is a special case, because many other |
4174 # Xcode variables depend on it, including variables such as | 4186 # Xcode variables depend on it, including variables such as |
4175 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4187 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4176 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4188 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4177 # files to appear (when present) in the UI as actual files and not red | 4189 # files to appear (when present) in the UI as actual files and not red |
4178 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4190 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4179 # and therefore SYMROOT, needs to be set at the project level. | 4191 # and therefore SYMROOT, needs to be set at the project level. |
4180 'SYMROOT': '<(DEPTH)/xcodebuild', | 4192 'SYMROOT': '<(DEPTH)/xcodebuild', |
4181 }, | 4193 }, |
4182 } | 4194 } |
OLD | NEW |