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 3491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3502 'variables': { | 3502 'variables': { |
3503 'werror%': '-Werror', | 3503 'werror%': '-Werror', |
3504 'libraries_for_target%': '', | 3504 'libraries_for_target%': '', |
3505 }, | 3505 }, |
3506 'defines': [ | 3506 'defines': [ |
3507 '_FILE_OFFSET_BITS=64', | 3507 '_FILE_OFFSET_BITS=64', |
3508 ], | 3508 ], |
3509 'cflags': [ | 3509 'cflags': [ |
3510 '<(werror)', # See note above about the werror variable. | 3510 '<(werror)', # See note above about the werror variable. |
3511 '-pthread', | 3511 '-pthread', |
3512 '-fno-exceptions', | |
3513 '-fno-strict-aliasing', # See http://crbug.com/32204 | 3512 '-fno-strict-aliasing', # See http://crbug.com/32204 |
3514 '-Wall', | 3513 '-Wall', |
3515 # TODO(evan): turn this back on once all the builds work. | 3514 # TODO(evan): turn this back on once all the builds work. |
3516 # '-Wextra', | 3515 # '-Wextra', |
3517 # Don't warn about unused function params. We use those everywhere. | 3516 # Don't warn about unused function params. We use those everywhere. |
3518 '-Wno-unused-parameter', | 3517 '-Wno-unused-parameter', |
3519 # Don't warn about the "struct foo f = {0};" initialization pattern. | 3518 # Don't warn about the "struct foo f = {0};" initialization pattern. |
3520 '-Wno-missing-field-initializers', | 3519 '-Wno-missing-field-initializers', |
3521 # Don't export any symbols (for example, to plugins we dlopen()). | 3520 # Don't export any symbols (for example, to plugins we dlopen()). |
3522 # Note: this is *required* to make some plugins work. | 3521 # Note: this is *required* to make some plugins work. |
3523 '-fvisibility=hidden', | 3522 '-fvisibility=hidden', |
3524 '-pipe', | 3523 '-pipe', |
3525 ], | 3524 ], |
3526 'cflags_cc': [ | 3525 'cflags_cc': [ |
| 3526 '-fno-exceptions', |
3527 '-fno-rtti', | 3527 '-fno-rtti', |
3528 '-fno-threadsafe-statics', | 3528 '-fno-threadsafe-statics', |
3529 # Make inline functions have hidden visiblity by default. | 3529 # Make inline functions have hidden visiblity by default. |
3530 # Surprisingly, not covered by -fvisibility=hidden. | 3530 # Surprisingly, not covered by -fvisibility=hidden. |
3531 '-fvisibility-inlines-hidden', | 3531 '-fvisibility-inlines-hidden', |
3532 # GCC turns on -Wsign-compare for C++ under -Wall, but clang doesn't, | 3532 # GCC turns on -Wsign-compare for C++ under -Wall, but clang doesn't, |
3533 # so we specify it explicitly. (llvm.org/PR10448, crbug.com/90453) | 3533 # so we specify it explicitly. (llvm.org/PR10448, crbug.com/90453) |
3534 '-Wsign-compare', | 3534 '-Wsign-compare', |
3535 ], | 3535 ], |
3536 'ldflags': [ | 3536 'ldflags': [ |
(...skipping 2247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5784 # settings in target dicts. SYMROOT is a special case, because many other | 5784 # settings in target dicts. SYMROOT is a special case, because many other |
5785 # Xcode variables depend on it, including variables such as | 5785 # Xcode variables depend on it, including variables such as |
5786 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5786 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5787 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5787 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5788 # files to appear (when present) in the UI as actual files and not red | 5788 # files to appear (when present) in the UI as actual files and not red |
5789 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5789 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5790 # and therefore SYMROOT, needs to be set at the project level. | 5790 # and therefore SYMROOT, needs to be set at the project level. |
5791 'SYMROOT': '<(DEPTH)/xcodebuild', | 5791 'SYMROOT': '<(DEPTH)/xcodebuild', |
5792 }, | 5792 }, |
5793 } | 5793 } |
OLD | NEW |