OLD | NEW |
1 # Copyright 2010 the V8 project authors. All rights reserved. | 1 # Copyright 2010 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 'ldflags': [ '-m32' ], | 70 'ldflags': [ '-m32' ], |
71 }], | 71 }], |
72 [ 'OS=="linux"', { | 72 [ 'OS=="linux"', { |
73 'cflags': [ '-ansi' ], | 73 'cflags': [ '-ansi' ], |
74 }], | 74 }], |
75 [ 'visibility=="hidden"', { | 75 [ 'visibility=="hidden"', { |
76 'cflags': [ '-fvisibility=hidden' ], | 76 'cflags': [ '-fvisibility=hidden' ], |
77 }], | 77 }], |
78 ], | 78 ], |
79 }, | 79 }, |
80 }], | 80 }], # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"' |
| 81 ['OS=="win"', { |
| 82 'target_defaults': { |
| 83 'defines': [ |
| 84 'WIN32', |
| 85 '_CRT_SECURE_NO_DEPRECATE', |
| 86 '_CRT_NONSTDC_NO_DEPRECATE', |
| 87 ], |
| 88 'conditions': [ |
| 89 ['component=="static_library"', { |
| 90 'defines': [ |
| 91 '_HAS_EXCEPTIONS=0', |
| 92 ], |
| 93 }], |
| 94 ], |
| 95 'msvs_cygwin_dirs': ['<(DEPTH)/third_party/cygwin'], |
| 96 'msvs_disabled_warnings': [4355, 4800], |
| 97 'msvs_settings': { |
| 98 'VCCLCompilerTool': { |
| 99 'MinimalRebuild': 'false', |
| 100 'BufferSecurityCheck': 'true', |
| 101 'EnableFunctionLevelLinking': 'true', |
| 102 'RuntimeTypeInfo': 'false', |
| 103 'WarningLevel': '3', |
| 104 'WarnAsError': 'true', |
| 105 'DebugInformationFormat': '3', |
| 106 'Detect64BitPortabilityProblems': 'false', |
| 107 'conditions': [ |
| 108 [ 'msvs_multi_core_compile', { |
| 109 'AdditionalOptions': ['/MP'], |
| 110 }], |
| 111 ['component=="shared_library"', { |
| 112 'ExceptionHandling': '1', # /EHsc |
| 113 }, { |
| 114 'ExceptionHandling': '0', |
| 115 }], |
| 116 ], |
| 117 }, |
| 118 'VCLibrarianTool': { |
| 119 'AdditionalOptions': ['/ignore:4221'], |
| 120 }, |
| 121 'VCLinkerTool': { |
| 122 'AdditionalDependencies': [ |
| 123 'ws2_32.lib', |
| 124 ], |
| 125 'GenerateDebugInformation': 'true', |
| 126 'MapFileName': '$(OutDir)\\$(TargetName).map', |
| 127 'ImportLibrary': '$(OutDir)\\lib\\$(TargetName).lib', |
| 128 'FixedBaseAddress': '1', |
| 129 # LinkIncremental values: |
| 130 # 0 == default |
| 131 # 1 == /INCREMENTAL:NO |
| 132 # 2 == /INCREMENTAL |
| 133 'LinkIncremental': '1', |
| 134 # SubSystem values: |
| 135 # 0 == not set |
| 136 # 1 == /SUBSYSTEM:CONSOLE |
| 137 # 2 == /SUBSYSTEM:WINDOWS |
| 138 'SubSystem': '1', |
| 139 }, |
| 140 }, |
| 141 }, |
| 142 }] |
81 ], | 143 ], |
82 } | 144 } |
OLD | NEW |