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 'clang_load%': '', | |
Evan Martin
2011/01/28 01:04:36
Can you add docs to these?
| |
274 'clang_add_plugin%': '', | |
275 | |
273 # Override whether we should use Breakpad on Linux. I.e. for Chrome bot. | 276 # Override whether we should use Breakpad on Linux. I.e. for Chrome bot. |
274 'linux_breakpad%': 0, | 277 'linux_breakpad%': 0, |
275 # And if we want to dump symbols for Breakpad-enabled builds. | 278 # And if we want to dump symbols for Breakpad-enabled builds. |
276 'linux_dump_symbols%': 0, | 279 'linux_dump_symbols%': 0, |
277 # And if we want to strip the binary after dumping symbols. | 280 # And if we want to strip the binary after dumping symbols. |
278 'linux_strip_binary%': 0, | 281 'linux_strip_binary%': 0, |
279 # Strip the test binaries needed for Linux reliability tests. | 282 # Strip the test binaries needed for Linux reliability tests. |
280 'linux_strip_reliability_tests%': 0, | 283 'linux_strip_reliability_tests%': 0, |
281 | 284 |
282 # Enable TCMalloc. | 285 # Enable TCMalloc. |
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1155 # Survive EXPECT_EQ(unnamed_enum, unsigned int) -- see | 1158 # Survive EXPECT_EQ(unnamed_enum, unsigned int) -- see |
1156 # http://code.google.com/p/googletest/source/detail?r=446 . | 1159 # http://code.google.com/p/googletest/source/detail?r=446 . |
1157 # TODO(thakis): Use -isystem instead (http://crbug.com/58751 ). | 1160 # TODO(thakis): Use -isystem instead (http://crbug.com/58751 ). |
1158 '-Wno-unnamed-type-template-args', | 1161 '-Wno-unnamed-type-template-args', |
1159 ], | 1162 ], |
1160 'cflags!': [ | 1163 'cflags!': [ |
1161 # Clang doesn't seem to know know this flag. | 1164 # Clang doesn't seem to know know this flag. |
1162 '-mfpmath=sse', | 1165 '-mfpmath=sse', |
1163 ], | 1166 ], |
1164 }], | 1167 }], |
1168 ['clang==1 and clang_load!="" and clang_add_plugin!=""', { | |
1169 'cflags': [ | |
1170 '-Xclang', '-load', '-Xclang', '<(clang_load)', | |
1171 '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)', | |
1172 ], | |
1173 }], | |
1165 ['no_strict_aliasing==1', { | 1174 ['no_strict_aliasing==1', { |
1166 'cflags': [ | 1175 'cflags': [ |
1167 '-fno-strict-aliasing', | 1176 '-fno-strict-aliasing', |
1168 ], | 1177 ], |
1169 }], | 1178 }], |
1170 ['linux_breakpad==1', { | 1179 ['linux_breakpad==1', { |
1171 'cflags': [ '-g' ], | 1180 'cflags': [ '-g' ], |
1172 'defines': ['USE_LINUX_BREAKPAD'], | 1181 'defines': ['USE_LINUX_BREAKPAD'], |
1173 }], | 1182 }], |
1174 ['library=="shared_library"', { | 1183 ['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. | 1276 # This is required solely for base/third_party/dmg_fp/dtoa.cc. |
1268 '-Wno-char-subscripts', | 1277 '-Wno-char-subscripts', |
1269 # Clang spots more unused functions. | 1278 # Clang spots more unused functions. |
1270 '-Wno-unused-function', | 1279 '-Wno-unused-function', |
1271 # Survive EXPECT_EQ(unnamed_enum, unsigned int) -- see | 1280 # Survive EXPECT_EQ(unnamed_enum, unsigned int) -- see |
1272 # http://code.google.com/p/googletest/source/detail?r=446 . | 1281 # http://code.google.com/p/googletest/source/detail?r=446 . |
1273 # TODO(thakis): Use -isystem instead (http://crbug.com/58751 ). | 1282 # TODO(thakis): Use -isystem instead (http://crbug.com/58751 ). |
1274 '-Wno-unnamed-type-template-args', | 1283 '-Wno-unnamed-type-template-args', |
1275 ], | 1284 ], |
1276 }], | 1285 }], |
1286 ['clang==1 and clang_load!="" and clang_add_plugin!=""', { | |
1287 'OTHER_CFLAGS': [ | |
1288 '-Xclang', '-load', '-Xclang', '<(clang_load)', | |
1289 '-Xclang', '-add-plugin', '-Xclang', '<(clang_add_plugin)', | |
1290 ], | |
1291 }], | |
1277 ], | 1292 ], |
1278 }, | 1293 }, |
1279 'target_conditions': [ | 1294 'target_conditions': [ |
1280 ['_type!="static_library"', { | 1295 ['_type!="static_library"', { |
1281 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 1296 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
1282 }], | 1297 }], |
1283 ['_mac_bundle', { | 1298 ['_mac_bundle', { |
1284 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, | 1299 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, |
1285 }], | 1300 }], |
1286 ['(_type=="executable" or _type=="shared_library" or \ | 1301 ['(_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. | 1531 # and therefore SYMROOT, needs to be set at the project level. |
1517 'SYMROOT': '<(DEPTH)/xcodebuild', | 1532 'SYMROOT': '<(DEPTH)/xcodebuild', |
1518 }, | 1533 }, |
1519 } | 1534 } |
1520 | 1535 |
1521 # Local Variables: | 1536 # Local Variables: |
1522 # tab-width:2 | 1537 # tab-width:2 |
1523 # indent-tabs-mode:nil | 1538 # indent-tabs-mode:nil |
1524 # End: | 1539 # End: |
1525 # vim: set expandtab tabstop=2 shiftwidth=2: | 1540 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |