| OLD | NEW |
| 1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 | 263 |
| 264 # Set this to true to enable SELinux support. | 264 # Set this to true to enable SELinux support. |
| 265 'selinux%': 0, | 265 'selinux%': 0, |
| 266 | 266 |
| 267 # Set this to true when building with Clang. | 267 # Set this to true when building with Clang. |
| 268 # See http://code.google.com/p/chromium/wiki/Clang for details. | 268 # See http://code.google.com/p/chromium/wiki/Clang for details. |
| 269 # TODO: eventually clang should behave identically to gcc, and this | 269 # TODO: eventually clang should behave identically to gcc, and this |
| 270 # won't be necessary. | 270 # won't be necessary. |
| 271 'clang%': 0, | 271 'clang%': 0, |
| 272 | 272 |
| 273 # These two variables can be set in GYP_DEFINES while running |
| 274 # |gclient runhooks| to let clang run a plugin in every compilation. |
| 275 # Only has an effect if 'clang=1' is in GYP_DEFINES as well. |
| 276 # Example: |
| 277 # GYP_DEFINES='clang=1 clang_load=/abs/path/to/libPrintFunctionNames.dyl
ib clang_plugin=print-fns' gclient runhooks |
| 278 |
| 279 'clang_load%': '', |
| 280 'clang_add_plugin%': '', |
| 281 |
| 273 # Override whether we should use Breakpad on Linux. I.e. for Chrome bot. | 282 # Override whether we should use Breakpad on Linux. I.e. for Chrome bot. |
| 274 'linux_breakpad%': 0, | 283 'linux_breakpad%': 0, |
| 275 # And if we want to dump symbols for Breakpad-enabled builds. | 284 # And if we want to dump symbols for Breakpad-enabled builds. |
| 276 'linux_dump_symbols%': 0, | 285 'linux_dump_symbols%': 0, |
| 277 # And if we want to strip the binary after dumping symbols. | 286 # And if we want to strip the binary after dumping symbols. |
| 278 'linux_strip_binary%': 0, | 287 'linux_strip_binary%': 0, |
| 279 # Strip the test binaries needed for Linux reliability tests. | 288 # Strip the test binaries needed for Linux reliability tests. |
| 280 'linux_strip_reliability_tests%': 0, | 289 'linux_strip_reliability_tests%': 0, |
| 281 | 290 |
| 282 # Enable TCMalloc. | 291 # Enable TCMalloc. |
| (...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1155 # Survive EXPECT_EQ(unnamed_enum, unsigned int) -- see | 1164 # Survive EXPECT_EQ(unnamed_enum, unsigned int) -- see |
| 1156 # http://code.google.com/p/googletest/source/detail?r=446 . | 1165 # http://code.google.com/p/googletest/source/detail?r=446 . |
| 1157 # TODO(thakis): Use -isystem instead (http://crbug.com/58751 ). | 1166 # TODO(thakis): Use -isystem instead (http://crbug.com/58751 ). |
| 1158 '-Wno-unnamed-type-template-args', | 1167 '-Wno-unnamed-type-template-args', |
| 1159 ], | 1168 ], |
| 1160 'cflags!': [ | 1169 'cflags!': [ |
| 1161 # Clang doesn't seem to know know this flag. | 1170 # Clang doesn't seem to know know this flag. |
| 1162 '-mfpmath=sse', | 1171 '-mfpmath=sse', |
| 1163 ], | 1172 ], |
| 1164 }], | 1173 }], |
| 1174 ['clang==1 and clang_load!="" and clang_add_plugin!=""', { |
| 1175 'cflags': [ |
| 1176 '-Xclang', '-load', '-Xclang', '<(clang_load)', |
| 1177 '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)', |
| 1178 ], |
| 1179 }], |
| 1165 ['no_strict_aliasing==1', { | 1180 ['no_strict_aliasing==1', { |
| 1166 'cflags': [ | 1181 'cflags': [ |
| 1167 '-fno-strict-aliasing', | 1182 '-fno-strict-aliasing', |
| 1168 ], | 1183 ], |
| 1169 }], | 1184 }], |
| 1170 ['linux_breakpad==1', { | 1185 ['linux_breakpad==1', { |
| 1171 'cflags': [ '-g' ], | 1186 'cflags': [ '-g' ], |
| 1172 'defines': ['USE_LINUX_BREAKPAD'], | 1187 'defines': ['USE_LINUX_BREAKPAD'], |
| 1173 }], | 1188 }], |
| 1174 ['library=="shared_library"', { | 1189 ['library=="shared_library"', { |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1267 # This is required solely for base/third_party/dmg_fp/dtoa.cc. | 1282 # This is required solely for base/third_party/dmg_fp/dtoa.cc. |
| 1268 '-Wno-char-subscripts', | 1283 '-Wno-char-subscripts', |
| 1269 # Clang spots more unused functions. | 1284 # Clang spots more unused functions. |
| 1270 '-Wno-unused-function', | 1285 '-Wno-unused-function', |
| 1271 # Survive EXPECT_EQ(unnamed_enum, unsigned int) -- see | 1286 # Survive EXPECT_EQ(unnamed_enum, unsigned int) -- see |
| 1272 # http://code.google.com/p/googletest/source/detail?r=446 . | 1287 # http://code.google.com/p/googletest/source/detail?r=446 . |
| 1273 # TODO(thakis): Use -isystem instead (http://crbug.com/58751 ). | 1288 # TODO(thakis): Use -isystem instead (http://crbug.com/58751 ). |
| 1274 '-Wno-unnamed-type-template-args', | 1289 '-Wno-unnamed-type-template-args', |
| 1275 ], | 1290 ], |
| 1276 }], | 1291 }], |
| 1292 ['clang==1 and clang_load!="" and clang_add_plugin!=""', { |
| 1293 'OTHER_CFLAGS': [ |
| 1294 '-Xclang', '-load', '-Xclang', '<(clang_load)', |
| 1295 '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)', |
| 1296 ], |
| 1297 }], |
| 1277 ], | 1298 ], |
| 1278 }, | 1299 }, |
| 1279 'target_conditions': [ | 1300 'target_conditions': [ |
| 1280 ['_type!="static_library"', { | 1301 ['_type!="static_library"', { |
| 1281 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 1302 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
| 1282 }], | 1303 }], |
| 1283 ['_mac_bundle', { | 1304 ['_mac_bundle', { |
| 1284 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, | 1305 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, |
| 1285 }], | 1306 }], |
| 1286 ['(_type=="executable" or _type=="shared_library" or \ | 1307 ['(_type=="executable" or _type=="shared_library" or \ |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1516 # and therefore SYMROOT, needs to be set at the project level. | 1537 # and therefore SYMROOT, needs to be set at the project level. |
| 1517 'SYMROOT': '<(DEPTH)/xcodebuild', | 1538 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 1518 }, | 1539 }, |
| 1519 } | 1540 } |
| 1520 | 1541 |
| 1521 # Local Variables: | 1542 # Local Variables: |
| 1522 # tab-width:2 | 1543 # tab-width:2 |
| 1523 # indent-tabs-mode:nil | 1544 # indent-tabs-mode:nil |
| 1524 # End: | 1545 # End: |
| 1525 # vim: set expandtab tabstop=2 shiftwidth=2: | 1546 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |