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 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 # .gyp files should set chromium_code to 1 if they build Chromium-specific | 7 # .gyp files should set chromium_code to 1 if they build Chromium-specific |
| 8 # code, as opposed to external code. This variable is used to control | 8 # code, as opposed to external code. This variable is used to control |
| 9 # such things as the set of warnings to enable, and whether warnings are | 9 # such things as the set of warnings to enable, and whether warnings are |
| 10 # treated as errors. | 10 # treated as errors. |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 93 # or you can add the following line (without the #) to | 93 # or you can add the following line (without the #) to |
| 94 # ~/.gyp/include.gypi {'variables': {'library': 'shared_library'}} | 94 # ~/.gyp/include.gypi {'variables': {'library': 'shared_library'}} |
| 95 # to compile as shared by default | 95 # to compile as shared by default |
| 96 'library%': 'static_library', | 96 'library%': 'static_library', |
| 97 }, | 97 }, |
| 98 'nacl_standalone%': '<(nacl_standalone)', | 98 'nacl_standalone%': '<(nacl_standalone)', |
| 99 # Define branding and buildtype on the basis of their settings within the | 99 # Define branding and buildtype on the basis of their settings within the |
| 100 # variables sub-dict above, unless overridden. | 100 # variables sub-dict above, unless overridden. |
| 101 'branding%': '<(branding)', | 101 'branding%': '<(branding)', |
| 102 'buildtype%': '<(buildtype)', | 102 'buildtype%': '<(buildtype)', |
| 103 | |
| 104 # Enable -Werror by default, but put it in a variable so it can | |
| 105 # be disabled (e.g. in ~/.gyp/include.gypi). | |
| 106 'werror%': '-Werror', | |
| 107 | |
|
Sam Clegg
2012/11/15 19:21:05
Moving werror out of linux only block as it is now
| |
| 103 # Compute the architecture that we're building for. Default to the | 108 # Compute the architecture that we're building for. Default to the |
| 104 # architecture that we're building on. | 109 # architecture that we're building on. |
| 105 'conditions': [ | 110 'conditions': [ |
| 106 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { | 111 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
| 107 # This handles the Linux platforms we generally deal with. Anything | 112 # This handles the Linux platforms we generally deal with. Anything |
| 108 # else gets passed through, which probably won't work very well; such | 113 # else gets passed through, which probably won't work very well; such |
| 109 # hosts should pass an explicit target_arch to gyp. | 114 # hosts should pass an explicit target_arch to gyp. |
| 110 # | 115 # |
| 111 # NOTE: currently only nacl is generating gyp files on an arm board. | 116 # NOTE: currently only nacl is generating gyp files on an arm board. |
| 112 # The arm.* -> arm substitution in chrome's common.gypi isn't | 117 # The arm.* -> arm substitution in chrome's common.gypi isn't |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 263 'cflags!': [ | 268 'cflags!': [ |
| 264 # Clang doesn't seem to know know this flag. | 269 # Clang doesn't seem to know know this flag. |
| 265 '-mfpmath=sse', | 270 '-mfpmath=sse', |
| 266 ], | 271 ], |
| 267 }], | 272 }], |
| 268 ], | 273 ], |
| 269 }, | 274 }, |
| 270 'conditions': [ | 275 'conditions': [ |
| 271 ['OS=="linux"', { | 276 ['OS=="linux"', { |
| 272 'target_defaults': { | 277 'target_defaults': { |
| 273 # Enable -Werror by default, but put it in a variable so it can | |
| 274 # be disabled in ~/.gyp/include.gypi on the valgrind builders. | |
| 275 'variables': { | 278 'variables': { |
| 279 # Enable -Werror by default, but put it in a variable so it can | |
| 280 # be disabled (e.g. in ~/.gyp/include.gypi). | |
| 276 'werror%': '-Werror', | 281 'werror%': '-Werror', |
| 277 }, | 282 }, |
| 278 'cflags': [ | 283 'cflags': [ |
| 279 '<(werror)', # See note above about the werror variable. | 284 '<(werror)', # See note above about the werror variable. |
| 280 '-pthread', | 285 '-pthread', |
| 281 '-fno-exceptions', | 286 '-fno-exceptions', |
| 282 '-Wall', # TODO(bradnelson): why does this disappear?!? | 287 '-Wall', # TODO(bradnelson): why does this disappear?!? |
| 283 ], | 288 ], |
| 284 'conditions': [ | 289 'conditions': [ |
| 285 ['nacl_standalone==1 and OS=="linux"', { | 290 ['nacl_standalone==1 and OS=="linux"', { |
| (...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 852 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 857 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 853 # files to appear (when present) in the UI as actual files and not red | 858 # files to appear (when present) in the UI as actual files and not red |
| 854 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 859 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 855 # and therefore SYMROOT, needs to be set at the project level. | 860 # and therefore SYMROOT, needs to be set at the project level. |
| 856 'SYMROOT': '<(DEPTH)/xcodebuild', | 861 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 857 }, | 862 }, |
| 858 'includes': [ | 863 'includes': [ |
| 859 'untrusted.gypi', | 864 'untrusted.gypi', |
| 860 ], | 865 ], |
| 861 } | 866 } |
| OLD | NEW |