Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: build/common.gypi

Issue 500149: Revert 35012 - Rearrange build configurations make it clearer and allow bett... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « breakpad/breakpad_sender.gypi ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 # 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': { 9 'variables': {
10 # .gyp files should set chromium_code to 1 if they build Chromium-specific 10 # .gyp files should set chromium_code to 1 if they build Chromium-specific
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 'DebugInformationFormat': '1', 389 'DebugInformationFormat': '1',
390 'AdditionalOptions': '/Yd', 390 'AdditionalOptions': '/Yd',
391 } 391 }
392 } 392 }
393 }], # OS==win 393 }], # OS==win
394 ], # conditions for coverage 394 ], # conditions for coverage
395 }], # coverage!=0 395 }], # coverage!=0
396 ], # conditions for 'target_defaults' 396 ], # conditions for 'target_defaults'
397 'default_configuration': 'Debug', 397 'default_configuration': 'Debug',
398 'configurations': { 398 'configurations': {
399 # VCLinkerTool LinkIncremental values below: 399 # VCLinkerTool LinkIncremental values below:
400 # 0 == default 400 # 0 == default
401 # 1 == /INCREMENTAL:NO 401 # 1 == /INCREMENTAL:NO
402 # 2 == /INCREMENTAL 402 # 2 == /INCREMENTAL
403 # Debug links incremental, Release does not. 403 # Debug links incremental, Release does not.
404 # 404 'Common': {
405 # Abstract base configurations to cover common
406 # attributes.
407 #
408 'Common_Base': {
409 'abstract': 1, 405 'abstract': 1,
410 'msvs_configuration_attributes': { 406 'msvs_configuration_attributes': {
411 'OutputDirectory': '$(SolutionDir)$(ConfigurationName)', 407 'OutputDirectory': '$(SolutionDir)$(ConfigurationName)',
412 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)', 408 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)',
413 'CharacterSet': '1', 409 'CharacterSet': '1',
414 }, 410 },
415 },
416 'x86_Base': {
417 'abstract': 1,
418 'msvs_settings': { 411 'msvs_settings': {
419 'VCLinkerTool': { 412 'VCLinkerTool': {
420 'TargetMachine': '1', 413 'TargetMachine': '1',
421 }, 414 },
422 }, 415 },
423 'msvs_configuration_platform': 'Win32', 416 'msvs_configuration_platform': 'Win32',
424 }, 417 },
425 'x64_Base': { 418 'Debug': {
426 'abstract': 1, 419 'inherit_from': ['Common'],
427 'msvs_configuration_platform': 'x64',
428 'msvs_settings': {
429 'VCLinkerTool': {
430 'TargetMachine': '17', # x86 - 64
431 },
432 },
433 'msvs_settings': {
434 'VCLibrarianTool': {
435 'AdditionalLibraryDirectories!':
436 ['<(DEPTH)/third_party/platformsdk_win7/files/Lib'],
437 'AdditionalLibraryDirectories':
438 ['<(DEPTH)/third_party/platformsdk_win7/files/Lib/x64'],
439 },
440 'VCLinkerTool': {
441 'TargetMachine': '17',
442 'AdditionalLibraryDirectories!':
443 ['<(DEPTH)/third_party/platformsdk_win7/files/Lib'],
444 'AdditionalLibraryDirectories':
445 ['<(DEPTH)/third_party/platformsdk_win7/files/Lib/x64'],
446 },
447 },
448 'defines': [
449 # Not sure if tcmalloc works on 64-bit Windows.
450 'NO_TCMALLOC',
451 ],
452 },
453 'Debug_Base': {
454 'abstract': 1,
455 'xcode_settings': { 420 'xcode_settings': {
456 'COPY_PHASE_STRIP': 'NO', 421 'COPY_PHASE_STRIP': 'NO',
457 'GCC_OPTIMIZATION_LEVEL': '<(mac_debug_optimization)', 422 'GCC_OPTIMIZATION_LEVEL': '<(mac_debug_optimization)',
458 'OTHER_CFLAGS': [ '<@(debug_extra_cflags)', ], 423 'OTHER_CFLAGS': [ '<@(debug_extra_cflags)', ],
459 }, 424 },
460 'msvs_settings': { 425 'msvs_settings': {
461 'VCCLCompilerTool': { 426 'VCCLCompilerTool': {
462 'Optimization': '<(win_debug_Optimization)', 427 'Optimization': '<(win_debug_Optimization)',
463 'PreprocessorDefinitions': ['_DEBUG'], 428 'PreprocessorDefinitions': ['_DEBUG'],
464 'BasicRuntimeChecks': '3', 429 'BasicRuntimeChecks': '3',
465 'RuntimeLibrary': '<(win_debug_RuntimeLibrary)', 430 'RuntimeLibrary': '<(win_debug_RuntimeLibrary)',
466 }, 431 },
467 'VCLinkerTool': { 432 'VCLinkerTool': {
468 'LinkIncremental': '<(msvs_debug_link_incremental)', 433 'LinkIncremental': '<(msvs_debug_link_incremental)',
469 }, 434 },
470 'VCResourceCompilerTool': { 435 'VCResourceCompilerTool': {
471 'PreprocessorDefinitions': ['_DEBUG'], 436 'PreprocessorDefinitions': ['_DEBUG'],
472 }, 437 },
473 }, 438 },
474 'conditions': [ 439 'conditions': [
475 ['OS=="linux"', { 440 ['OS=="linux"', {
476 'cflags': [ 441 'cflags': [
477 '<@(debug_extra_cflags)', 442 '<@(debug_extra_cflags)',
478 ], 443 ],
479 }], 444 }],
480 ], 445 ],
481 }, 446 },
482 'Release_Base': { 447 'Release': {
483 'abstract': 1, 448 'inherit_from': ['Common'],
484 'defines': [ 449 'defines': [
485 'NDEBUG', 450 'NDEBUG',
486 ], 451 ],
487 'xcode_settings': { 452 'xcode_settings': {
488 'DEAD_CODE_STRIPPING': 'YES', # -Wl,-dead_strip 453 'DEAD_CODE_STRIPPING': 'YES', # -Wl,-dead_strip
489 'GCC_OPTIMIZATION_LEVEL': '<(mac_release_optimization)', 454 'GCC_OPTIMIZATION_LEVEL': '<(mac_release_optimization)',
490 'OTHER_CFLAGS': [ '<@(release_extra_cflags)', ], 455 'OTHER_CFLAGS': [ '<@(release_extra_cflags)', ],
491 }, 456 },
492 'msvs_settings': { 457 'msvs_settings': {
493 'VCCLCompilerTool': { 458 'VCCLCompilerTool': {
(...skipping 11 matching lines...) Expand all
505 ['win_use_allocator_shim==0', { 470 ['win_use_allocator_shim==0', {
506 'defines': ['NO_TCMALLOC'], 471 'defines': ['NO_TCMALLOC'],
507 }], 472 }],
508 ['win_release_RuntimeLibrary==2', { 473 ['win_release_RuntimeLibrary==2', {
509 # Visual C++ 2008 barfs when building anything with /MD (msvcrt): 474 # Visual C++ 2008 barfs when building anything with /MD (msvcrt):
510 # VC\include\typeinfo(139) : warning C4275: non dll-interface 475 # VC\include\typeinfo(139) : warning C4275: non dll-interface
511 # class 'stdext::exception' used as base for dll-interface 476 # class 'stdext::exception' used as base for dll-interface
512 # class 'std::bad_cast' 477 # class 'std::bad_cast'
513 'msvs_disabled_warnings': [4275], 478 'msvs_disabled_warnings': [4275],
514 }], 479 }],
480 ['msvs_use_common_release', {
481 'msvs_props': ['release.vsprops'],
482 }],
515 ['OS=="linux"', { 483 ['OS=="linux"', {
516 'cflags': [ 484 'cflags': [
517 '<@(release_extra_cflags)', 485 '<@(release_extra_cflags)',
518 ], 486 ],
519 }], 487 }],
520 ], 488 ],
521 }, 489 },
522 'Purify_Base': {
523 'abstract': 1,
524 'defines': [
525 'PURIFY',
526 'NO_TCMALLOC',
527 ],
528 'msvs_settings': {
529 'VCCLCompilerTool': {
530 'Optimization': '0',
531 'RuntimeLibrary': '0',
532 'BufferSecurityCheck': 'false',
533 },
534 'VCLinkerTool': {
535 'EnableCOMDATFolding': '1',
536 'LinkIncremental': '1',
537 },
538 },
539 },
540 #
541 # Concrete configurations
542 #
543 'Debug': {
544 'inherit_from': ['Common_Base', 'x86_Base', 'Debug_Base'],
545 },
546 'Release': {
547 'inherit_from': ['Common_Base', 'x86_Base', 'Release_Base'],
548 'conditions': [
549 ['msvs_use_common_release', {
550 'msvs_props': ['release.vsprops'],
551 }],
552 ]
553 },
554 'conditions': [ 490 'conditions': [
555 [ 'OS=="win"', { 491 [ 'OS=="win"', {
556 # TODO(bradnelson): add a gyp mechanism to make this more graceful. 492 # TODO(bradnelson): add a gyp mechanism to make this more graceful.
557 'Purify': { 493 'Purify': {
558 'inherit_from': ['Common_Base', 'x86_Base', 'Release_Base', 'Purify' ], 494 'inherit_from': ['Release'],
495 'defines': [
496 'PURIFY',
497 'NO_TCMALLOC',
498 ],
499 'msvs_settings': {
500 'VCCLCompilerTool': {
501 'Optimization': '0',
502 'RuntimeLibrary': '0',
503 'BufferSecurityCheck': 'false',
504 },
505 'VCLinkerTool': {
506 'EnableCOMDATFolding': '1',
507 'LinkIncremental': '1',
508 },
509 },
510 },
511 'Common_x64': {
512 'msvs_configuration_platform': 'x64',
513 'msvs_settings': {
514 'VCLinkerTool': {
515 'TargetMachine': '17',
516 },
517 },
518 'abstract': 1,
559 }, 519 },
560 'Debug_x64': { 520 'Debug_x64': {
561 'inherit_from': ['Common_Base', 'x64_Base', 'Debug_Base'], 521 'inherit_from': ['Debug', 'Common_x64'],
562 }, 522 },
563 'Release_x64': { 523 'Release_x64': {
564 'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base'], 524 'inherit_from': ['Release', 'Common_x64'],
565 }, 525 },
566 'Purify_x64': { 526 'Purify_x64': {
567 'inherit_from': ['Common_Base', 'x64_Base', 'Release_Base', 'Purify' ], 527 'inherit_from': ['Purify', 'Common_x64'],
568 }, 528 },
569 }], 529 }],
570 ], 530 ],
571 }, 531 },
572 }, 532 },
573 'conditions': [ 533 'conditions': [
574 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { 534 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
575 'target_defaults': { 535 'target_defaults': {
576 # Enable -Werror by default, but put it in a variable so it can 536 # Enable -Werror by default, but put it in a variable so it can
577 # be disabled in ~/.gyp/include.gypi on the valgrind builders. 537 # be disabled in ~/.gyp/include.gypi on the valgrind builders.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 'DISTCC_HOSTS', 621 'DISTCC_HOSTS',
662 'HOME', 622 'HOME',
663 'INCLUDE_SERVER_ARGS', 623 'INCLUDE_SERVER_ARGS',
664 'INCLUDE_SERVER_PORT', 624 'INCLUDE_SERVER_PORT',
665 'LINK', 625 'LINK',
666 'CHROME_BUILD_TYPE', 626 'CHROME_BUILD_TYPE',
667 'CHROMIUM_BUILD', 627 'CHROMIUM_BUILD',
668 'OFFICIAL_BUILD', 628 'OFFICIAL_BUILD',
669 ], 629 ],
670 'configurations': { 630 'configurations': {
671 'Debug_Base': { 631 'Debug': {
672 'variables': { 632 'variables': {
673 'debug_optimize%': '0', 633 'debug_optimize%': '0',
674 }, 634 },
675 'defines': [ 635 'defines': [
676 '_DEBUG', 636 '_DEBUG',
677 ], 637 ],
678 'cflags': [ 638 'cflags': [
679 '-O>(debug_optimize)', 639 '-O>(debug_optimize)',
680 '-g', 640 '-g',
681 # One can use '-gstabs' to enable building the debugging 641 # One can use '-gstabs' to enable building the debugging
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, 854 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
895 }], 855 }],
896 ['_type=="executable" or _type=="shared_library"', { 856 ['_type=="executable" or _type=="shared_library"', {
897 'target_conditions': [ 857 'target_conditions': [
898 ['mac_real_dsym == 1', { 858 ['mac_real_dsym == 1', {
899 # To get a real .dSYM bundle produced by dsymutil, set the 859 # To get a real .dSYM bundle produced by dsymutil, set the
900 # debug information format to dwarf-with-dsym. Since 860 # debug information format to dwarf-with-dsym. Since
901 # strip_from_xcode will not be used, set Xcode to do the 861 # strip_from_xcode will not be used, set Xcode to do the
902 # stripping as well. 862 # stripping as well.
903 'configurations': { 863 'configurations': {
904 'Release_Base': { 864 'Release': {
905 'xcode_settings': { 865 'xcode_settings': {
906 'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym', 866 'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym',
907 'DEPLOYMENT_POSTPROCESSING': 'YES', 867 'DEPLOYMENT_POSTPROCESSING': 'YES',
908 'STRIP_INSTALLED_PRODUCT': 'YES', 868 'STRIP_INSTALLED_PRODUCT': 'YES',
909 'target_conditions': [ 869 'target_conditions': [
910 ['_type=="shared_library"', { 870 ['_type=="shared_library"', {
911 # The Xcode default is to strip debugging symbols 871 # The Xcode default is to strip debugging symbols
912 # only (-S). Local symbols should be stripped as 872 # only (-S). Local symbols should be stripped as
913 # well, which will be handled by -x. Xcode will 873 # well, which will be handled by -x. Xcode will
914 # continue to insert -S when stripping even when 874 # continue to insert -S when stripping even when
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 'msvs_settings': { 1044 'msvs_settings': {
1085 'VCLinkerTool': { 1045 'VCLinkerTool': {
1086 'DelayLoadDLLs': [ 1046 'DelayLoadDLLs': [
1087 'dbghelp.dll', 1047 'dbghelp.dll',
1088 'dwmapi.dll', 1048 'dwmapi.dll',
1089 'uxtheme.dll', 1049 'uxtheme.dll',
1090 ], 1050 ],
1091 }, 1051 },
1092 }, 1052 },
1093 'configurations': { 1053 'configurations': {
1094 'x86_Base': { 1054 'Common': {
1095 'msvs_settings': { 1055 'msvs_settings': {
1096 'VCLinkerTool': { 1056 'VCLinkerTool': {
1097 'AdditionalOptions': 1057 'AdditionalOptions':
1098 '/safeseh /dynamicbase /ignore:4199 /ignore:4221 /nxcompat', 1058 '/safeseh /dynamicbase /ignore:4199 /ignore:4221 /nxcompat',
1099 }, 1059 },
1100 }, 1060 },
1101 }, 1061 },
1102 'x64_Base': { 1062 'Common_x64': {
1103 'msvs_settings': { 1063 'msvs_settings': {
1104 'VCLinkerTool': { 1064 'VCLinkerTool': {
1105 'AdditionalOptions': 1065 'AdditionalOptions':
1106 # safeseh is not compatible with x64 1066 # safeseh is not compatible with x64
1107 '/dynamicbase /ignore:4199 /ignore:4221 /nxcompat', 1067 '/dynamicbase /ignore:4199 /ignore:4221 /nxcompat',
1108 }, 1068 },
1109 }, 1069 },
1110 }, 1070 },
1111 }, 1071 },
1112 }, 1072 },
(...skipping 28 matching lines...) Expand all
1141 # and therefore SYMROOT, needs to be set at the project level. 1101 # and therefore SYMROOT, needs to be set at the project level.
1142 'SYMROOT': '<(DEPTH)/xcodebuild', 1102 'SYMROOT': '<(DEPTH)/xcodebuild',
1143 }, 1103 },
1144 } 1104 }
1145 1105
1146 # Local Variables: 1106 # Local Variables:
1147 # tab-width:2 1107 # tab-width:2
1148 # indent-tabs-mode:nil 1108 # indent-tabs-mode:nil
1149 # End: 1109 # End:
1150 # vim: set expandtab tabstop=2 shiftwidth=2: 1110 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « breakpad/breakpad_sender.gypi ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698