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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 # ~/.gyp/include.gypi . | 50 # ~/.gyp/include.gypi . |
51 'toolkit_views%': 0, | 51 'toolkit_views%': 0, |
52 | 52 |
53 # Defaults to a desktop build, overridden via command line/env. | 53 # Defaults to a desktop build, overridden via command line/env. |
54 'chromeos%': 0, | 54 'chromeos%': 0, |
55 | 55 |
56 # This variable tells WebCore.gyp and JavaScriptCore.gyp whether they are | 56 # This variable tells WebCore.gyp and JavaScriptCore.gyp whether they are |
57 # are built under a chromium full build (1) or a webkit.org chromium | 57 # are built under a chromium full build (1) or a webkit.org chromium |
58 # build (0). | 58 # build (0). |
59 'inside_chromium_build%': 1, | 59 'inside_chromium_build%': 1, |
| 60 |
| 61 # Set to 1 to enable fast builds. It disabled debug info for fastest |
| 62 # compilation. |
| 63 'fastbuild%': 0, |
60 }, | 64 }, |
61 | 65 |
62 # Define branding and buildtype on the basis of their settings within the | 66 # Define branding and buildtype on the basis of their settings within the |
63 # variables sub-dict above, unless overridden. | 67 # variables sub-dict above, unless overridden. |
64 'branding%': '<(branding)', | 68 'branding%': '<(branding)', |
65 'buildtype%': '<(buildtype)', | 69 'buildtype%': '<(buildtype)', |
66 'target_arch%': '<(target_arch)', | 70 'target_arch%': '<(target_arch)', |
67 'toolkit_views%': '<(toolkit_views)', | 71 'toolkit_views%': '<(toolkit_views)', |
68 'chromeos%': '<(chromeos)', | 72 'chromeos%': '<(chromeos)', |
69 'inside_chromium_build%': '<(inside_chromium_build)', | 73 'inside_chromium_build%': '<(inside_chromium_build)', |
| 74 'fastbuild%': '<(fastbuild)', |
70 | 75 |
71 # Override chromium_mac_pch and set it to 0 to suppress the use of | 76 # Override chromium_mac_pch and set it to 0 to suppress the use of |
72 # precompiled headers on the Mac. Prefix header injection may still be | 77 # precompiled headers on the Mac. Prefix header injection may still be |
73 # used, but prefix headers will not be precompiled. This is useful when | 78 # used, but prefix headers will not be precompiled. This is useful when |
74 # using distcc to distribute a build to compile slaves that don't | 79 # using distcc to distribute a build to compile slaves that don't |
75 # share the same compiler executable as the system driving the compilation, | 80 # share the same compiler executable as the system driving the compilation, |
76 # because precompiled headers rely on pointers into a specific compiler | 81 # because precompiled headers rely on pointers into a specific compiler |
77 # executable's image. Setting this to 0 is needed to use an experimental | 82 # executable's image. Setting this to 0 is needed to use an experimental |
78 # Linux-Mac cross compiler distcc farm. | 83 # Linux-Mac cross compiler distcc farm. |
79 'chromium_mac_pch%': 1, | 84 'chromium_mac_pch%': 1, |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 }], | 258 }], |
254 ['chrome_frame_define', { | 259 ['chrome_frame_define', { |
255 'defines': ['CHROME_FRAME_BUILD'], | 260 'defines': ['CHROME_FRAME_BUILD'], |
256 }], | 261 }], |
257 ['toolkit_views==1', { | 262 ['toolkit_views==1', { |
258 'defines': ['TOOLKIT_VIEWS=1'], | 263 'defines': ['TOOLKIT_VIEWS=1'], |
259 }], | 264 }], |
260 ['chromeos==1', { | 265 ['chromeos==1', { |
261 'defines': ['OS_CHROMEOS=1'], | 266 'defines': ['OS_CHROMEOS=1'], |
262 }], | 267 }], |
| 268 ['fastbuild!=0', { |
| 269 'conditions': [ |
| 270 # Finally, for Windows, we simply turn on profiling. |
| 271 ['OS=="win"', { |
| 272 'msvs_settings': { |
| 273 'VCLinkerTool': { |
| 274 'GenerateDebugInformation': 'false', |
| 275 }, |
| 276 'VCCLCompilerTool': { |
| 277 'DebugInformationFormat': '0', |
| 278 } |
| 279 } |
| 280 }], # OS==win |
| 281 ], # conditions for fastbuild. |
| 282 }], # fastbuild!=0 |
263 ['selinux==1', { | 283 ['selinux==1', { |
264 'defines': ['CHROMIUM_SELINUX=1'], | 284 'defines': ['CHROMIUM_SELINUX=1'], |
265 }], | 285 }], |
266 ['coverage!=0', { | 286 ['coverage!=0', { |
267 'conditions': [ | 287 'conditions': [ |
268 ['OS=="mac"', { | 288 ['OS=="mac"', { |
269 'xcode_settings': { | 289 'xcode_settings': { |
270 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', # -fprofile-arcs | 290 'GCC_INSTRUMENT_PROGRAM_FLOW_ARCS': 'YES', # -fprofile-arcs |
271 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', # -ftest-coverage | 291 'GCC_GENERATE_TEST_COVERAGE_FILES': 'YES', # -ftest-coverage |
272 }, | 292 }, |
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
875 # settings in target dicts. SYMROOT is a special case, because many other | 895 # settings in target dicts. SYMROOT is a special case, because many other |
876 # Xcode variables depend on it, including variables such as | 896 # Xcode variables depend on it, including variables such as |
877 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 897 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
878 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 898 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
879 # files to appear (when present) in the UI as actual files and not red | 899 # files to appear (when present) in the UI as actual files and not red |
880 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 900 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
881 # and therefore SYMROOT, needs to be set at the project level. | 901 # and therefore SYMROOT, needs to be set at the project level. |
882 'SYMROOT': '<(DEPTH)/xcodebuild', | 902 'SYMROOT': '<(DEPTH)/xcodebuild', |
883 }, | 903 }, |
884 } | 904 } |
OLD | NEW |