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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 }, | 349 }, |
350 'conditions': [ | 350 'conditions': [ |
351 ['OS=="linux"', { | 351 ['OS=="linux"', { |
352 'target_defaults': { | 352 'target_defaults': { |
353 # Enable -Werror by default, but put it in a variable so it can | 353 # Enable -Werror by default, but put it in a variable so it can |
354 # be disabled in ~/.gyp/include.gypi on the valgrind builders. | 354 # be disabled in ~/.gyp/include.gypi on the valgrind builders. |
355 'variables': { | 355 'variables': { |
356 'werror%': '-Werror', | 356 'werror%': '-Werror', |
357 }, | 357 }, |
358 'cflags': [ | 358 'cflags': [ |
359 '<(werror)', # See note above about the werror variable. | 359 '<(werror)', # See note above about the werror variable. |
360 '-pthread', | 360 '-pthread', |
361 '-fno-exceptions', | 361 '-fno-exceptions', |
362 '-Wall', | 362 '-Wall', |
363 '-D_FILE_OFFSET_BITS=64', | 363 '-D_FILE_OFFSET_BITS=64', |
364 ], | 364 ], |
365 'cflags_cc': [ | 365 'cflags_cc': [ |
| 366 '-fno-rtti', |
366 '-fno-threadsafe-statics', | 367 '-fno-threadsafe-statics', |
367 ], | 368 ], |
368 'ldflags': [ | 369 'ldflags': [ |
369 '-pthread', | 370 '-pthread', |
370 ], | 371 ], |
371 'scons_variable_settings': { | 372 'scons_variable_settings': { |
372 'LIBPATH': ['$LIB_DIR'], | 373 'LIBPATH': ['$LIB_DIR'], |
373 # Linking of large files uses lots of RAM, so serialize links | 374 # Linking of large files uses lots of RAM, so serialize links |
374 # using the handy flock command from util-linux. | 375 # using the handy flock command from util-linux. |
375 'FLOCK_LINK': ['flock', '$TOP_BUILDDIR/linker.lock', '$LINK'], | 376 'FLOCK_LINK': ['flock', '$TOP_BUILDDIR/linker.lock', '$LINK'], |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 # Release defaults to the Xcode optimization default, this var | 552 # Release defaults to the Xcode optimization default, this var |
552 # lets you force the value. | 553 # lets you force the value. |
553 'mac_release_optimization%': 'UNSET' | 554 'mac_release_optimization%': 'UNSET' |
554 }, | 555 }, |
555 'mac_bundle': 0, | 556 'mac_bundle': 0, |
556 'xcode_settings': { | 557 'xcode_settings': { |
557 'ALWAYS_SEARCH_USER_PATHS': 'NO', | 558 'ALWAYS_SEARCH_USER_PATHS': 'NO', |
558 'GCC_C_LANGUAGE_STANDARD': 'c99', | 559 'GCC_C_LANGUAGE_STANDARD': 'c99', |
559 'GCC_CW_ASM_SYNTAX': 'NO', | 560 'GCC_CW_ASM_SYNTAX': 'NO', |
560 'GCC_DYNAMIC_NO_PIC': 'NO', | 561 'GCC_DYNAMIC_NO_PIC': 'NO', |
| 562 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', |
| 563 'GCC_ENABLE_CPP_RTTI': 'NO', |
561 'GCC_ENABLE_PASCAL_STRINGS': 'NO', | 564 'GCC_ENABLE_PASCAL_STRINGS': 'NO', |
562 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', | 565 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', |
563 'GCC_OBJC_CALL_CXX_CDTORS': 'YES', | 566 'GCC_OBJC_CALL_CXX_CDTORS': 'YES', |
564 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', | 567 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', |
565 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', | 568 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', |
566 'GCC_VERSION': '4.2', | 569 'GCC_VERSION': '4.2', |
567 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', | 570 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', |
568 'MACOSX_DEPLOYMENT_TARGET': '10.5', | 571 'MACOSX_DEPLOYMENT_TARGET': '10.5', |
569 'PREBINDING': 'NO', | 572 'PREBINDING': 'NO', |
570 'SDKROOT': 'macosx10.5', | 573 'SDKROOT': 'macosx10.5', |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 # settings in target dicts. SYMROOT is a special case, because many other | 759 # settings in target dicts. SYMROOT is a special case, because many other |
757 # Xcode variables depend on it, including variables such as | 760 # Xcode variables depend on it, including variables such as |
758 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 761 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
759 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 762 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
760 # files to appear (when present) in the UI as actual files and not red | 763 # files to appear (when present) in the UI as actual files and not red |
761 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 764 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
762 # and therefore SYMROOT, needs to be set at the project level. | 765 # and therefore SYMROOT, needs to be set at the project level. |
763 'SYMROOT': '<(DEPTH)/xcodebuild', | 766 'SYMROOT': '<(DEPTH)/xcodebuild', |
764 }, | 767 }, |
765 } | 768 } |
OLD | NEW |