| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 1504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1515 ], | 1515 ], |
| 1516 }]] | 1516 }]] |
| 1517 }], | 1517 }], |
| 1518 ['clang==1', { | 1518 ['clang==1', { |
| 1519 'cflags': [ | 1519 'cflags': [ |
| 1520 '-Wheader-hygiene', | 1520 '-Wheader-hygiene', |
| 1521 # Clang spots more unused functions. | 1521 # Clang spots more unused functions. |
| 1522 '-Wno-unused-function', | 1522 '-Wno-unused-function', |
| 1523 # Don't die on dtoa code that uses a char as an array index. | 1523 # Don't die on dtoa code that uses a char as an array index. |
| 1524 '-Wno-char-subscripts', | 1524 '-Wno-char-subscripts', |
| 1525 # Survive EXPECT_EQ(unnamed_enum, unsigned int) -- see | 1525 # Especially needed for gtest macros using enum values from Mac |
| 1526 # http://code.google.com/p/googletest/source/detail?r=446 . | 1526 # system headers. |
| 1527 # TODO(thakis): Use -isystem instead (http://crbug.com/58751 ) | 1527 # TODO(pkasting): In C++11 this is legal, so this should be |
| 1528 # removed when we change to that. (This is also why we don't |
| 1529 # bother fixing all these cases today.) |
| 1528 '-Wno-unnamed-type-template-args', | 1530 '-Wno-unnamed-type-template-args', |
| 1529 ], | 1531 ], |
| 1530 'cflags!': [ | 1532 'cflags!': [ |
| 1531 # Clang doesn't seem to know know this flag. | 1533 # Clang doesn't seem to know know this flag. |
| 1532 '-mfpmath=sse', | 1534 '-mfpmath=sse', |
| 1533 ], | 1535 ], |
| 1534 }], | 1536 }], |
| 1535 ['clang==1 and clang_use_chrome_plugins==1', { | 1537 ['clang==1 and clang_use_chrome_plugins==1', { |
| 1536 'cflags': [ | 1538 'cflags': [ |
| 1537 '<(clang_chrome_plugins_flags)', | 1539 '<(clang_chrome_plugins_flags)', |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1640 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'} | 1642 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'} |
| 1641 ], | 1643 ], |
| 1642 ['clang==1', { | 1644 ['clang==1', { |
| 1643 'WARNING_CFLAGS': [ | 1645 'WARNING_CFLAGS': [ |
| 1644 '-Wheader-hygiene', | 1646 '-Wheader-hygiene', |
| 1645 # Don't die on dtoa code that uses a char as an array index. | 1647 # Don't die on dtoa code that uses a char as an array index. |
| 1646 # This is required solely for base/third_party/dmg_fp/dtoa.cc. | 1648 # This is required solely for base/third_party/dmg_fp/dtoa.cc. |
| 1647 '-Wno-char-subscripts', | 1649 '-Wno-char-subscripts', |
| 1648 # Clang spots more unused functions. | 1650 # Clang spots more unused functions. |
| 1649 '-Wno-unused-function', | 1651 '-Wno-unused-function', |
| 1650 # Survive EXPECT_EQ(unnamed_enum, unsigned int) -- see | 1652 # See comments on this flag higher up in this file. |
| 1651 # http://code.google.com/p/googletest/source/detail?r=446 . | |
| 1652 # TODO(thakis): Use -isystem instead (http://crbug.com/58751 ). | |
| 1653 '-Wno-unnamed-type-template-args', | 1653 '-Wno-unnamed-type-template-args', |
| 1654 # TODO(thakis): Reenable once the one instance this warns on | 1654 # TODO(thakis): Reenable once the one instance this warns on |
| 1655 # is fixed. | 1655 # is fixed. |
| 1656 '-Wno-parentheses', | 1656 '-Wno-parentheses', |
| 1657 ], | 1657 ], |
| 1658 }], | 1658 }], |
| 1659 ['clang==1 and clang_use_chrome_plugins==1', { | 1659 ['clang==1 and clang_use_chrome_plugins==1', { |
| 1660 'OTHER_CFLAGS': [ | 1660 'OTHER_CFLAGS': [ |
| 1661 '<(clang_chrome_plugins_flags)', | 1661 '<(clang_chrome_plugins_flags)', |
| 1662 ], | 1662 ], |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1968 # settings in target dicts. SYMROOT is a special case, because many other | 1968 # settings in target dicts. SYMROOT is a special case, because many other |
| 1969 # Xcode variables depend on it, including variables such as | 1969 # Xcode variables depend on it, including variables such as |
| 1970 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 1970 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 1971 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 1971 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 1972 # files to appear (when present) in the UI as actual files and not red | 1972 # files to appear (when present) in the UI as actual files and not red |
| 1973 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 1973 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 1974 # and therefore SYMROOT, needs to be set at the project level. | 1974 # and therefore SYMROOT, needs to be set at the project level. |
| 1975 'SYMROOT': '<(DEPTH)/xcodebuild', | 1975 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 1976 }, | 1976 }, |
| 1977 } | 1977 } |
| OLD | NEW |