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

Side by Side Diff: build/common.gypi

Issue 6676030: WinDDK ATL and MSVC express compatability (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Take out atlcheck; VC2005e compat Created 9 years, 9 months 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 | « AUTHORS ('k') | chrome/app/cf_resources.rc » ('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) 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 'msvs_multi_core_compile%': 0, 445 'msvs_multi_core_compile%': 0,
446 },{ 446 },{
447 'msvs_multi_core_compile%': 1, 447 'msvs_multi_core_compile%': 1,
448 }], 448 }],
449 # Don't do incremental linking for large modules on 32-bit. 449 # Don't do incremental linking for large modules on 32-bit.
450 ['MSVS_OS_BITS==32', { 450 ['MSVS_OS_BITS==32', {
451 'msvs_large_module_debug_link_mode%': '1', # No 451 'msvs_large_module_debug_link_mode%': '1', # No
452 },{ 452 },{
453 'msvs_large_module_debug_link_mode%': '2', # Yes 453 'msvs_large_module_debug_link_mode%': '2', # Yes
454 }], 454 }],
455 ['MSVS_VERSION=="2010e" or MSVS_VERSION=="2008e" or MSVS_VERSION=="200 5e"', {
456 'msvs_express%': 1,
457 'secure_atl%': 0,
458 },{
459 'msvs_express%': 0,
460 'secure_atl%': 1,
461 }],
455 ], 462 ],
456 'nacl_win64_defines': [ 463 'nacl_win64_defines': [
457 # This flag is used to minimize dependencies when building 464 # This flag is used to minimize dependencies when building
458 # Native Client loader for 64-bit Windows. 465 # Native Client loader for 64-bit Windows.
459 'NACL_WIN64', 466 'NACL_WIN64',
460 ], 467 ],
461 }], 468 }],
462 469
463 ['OS=="mac" or (OS=="linux" and chromeos==0 and target_arch!="arm")', { 470 ['OS=="mac" or (OS=="linux" and chromeos==0 and target_arch!="arm")', {
464 'use_cups%': 1, 471 'use_cups%': 1,
(...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after
1439 'target_defaults': { 1446 'target_defaults': {
1440 'defines': [ 1447 'defines': [
1441 '_WIN32_WINNT=0x0600', 1448 '_WIN32_WINNT=0x0600',
1442 'WINVER=0x0600', 1449 'WINVER=0x0600',
1443 'WIN32', 1450 'WIN32',
1444 '_WINDOWS', 1451 '_WINDOWS',
1445 'NOMINMAX', 1452 'NOMINMAX',
1446 '_CRT_RAND_S', 1453 '_CRT_RAND_S',
1447 'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS', 1454 'CERT_CHAIN_PARA_HAS_EXTRA_FIELDS',
1448 'WIN32_LEAN_AND_MEAN', 1455 'WIN32_LEAN_AND_MEAN',
1449 '_SECURE_ATL',
1450 '_ATL_NO_OPENGL', 1456 '_ATL_NO_OPENGL',
1451 '_HAS_TR1=0', 1457 '_HAS_TR1=0',
1452 ], 1458 ],
1453 'conditions': [ 1459 'conditions': [
1454 ['component=="static_library"', { 1460 ['component=="static_library"', {
1455 'defines': [ 1461 'defines': [
1456 '_HAS_EXCEPTIONS=0', 1462 '_HAS_EXCEPTIONS=0',
1457 ], 1463 ],
1458 }], 1464 }],
1465 ['secure_atl', {
1466 'defines': [
1467 '_SECURE_ATL',
1468 ],
1469 }],
1459 ], 1470 ],
1460 'msvs_system_include_dirs': [ 1471 'msvs_system_include_dirs': [
1461 '<(DEPTH)/third_party/platformsdk_win7/files/Include', 1472 '<(DEPTH)/third_party/platformsdk_win7/files/Include',
1462 '<(DEPTH)/third_party/directxsdk/files/Include', 1473 '<(DEPTH)/third_party/directxsdk/files/Include',
1463 '$(VSInstallDir)/VC/atlmfc/include', 1474 '$(VSInstallDir)/VC/atlmfc/include',
1464 ], 1475 ],
1465 'msvs_cygwin_dirs': ['<(DEPTH)/third_party/cygwin'], 1476 'msvs_cygwin_dirs': ['<(DEPTH)/third_party/cygwin'],
1466 'msvs_disabled_warnings': [4351, 4396, 4503, 4819], 1477 'msvs_disabled_warnings': [4351, 4396, 4503, 4819],
1467 'msvs_settings': { 1478 'msvs_settings': {
1468 'VCCLCompilerTool': { 1479 'VCCLCompilerTool': {
1469 'MinimalRebuild': 'false', 1480 'MinimalRebuild': 'false',
1470 'BufferSecurityCheck': 'true', 1481 'BufferSecurityCheck': 'true',
1471 'EnableFunctionLevelLinking': 'true', 1482 'EnableFunctionLevelLinking': 'true',
1472 'RuntimeTypeInfo': 'false', 1483 'RuntimeTypeInfo': 'false',
1473 'WarningLevel': '3', 1484 'WarningLevel': '3',
1474 'WarnAsError': 'true', 1485 'WarnAsError': 'true',
1475 'DebugInformationFormat': '3', 1486 'DebugInformationFormat': '3',
1476 'conditions': [ 1487 'conditions': [
1477 [ 'msvs_multi_core_compile', { 1488 ['msvs_multi_core_compile', {
1478 'AdditionalOptions': ['/MP'], 1489 'AdditionalOptions': ['/MP'],
1479 }], 1490 }],
1491 ['MSVS_VERSION=="2005e"', {
1492 'AdditionalOptions': ['/w44068'], # Unknown pragma to 4 (ATL)
1493 }],
1480 ['component=="shared_library"', { 1494 ['component=="shared_library"', {
1481 'ExceptionHandling': '1', # /EHsc 1495 'ExceptionHandling': '1', # /EHsc
1482 }, { 1496 }, {
1483 'ExceptionHandling': '0', 1497 'ExceptionHandling': '0',
1484 }], 1498 }],
1485 ], 1499 ],
1486 }, 1500 },
1487 'VCLibrarianTool': { 1501 'VCLibrarianTool': {
1488 'AdditionalOptions': ['/ignore:4221'], 1502 'AdditionalOptions': ['/ignore:4221'],
1489 'AdditionalLibraryDirectories': [ 1503 'AdditionalLibraryDirectories': [
1490 '<(DEPTH)/third_party/platformsdk_win7/files/Lib', 1504 '<(DEPTH)/third_party/platformsdk_win7/files/Lib',
1491 '<(DEPTH)/third_party/directxsdk/files/Lib/x86', 1505 '<(DEPTH)/third_party/directxsdk/files/Lib/x86',
1492 ], 1506 ],
1493 }, 1507 },
1494 'VCLinkerTool': { 1508 'VCLinkerTool': {
1495 'AdditionalDependencies': [ 1509 'AdditionalDependencies': [
1496 'wininet.lib', 1510 'wininet.lib',
1497 'dnsapi.lib', 1511 'dnsapi.lib',
1498 'version.lib', 1512 'version.lib',
1499 'msimg32.lib', 1513 'msimg32.lib',
1500 'ws2_32.lib', 1514 'ws2_32.lib',
1501 'usp10.lib', 1515 'usp10.lib',
1502 'psapi.lib', 1516 'psapi.lib',
1503 'dbghelp.lib', 1517 'dbghelp.lib',
1504 ], 1518 ],
1519 'conditions': [
1520 ['msvs_express', {
1521 # Explicitly required when using the ATL with express
1522 'AdditionalDependencies': [
1523 'atlthunk.lib',
1524 ],
1525 }],
1526 ['MSVS_VERSION=="2005e"', {
1527 # Non-express versions link automatically to these
1528 'AdditionalDependencies': [
1529 'advapi32.lib',
1530 'comdlg32.lib',
1531 'ole32.lib',
1532 'shell32.lib',
1533 'user32.lib',
1534 'winspool.lib',
1535 ],
1536 }],
1537 ],
1505 'AdditionalLibraryDirectories': [ 1538 'AdditionalLibraryDirectories': [
1506 '<(DEPTH)/third_party/platformsdk_win7/files/Lib', 1539 '<(DEPTH)/third_party/platformsdk_win7/files/Lib',
1507 '<(DEPTH)/third_party/directxsdk/files/Lib/x86', 1540 '<(DEPTH)/third_party/directxsdk/files/Lib/x86',
1508 ], 1541 ],
1509 'GenerateDebugInformation': 'true', 1542 'GenerateDebugInformation': 'true',
1510 'MapFileName': '$(OutDir)\\$(TargetName).map', 1543 'MapFileName': '$(OutDir)\\$(TargetName).map',
1511 'ImportLibrary': '$(OutDir)\\lib\\$(TargetName).lib', 1544 'ImportLibrary': '$(OutDir)\\lib\\$(TargetName).lib',
1512 'FixedBaseAddress': '1', 1545 'FixedBaseAddress': '1',
1513 # SubSystem values: 1546 # SubSystem values:
1514 # 0 == not set 1547 # 0 == not set
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1618 # and therefore SYMROOT, needs to be set at the project level. 1651 # and therefore SYMROOT, needs to be set at the project level.
1619 'SYMROOT': '<(DEPTH)/xcodebuild', 1652 'SYMROOT': '<(DEPTH)/xcodebuild',
1620 }, 1653 },
1621 } 1654 }
1622 1655
1623 # Local Variables: 1656 # Local Variables:
1624 # tab-width:2 1657 # tab-width:2
1625 # indent-tabs-mode:nil 1658 # indent-tabs-mode:nil
1626 # End: 1659 # End:
1627 # vim: set expandtab tabstop=2 shiftwidth=2: 1660 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « AUTHORS ('k') | chrome/app/cf_resources.rc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698