| OLD | NEW |
| 1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 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 10 matching lines...) Expand all Loading... |
| 21 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 21 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 22 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 22 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 # Definitions to be used when building stand-alone V8 binaries. | 28 # Definitions to be used when building stand-alone V8 binaries. |
| 29 | 29 |
| 30 { | 30 { |
| 31 # We need to include toolchain.gypi here for third-party sources that don't |
| 32 # directly include it themselves. |
| 33 'includes': ['toolchain.gypi'], |
| 31 'variables': { | 34 'variables': { |
| 32 'component%': 'static_library', | 35 'component%': 'static_library', |
| 33 'clang%': 0, | 36 'clang%': 0, |
| 34 'visibility%': 'hidden', | 37 'visibility%': 'hidden', |
| 35 'v8_enable_backtrace%': 0, | 38 'v8_enable_backtrace%': 0, |
| 39 'v8_enable_i18n_support%': 0, |
| 36 'msvs_multi_core_compile%': '1', | 40 'msvs_multi_core_compile%': '1', |
| 37 'mac_deployment_target%': '10.5', | 41 'mac_deployment_target%': '10.5', |
| 38 'variables': { | 42 'variables': { |
| 39 'variables': { | 43 'variables': { |
| 40 'variables': { | 44 'variables': { |
| 41 'conditions': [ | 45 'conditions': [ |
| 42 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or \ | 46 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or \ |
| 43 OS=="netbsd" or OS=="mac"', { | 47 OS=="netbsd" or OS=="mac"', { |
| 44 # This handles the Unix platforms we generally deal with. | 48 # This handles the Unix platforms we generally deal with. |
| 45 # Anything else gets passed through, which probably won't work | 49 # Anything else gets passed through, which probably won't work |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 'cflags!': [ | 130 'cflags!': [ |
| 127 '-Werror', | 131 '-Werror', |
| 128 ], | 132 ], |
| 129 }], | 133 }], |
| 130 ['OS == "mac"', { | 134 ['OS == "mac"', { |
| 131 'xcode_settings': { | 135 'xcode_settings': { |
| 132 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror | 136 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror |
| 133 }, | 137 }, |
| 134 }], | 138 }], |
| 135 ['OS == "win"', { | 139 ['OS == "win"', { |
| 140 'defines!': [ |
| 141 'DEBUG', |
| 142 ], |
| 136 'msvs_settings': { | 143 'msvs_settings': { |
| 137 'VCCLCompilerTool': { | 144 'VCCLCompilerTool': { |
| 138 'WarnAsError': 'false', | 145 'WarnAsError': 'false', |
| 139 }, | 146 }, |
| 140 }, | 147 }, |
| 141 }], | 148 }], |
| 142 ], | 149 ], |
| 143 }], | 150 }], |
| 144 ], | 151 ], |
| 145 }, | 152 }, |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 # LinkIncremental values: | 223 # LinkIncremental values: |
| 217 # 0 == default | 224 # 0 == default |
| 218 # 1 == /INCREMENTAL:NO | 225 # 1 == /INCREMENTAL:NO |
| 219 # 2 == /INCREMENTAL | 226 # 2 == /INCREMENTAL |
| 220 'LinkIncremental': '1', | 227 'LinkIncremental': '1', |
| 221 # SubSystem values: | 228 # SubSystem values: |
| 222 # 0 == not set | 229 # 0 == not set |
| 223 # 1 == /SUBSYSTEM:CONSOLE | 230 # 1 == /SUBSYSTEM:CONSOLE |
| 224 # 2 == /SUBSYSTEM:WINDOWS | 231 # 2 == /SUBSYSTEM:WINDOWS |
| 225 'SubSystem': '1', | 232 'SubSystem': '1', |
| 233 |
| 234 'conditions': [ |
| 235 ['v8_enable_i18n_support==1', { |
| 236 'AdditionalDependencies': [ |
| 237 'advapi32.lib', |
| 238 ], |
| 239 }], |
| 240 ], |
| 226 }, | 241 }, |
| 227 }, | 242 }, |
| 228 }, | 243 }, |
| 229 }], # OS=="win" | 244 }], # OS=="win" |
| 230 ['OS=="mac"', { | 245 ['OS=="mac"', { |
| 231 'xcode_settings': { | 246 'xcode_settings': { |
| 232 'SYMROOT': '<(DEPTH)/xcodebuild', | 247 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 233 }, | 248 }, |
| 234 'target_defaults': { | 249 'target_defaults': { |
| 235 'xcode_settings': { | 250 'xcode_settings': { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 266 }, | 281 }, |
| 267 'target_conditions': [ | 282 'target_conditions': [ |
| 268 ['_type!="static_library"', { | 283 ['_type!="static_library"', { |
| 269 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 284 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
| 270 }], | 285 }], |
| 271 ], # target_conditions | 286 ], # target_conditions |
| 272 }, # target_defaults | 287 }, # target_defaults |
| 273 }], # OS=="mac" | 288 }], # OS=="mac" |
| 274 ], | 289 ], |
| 275 } | 290 } |
| OLD | NEW |