OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
290 # Enable -Werror by default, but put it in a variable so it can | 290 # Enable -Werror by default, but put it in a variable so it can |
291 # be disabled in ~/.gyp/include.gypi on the valgrind builders. | 291 # be disabled in ~/.gyp/include.gypi on the valgrind builders. |
292 'variables': { | 292 'variables': { |
293 'werror%': '-Werror', | 293 'werror%': '-Werror', |
294 }, | 294 }, |
295 'cflags': [ | 295 'cflags': [ |
296 '<(werror)', # See note above about the werror variable. | 296 '<(werror)', # See note above about the werror variable. |
297 '-pthread', | 297 '-pthread', |
298 '-fno-exceptions', | 298 '-fno-exceptions', |
299 '-Wall', # TODO(bradnelson): why does this disappear?!? | 299 '-Wall', # TODO(bradnelson): why does this disappear?!? |
300 '-include', 'native_client/src/include/build_config.h' | |
300 ], | 301 ], |
301 'conditions': [ | 302 'conditions': [ |
302 ['nacl_standalone==1 and OS=="linux"', { | 303 ['nacl_standalone==1 and OS=="linux"', { |
303 'cflags': ['-fPIC'], | 304 'cflags': ['-fPIC'], |
304 }], | 305 }], |
305 ['OS=="android"', { | 306 ['OS=="android"', { |
306 'target_conditions': [ | 307 'target_conditions': [ |
307 ['_toolset=="target"', { | 308 ['_toolset=="target"', { |
308 'defines': ['NACL_ANDROID=1'], | 309 'defines': ['NACL_ANDROID=1'], |
309 }, { | 310 }, { |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
442 ], | 443 ], |
443 'cflags_cc': [ | 444 'cflags_cc': [ |
444 '-fno-rtti', | 445 '-fno-rtti', |
445 '-fno-threadsafe-statics', | 446 '-fno-threadsafe-statics', |
446 ], | 447 ], |
447 'ldflags': [ | 448 'ldflags': [ |
448 '-pthread', | 449 '-pthread', |
449 '-Wl,-z,noexecstack', | 450 '-Wl,-z,noexecstack', |
450 ], | 451 ], |
451 'defines': [ | 452 'defines': [ |
452 'NACL_LINUX=1', | |
453 'NACL_OSX=0', | |
454 'NACL_WINDOWS=0', | |
455 '_DEFAULT_SOURCE=1', | 453 '_DEFAULT_SOURCE=1', |
456 '_BSD_SOURCE=1', | 454 '_BSD_SOURCE=1', |
457 '_POSIX_C_SOURCE=199506', | 455 '_POSIX_C_SOURCE=199506', |
458 '_XOPEN_SOURCE=600', | 456 '_XOPEN_SOURCE=600', |
459 '_GNU_SOURCE=1', | 457 '_GNU_SOURCE=1', |
460 '__STDC_LIMIT_MACROS=1', | 458 '__STDC_LIMIT_MACROS=1', |
461 ], | 459 ], |
462 'configurations': { | 460 'configurations': { |
463 'Debug': { | 461 'Debug': { |
464 'variables': { | 462 'variables': { |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
526 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden | 524 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden |
527 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics | 525 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics |
528 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror | 526 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror |
529 # Don't set GCC_VERSION so that we default to /usr/bin/gcc | 527 # Don't set GCC_VERSION so that we default to /usr/bin/gcc |
530 #'GCC_VERSION': '4.2', | 528 #'GCC_VERSION': '4.2', |
531 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof | 529 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof |
532 'PREBINDING': 'NO', # No -Wl,-prebind | 530 'PREBINDING': 'NO', # No -Wl,-prebind |
533 'USE_HEADERMAP': 'NO', | 531 'USE_HEADERMAP': 'NO', |
534 # TODO(bradnelson): -Werror ?!? | 532 # TODO(bradnelson): -Werror ?!? |
535 'WARNING_CFLAGS': ['-Wall', '-Wendif-labels', '-Wno-long-long'], | 533 'WARNING_CFLAGS': ['-Wall', '-Wendif-labels', '-Wno-long-long'], |
534 'OTHER_CFLAGS': [ | |
535 '-include', 'native_client/src/include/build_config.h' | |
Mark Seaborn
2014/12/29 17:51:04
Nit: indent by 2 spaces rather than 4
teravest
2014/12/29 22:29:28
Done.
| |
536 ], | |
536 'conditions': [ | 537 'conditions': [ |
537 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, | 538 ['chromium_mac_pch', {'GCC_PRECOMPILE_PREFIX_HEADER': 'YES'}, |
538 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}], | 539 {'GCC_PRECOMPILE_PREFIX_HEADER': 'NO'}], |
539 ['clang==1', { | 540 ['clang==1', { |
540 'CC': '$(SOURCE_ROOT)/<(clang_dir)/clang', | 541 'CC': '$(SOURCE_ROOT)/<(clang_dir)/clang', |
541 'LDPLUSPLUS': '$(SOURCE_ROOT)/<(clang_dir)/clang++', | 542 'LDPLUSPLUS': '$(SOURCE_ROOT)/<(clang_dir)/clang++', |
542 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', | 543 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', |
543 'WARNING_CFLAGS': [ | 544 'WARNING_CFLAGS': [ |
544 '-Wheader-hygiene', | 545 '-Wheader-hygiene', |
545 # Don't die on dtoa code that uses a char as an array index. | 546 # Don't die on dtoa code that uses a char as an array index. |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
636 'postbuild_name': 'Strip If Needed', | 637 'postbuild_name': 'Strip If Needed', |
637 'action': ['<(strip_from_xcode_path)'], | 638 'action': ['<(strip_from_xcode_path)'], |
638 }, | 639 }, |
639 ], | 640 ], |
640 }], | 641 }], |
641 ], | 642 ], |
642 }], | 643 }], |
643 ], | 644 ], |
644 }], | 645 }], |
645 ], | 646 ], |
646 'defines': [ | |
647 'NACL_LINUX=0', | |
648 'NACL_ANDROID=0', | |
649 'NACL_OSX=1', | |
650 'NACL_WINDOWS=0', | |
651 ], | |
652 }, | 647 }, |
653 }], | 648 }], |
654 ['OS=="win"', { | 649 ['OS=="win"', { |
655 'target_defaults': { | 650 'target_defaults': { |
656 'variables': { | 651 'variables': { |
657 'windows_asm_rule%': 1, | 652 'windows_asm_rule%': 1, |
658 }, | 653 }, |
659 'target_conditions': [ | 654 'target_conditions': [ |
660 ['windows_asm_rule==1', { | 655 ['windows_asm_rule==1', { |
661 'rules': [ | 656 'rules': [ |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
696 'NOMINMAX', | 691 'NOMINMAX', |
697 '_CRT_RAND_S', | 692 '_CRT_RAND_S', |
698 'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS', | 693 'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS', |
699 # WIN32_LEAN_AND_MEAN tells windows.h to omit obsolete and rarely | 694 # WIN32_LEAN_AND_MEAN tells windows.h to omit obsolete and rarely |
700 # used #include files. This allows use of Winsock 2.0 which otherwise | 695 # used #include files. This allows use of Winsock 2.0 which otherwise |
701 # would conflict with Winsock 1.x included by windows.h. | 696 # would conflict with Winsock 1.x included by windows.h. |
702 'WIN32_LEAN_AND_MEAN', | 697 'WIN32_LEAN_AND_MEAN', |
703 '_SECURE_ATL', | 698 '_SECURE_ATL', |
704 '__STDC_LIMIT_MACROS=1', | 699 '__STDC_LIMIT_MACROS=1', |
705 '_HAS_EXCEPTIONS=0', | 700 '_HAS_EXCEPTIONS=0', |
706 | |
707 'NACL_LINUX=0', | |
708 'NACL_ANDROID=0', | |
709 'NACL_OSX=0', | |
710 'NACL_WINDOWS=1' | |
711 ], | 701 ], |
712 'conditions': [ | 702 'conditions': [ |
713 ['MSVS_VERSION=="2008"', { | 703 ['MSVS_VERSION=="2008"', { |
714 'defines': [ | 704 'defines': [ |
715 '_HAS_TR1=0', | 705 '_HAS_TR1=0', |
716 ], | 706 ], |
717 }], | 707 }], |
718 ], | 708 ], |
719 'msvs_cygwin_dirs': ['../third_party/cygwin'], | 709 'msvs_cygwin_dirs': ['../third_party/cygwin'], |
720 # TODO(bsy) remove 4355 once cross-repo | 710 # TODO(bsy) remove 4355 once cross-repo |
721 # NACL_ALLOW_THIS_IN_INITIALIZER_LIST changes go in. | 711 # NACL_ALLOW_THIS_IN_INITIALIZER_LIST changes go in. |
722 'msvs_disabled_warnings': [4355, 4396, 4503, 4800, 4819], | 712 'msvs_disabled_warnings': [4355, 4396, 4503, 4800, 4819], |
723 'msvs_settings': { | 713 'msvs_settings': { |
724 'VCCLCompilerTool': { | 714 'VCCLCompilerTool': { |
725 'MinimalRebuild': 'false', | 715 'MinimalRebuild': 'false', |
726 'BufferSecurityCheck': 'true', | 716 'BufferSecurityCheck': 'true', |
727 'EnableFunctionLevelLinking': 'true', | 717 'EnableFunctionLevelLinking': 'true', |
728 'RuntimeTypeInfo': 'false', | 718 'RuntimeTypeInfo': 'false', |
729 'WarningLevel': '3', | 719 'WarningLevel': '3', |
730 'WarnAsError': 'true', | 720 'WarnAsError': 'true', |
731 'DebugInformationFormat': '3', | 721 'DebugInformationFormat': '3', |
732 'ExceptionHandling': '0', | 722 'ExceptionHandling': '0', |
723 'AdditionalOptions': [ | |
724 '/FI', 'native_client/src/include/build_config.h' | |
725 ], | |
733 }, | 726 }, |
734 'VCLibrarianTool': { | 727 'VCLibrarianTool': { |
735 'AdditionalOptions': ['/ignore:4221'], | 728 'AdditionalOptions': ['/ignore:4221'], |
736 }, | 729 }, |
737 'VCLinkerTool': { | 730 'VCLinkerTool': { |
738 'AdditionalOptions': [ | 731 'AdditionalOptions': [ |
739 '/safeseh:NO', | 732 '/safeseh:NO', |
740 '/dynamicbase:NO', | 733 '/dynamicbase:NO', |
741 '/ignore:4199', | 734 '/ignore:4199', |
742 '/ignore:4221', | 735 '/ignore:4221', |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
834 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 827 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
835 # files to appear (when present) in the UI as actual files and not red | 828 # files to appear (when present) in the UI as actual files and not red |
836 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 829 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
837 # and therefore SYMROOT, needs to be set at the project level. | 830 # and therefore SYMROOT, needs to be set at the project level. |
838 'SYMROOT': '<(DEPTH)/xcodebuild', | 831 'SYMROOT': '<(DEPTH)/xcodebuild', |
839 }, | 832 }, |
840 'includes': [ | 833 'includes': [ |
841 'untrusted.gypi', | 834 'untrusted.gypi', |
842 ], | 835 ], |
843 } | 836 } |
OLD | NEW |