| 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 'CharacterSet': '1', | 272 'CharacterSet': '1', |
| 273 }, | 273 }, |
| 274 }], | 274 }], |
| 275 ['OS=="win" and v8_enable_prof==1', { | 275 ['OS=="win" and v8_enable_prof==1', { |
| 276 'msvs_settings': { | 276 'msvs_settings': { |
| 277 'VCLinkerTool': { | 277 'VCLinkerTool': { |
| 278 'GenerateMapFile': 'true', | 278 'GenerateMapFile': 'true', |
| 279 }, | 279 }, |
| 280 }, | 280 }, |
| 281 }], | 281 }], |
| 282 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 282 ['OS in "linux freebsd dragonflybsd openbsd solaris netbsd".split()', { |
| 283 or OS=="netbsd"', { | |
| 284 'conditions': [ | 283 'conditions': [ |
| 285 [ 'v8_no_strict_aliasing==1', { | 284 [ 'v8_no_strict_aliasing==1', { |
| 286 'cflags': [ '-fno-strict-aliasing' ], | 285 'cflags': [ '-fno-strict-aliasing' ], |
| 287 }], | 286 }], |
| 288 ], # conditions | 287 ], # conditions |
| 289 }], | 288 }], |
| 290 ['OS=="solaris"', { | 289 ['OS=="solaris"', { |
| 291 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. | 290 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. |
| 292 }], | 291 }], |
| 293 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 292 ['(OS=="linux" or OS=="freebsd" or OS=="dragonflybsd" or OS=="openbsd" \ |
| 294 or OS=="netbsd" or OS=="mac" or OS=="android") and \ | 293 or OS=="solaris" or OS=="netbsd" or OS=="mac" or OS=="android") and \ |
| 295 (v8_target_arch=="arm" or v8_target_arch=="ia32" or \ | 294 (v8_target_arch=="arm" or v8_target_arch=="ia32" or \ |
| 296 v8_target_arch=="mipsel")', { | 295 v8_target_arch=="mipsel")', { |
| 297 # Check whether the host compiler and target compiler support the | 296 # Check whether the host compiler and target compiler support the |
| 298 # '-m32' option and set it if so. | 297 # '-m32' option and set it if so. |
| 299 'target_conditions': [ | 298 'target_conditions': [ |
| 300 ['_toolset=="host"', { | 299 ['_toolset=="host"', { |
| 301 'variables': { | 300 'variables': { |
| 302 'm32flag': '<!((echo | $(echo ${CXX_host:-$(which g++)}) -m32 -E -
> /dev/null 2>&1) && echo "-m32" || true)', | 301 'm32flag': '<!((echo | $(echo ${CXX_host:-$(which g++)}) -m32 -E -
> /dev/null 2>&1) && echo "-m32" || true)', |
| 303 }, | 302 }, |
| 304 'cflags': [ '<(m32flag)' ], | 303 'cflags': [ '<(m32flag)' ], |
| (...skipping 12 matching lines...) Expand all Loading... |
| 317 'cflags': [ '<(m32flag)' ], | 316 'cflags': [ '<(m32flag)' ], |
| 318 'ldflags': [ '<(m32flag)' ], | 317 'ldflags': [ '<(m32flag)' ], |
| 319 }], | 318 }], |
| 320 ], | 319 ], |
| 321 'xcode_settings': { | 320 'xcode_settings': { |
| 322 'ARCHS': [ 'i386' ], | 321 'ARCHS': [ 'i386' ], |
| 323 }, | 322 }, |
| 324 }], | 323 }], |
| 325 ], | 324 ], |
| 326 }], | 325 }], |
| 327 ['OS=="freebsd" or OS=="openbsd"', { | 326 ['OS=="freebsd" or OS=="dragonflybsd" or OS=="openbsd"', { |
| 328 'cflags': [ '-I/usr/local/include' ], | 327 'cflags': [ '-I/usr/local/include' ], |
| 329 }], | 328 }], |
| 330 ['OS=="netbsd"', { | 329 ['OS=="netbsd"', { |
| 331 'cflags': [ '-I/usr/pkg/include' ], | 330 'cflags': [ '-I/usr/pkg/include' ], |
| 332 }], | 331 }], |
| 333 ], # conditions | 332 ], # conditions |
| 334 'configurations': { | 333 'configurations': { |
| 335 'Debug': { | 334 'Debug': { |
| 336 'variables': { | 335 'variables': { |
| 337 'v8_enable_extra_checks%': 1, | 336 'v8_enable_extra_checks%': 1, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 356 ], | 355 ], |
| 357 }, | 356 }, |
| 358 'VCLinkerTool': { | 357 'VCLinkerTool': { |
| 359 'LinkIncremental': '2', | 358 'LinkIncremental': '2', |
| 360 }, | 359 }, |
| 361 }, | 360 }, |
| 362 'conditions': [ | 361 'conditions': [ |
| 363 ['v8_enable_extra_checks==1', { | 362 ['v8_enable_extra_checks==1', { |
| 364 'defines': ['ENABLE_EXTRA_CHECKS',], | 363 'defines': ['ENABLE_EXTRA_CHECKS',], |
| 365 }], | 364 }], |
| 366 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { | 365 ['OS in "linux freebsd dragonflybsd openbsd netbsd".split()', { |
| 367 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', | 366 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', |
| 368 '-Wnon-virtual-dtor', '-Woverloaded-virtual' ], | 367 '-Wnon-virtual-dtor', '-Woverloaded-virtual' ], |
| 369 }], | 368 }], |
| 370 ['OS=="android"', { | 369 ['OS=="android"', { |
| 371 'variables': { | 370 'variables': { |
| 372 'android_full_debug%': 1, | 371 'android_full_debug%': 1, |
| 373 }, | 372 }, |
| 374 'conditions': [ | 373 'conditions': [ |
| 375 ['android_full_debug==0', { | 374 ['android_full_debug==0', { |
| 376 # Disable full debug if we want a faster v8 in a debug build. | 375 # Disable full debug if we want a faster v8 in a debug build. |
| 377 # TODO(2304): pass DISABLE_DEBUG_ASSERT instead of hiding DEBUG. | 376 # TODO(2304): pass DISABLE_DEBUG_ASSERT instead of hiding DEBUG. |
| 378 'defines!': [ | 377 'defines!': [ |
| 379 'DEBUG', | 378 'DEBUG', |
| 380 ], | 379 ], |
| 381 }], | 380 }], |
| 382 ], | 381 ], |
| 383 }], | 382 }], |
| 384 ], | 383 ], |
| 385 }, # Debug | 384 }, # Debug |
| 386 'Release': { | 385 'Release': { |
| 387 'variables': { | 386 'variables': { |
| 388 'v8_enable_extra_checks%': 0, | 387 'v8_enable_extra_checks%': 0, |
| 389 }, | 388 }, |
| 390 'conditions': [ | 389 'conditions': [ |
| 391 ['v8_enable_extra_checks==1', { | 390 ['v8_enable_extra_checks==1', { |
| 392 'defines': ['ENABLE_EXTRA_CHECKS',], | 391 'defines': ['ENABLE_EXTRA_CHECKS',], |
| 393 }], | 392 }], |
| 394 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" \ | 393 ['OS=="linux" or OS=="freebsd" or OS=="dragonflybsd" \ |
| 395 or OS=="android"', { | 394 or OS=="openbsd" or OS=="netbsd" or OS=="android"', { |
| 396 'cflags!': [ | 395 'cflags!': [ |
| 397 '-O2', | 396 '-O2', |
| 398 '-Os', | 397 '-Os', |
| 399 ], | 398 ], |
| 400 'cflags': [ | 399 'cflags': [ |
| 401 '-fdata-sections', | 400 '-fdata-sections', |
| 402 '-ffunction-sections', | 401 '-ffunction-sections', |
| 403 '-O3', | 402 '-O3', |
| 404 ], | 403 ], |
| 405 'conditions': [ | 404 'conditions': [ |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 'OptimizeReferences': '2', | 446 'OptimizeReferences': '2', |
| 448 'EnableCOMDATFolding': '2', | 447 'EnableCOMDATFolding': '2', |
| 449 }, | 448 }, |
| 450 }, | 449 }, |
| 451 }], # OS=="win" | 450 }], # OS=="win" |
| 452 ], # conditions | 451 ], # conditions |
| 453 }, # Release | 452 }, # Release |
| 454 }, # configurations | 453 }, # configurations |
| 455 }, # target_defaults | 454 }, # target_defaults |
| 456 } | 455 } |
| OLD | NEW |