OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 ['OS=="linux"', { | 235 ['OS=="linux"', { |
236 'target_defaults': { | 236 'target_defaults': { |
237 # Enable -Werror by default, but put it in a variable so it can | 237 # Enable -Werror by default, but put it in a variable so it can |
238 # be disabled in ~/.gyp/include.gypi on the valgrind builders. | 238 # be disabled in ~/.gyp/include.gypi on the valgrind builders. |
239 'variables': { | 239 'variables': { |
240 'werror%': '-Werror', | 240 'werror%': '-Werror', |
241 }, | 241 }, |
242 'cflags': [ | 242 'cflags': [ |
243 '<(werror)', # See note above about the werror variable. | 243 '<(werror)', # See note above about the werror variable. |
244 '-pthread', | 244 '-pthread', |
| 245 '-fno-exceptions', |
| 246 '-Wall', |
| 247 ], |
| 248 'cflags_cc': [ |
| 249 '-fno-threadsafe-statics', |
245 ], | 250 ], |
246 'ldflags': [ | 251 'ldflags': [ |
247 '-pthread', | 252 '-pthread', |
248 ], | 253 ], |
249 'scons_variable_settings': { | 254 'scons_variable_settings': { |
250 'LIBPATH': ['$LIB_DIR'], | 255 'LIBPATH': ['$LIB_DIR'], |
251 # Linking of large files uses lots of RAM, so serialize links | 256 # Linking of large files uses lots of RAM, so serialize links |
252 # using the handy flock command from util-linux. | 257 # using the handy flock command from util-linux. |
253 'FLOCK_LINK': ['flock', '$TOP_BUILDDIR/linker.lock', '$LINK'], | 258 'FLOCK_LINK': ['flock', '$TOP_BUILDDIR/linker.lock', '$LINK'], |
254 'FLOCK_SHLINK': ['flock', '$TOP_BUILDDIR/linker.lock', '$SHLINK'], | 259 'FLOCK_SHLINK': ['flock', '$TOP_BUILDDIR/linker.lock', '$SHLINK'], |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 }, | 353 }, |
349 'profile': { | 354 'profile': { |
350 'cflags': ['-pg', '-g'], | 355 'cflags': ['-pg', '-g'], |
351 'ldflags': ['-pg'], | 356 'ldflags': ['-pg'], |
352 }, | 357 }, |
353 'symbols': { | 358 'symbols': { |
354 'cflags': ['-g'], | 359 'cflags': ['-g'], |
355 }, | 360 }, |
356 }, | 361 }, |
357 'conditions': [ | 362 'conditions': [ |
358 [ 'target_arch=="arm"', { | 363 [ 'target_arch!="arm"', { |
359 'cflags': [ | |
360 '-fno-exceptions', | |
361 '-Wall', | |
362 ], | |
363 'cflags_cc': [ | |
364 '-fno-threadsafe-statics', | |
365 ], | |
366 }, { # else: target_arch != "arm" | |
367 'asflags': [ | 364 'asflags': [ |
368 # Needed so that libs with .s files (e.g. libicudata.a) | 365 # Needed so that libs with .s files (e.g. libicudata.a) |
369 # are compatible with the general 32-bit-ness. | 366 # are compatible with the general 32-bit-ness. |
370 '-32', | 367 '-32', |
371 ], | 368 ], |
372 # All floating-point computations on x87 happens in 80-bit | 369 # All floating-point computations on x87 happens in 80-bit |
373 # precision. Because the C and C++ language standards allow | 370 # precision. Because the C and C++ language standards allow |
374 # the compiler to keep the floating-point values in higher | 371 # the compiler to keep the floating-point values in higher |
375 # precision than what's specified in the source and doing so | 372 # precision than what's specified in the source and doing so |
376 # is more efficient than constantly rounding up to 64-bit or | 373 # is more efficient than constantly rounding up to 64-bit or |
(...skipping 21 matching lines...) Expand all Loading... |
398 ['branding=="Chromium"', { | 395 ['branding=="Chromium"', { |
399 'cflags': [ | 396 'cflags': [ |
400 '-march=pentium4', | 397 '-march=pentium4', |
401 '-msse2', | 398 '-msse2', |
402 '-mfpmath=sse', | 399 '-mfpmath=sse', |
403 ], | 400 ], |
404 }], | 401 }], |
405 ], | 402 ], |
406 'cflags': [ | 403 'cflags': [ |
407 '-m32', | 404 '-m32', |
408 '-fno-exceptions', | |
409 '-Wall', | |
410 ], | |
411 'cflags_cc': [ | |
412 '-fno-threadsafe-statics', | |
413 ], | 405 ], |
414 'ldflags': [ | 406 'ldflags': [ |
415 '-m32', | 407 '-m32', |
416 ], | 408 ], |
417 }], | 409 }], |
418 ], | 410 ], |
419 }, | 411 }, |
420 }], | 412 }], |
421 ['OS=="mac"', { | 413 ['OS=="mac"', { |
422 'target_defaults': { | 414 'target_defaults': { |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 # settings in target dicts. SYMROOT is a special case, because many other | 609 # settings in target dicts. SYMROOT is a special case, because many other |
618 # Xcode variables depend on it, including variables such as | 610 # Xcode variables depend on it, including variables such as |
619 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 611 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
620 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 612 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
621 # files to appear (when present) in the UI as actual files and not red | 613 # files to appear (when present) in the UI as actual files and not red |
622 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 614 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
623 # and therefore SYMROOT, needs to be set at the project level. | 615 # and therefore SYMROOT, needs to be set at the project level. |
624 'SYMROOT': '<(DEPTH)/xcodebuild', | 616 'SYMROOT': '<(DEPTH)/xcodebuild', |
625 }, | 617 }, |
626 } | 618 } |
OLD | NEW |