OLD | NEW |
1 # Copyright 2013 the V8 project authors. All rights reserved. | 1 # Copyright 2013 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 }], | 369 }], |
370 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 370 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
371 or OS=="netbsd" or OS=="mac" or OS=="android") and \ | 371 or OS=="netbsd" or OS=="mac" or OS=="android") and \ |
372 (v8_target_arch=="arm" or v8_target_arch=="ia32" or \ | 372 (v8_target_arch=="arm" or v8_target_arch=="ia32" or \ |
373 v8_target_arch=="mipsel")', { | 373 v8_target_arch=="mipsel")', { |
374 # Check whether the host compiler and target compiler support the | 374 # Check whether the host compiler and target compiler support the |
375 # '-m32' option and set it if so. | 375 # '-m32' option and set it if so. |
376 'target_conditions': [ | 376 'target_conditions': [ |
377 ['_toolset=="host"', { | 377 ['_toolset=="host"', { |
378 'variables': { | 378 'variables': { |
379 'm32flag': '<!((echo | $(echo ${CXX_host:-$(which g++)}) -m32 -E -
> /dev/null 2>&1) && echo "-m32" || true)', | 379 'm32flag': '<!(($(echo ${CXX_host:-$(which g++)}) -m32 -E - > /dev
/null 2>&1 < /dev/null) && echo "-m32" || true)', |
380 }, | 380 }, |
381 'cflags': [ '<(m32flag)' ], | 381 'cflags': [ '<(m32flag)' ], |
382 'ldflags': [ '<(m32flag)' ], | 382 'ldflags': [ '<(m32flag)' ], |
383 'xcode_settings': { | 383 'xcode_settings': { |
384 'ARCHS': [ 'i386' ], | 384 'ARCHS': [ 'i386' ], |
385 }, | 385 }, |
386 }], | 386 }], |
387 ['_toolset=="target"', { | 387 ['_toolset=="target"', { |
388 'variables': { | 388 'variables': { |
389 'm32flag': '<!((echo | $(echo ${CXX_target:-<(CXX)}) -m32 -E - > /
dev/null 2>&1) && echo "-m32" || true)', | 389 'm32flag': '<!(($(echo ${CXX_target:-<(CXX)}) -m32 -E - > /dev/nul
l 2>&1 < /dev/null) && echo "-m32" || true)', |
390 'clang%': 0, | 390 'clang%': 0, |
391 }, | 391 }, |
392 'conditions': [ | 392 'conditions': [ |
393 ['(OS!="android" or clang==1) and \ | 393 ['(OS!="android" or clang==1) and \ |
394 nacl_target_arch!="nacl_x64"', { | 394 nacl_target_arch!="nacl_x64"', { |
395 'cflags': [ '<(m32flag)' ], | 395 'cflags': [ '<(m32flag)' ], |
396 'ldflags': [ '<(m32flag)' ], | 396 'ldflags': [ '<(m32flag)' ], |
397 }], | 397 }], |
398 ], | 398 ], |
399 'xcode_settings': { | 399 'xcode_settings': { |
400 'ARCHS': [ 'i386' ], | 400 'ARCHS': [ 'i386' ], |
401 }, | 401 }, |
402 }], | 402 }], |
403 ], | 403 ], |
404 }], | 404 }], |
405 ['(OS=="linux") and (v8_target_arch=="x64")', { | 405 ['(OS=="linux") and (v8_target_arch=="x64")', { |
406 # Check whether the host compiler and target compiler support the | 406 # Check whether the host compiler and target compiler support the |
407 # '-m64' option and set it if so. | 407 # '-m64' option and set it if so. |
408 'target_conditions': [ | 408 'target_conditions': [ |
409 ['_toolset=="host"', { | 409 ['_toolset=="host"', { |
410 'variables': { | 410 'variables': { |
411 'm64flag': '<!((echo | $(echo ${CXX_host:-$(which g++)}) -m64 -E -
> /dev/null 2>&1) && echo "-m64" || true)', | 411 'm64flag': '<!(($(echo ${CXX_host:-$(which g++)}) -m64 -E - > /dev
/null 2>&1 < /dev/null) && echo "-m64" || true)', |
412 }, | 412 }, |
413 'cflags': [ '<(m64flag)' ], | 413 'cflags': [ '<(m64flag)' ], |
414 'ldflags': [ '<(m64flag)' ], | 414 'ldflags': [ '<(m64flag)' ], |
415 }], | 415 }], |
416 ['_toolset=="target"', { | 416 ['_toolset=="target"', { |
417 'variables': { | 417 'variables': { |
418 'm64flag': '<!((echo | $(echo ${CXX_target:-<(CXX)}) -m64 -E - > /
dev/null 2>&1) && echo "-m64" || true)', | 418 'm64flag': '<!(($(echo ${CXX_target:-<(CXX)}) -m64 -E - > /dev/nul
l 2>&1 < /dev/null) && echo "-m64" || true)', |
419 }, | 419 }, |
420 'cflags': [ '<(m64flag)' ], | 420 'cflags': [ '<(m64flag)' ], |
421 'ldflags': [ '<(m64flag)' ], | 421 'ldflags': [ '<(m64flag)' ], |
422 }] | 422 }] |
423 ], | 423 ], |
424 }], | 424 }], |
425 ['OS=="freebsd" or OS=="openbsd"', { | 425 ['OS=="freebsd" or OS=="openbsd"', { |
426 'cflags': [ '-I/usr/local/include' ], | 426 'cflags': [ '-I/usr/local/include' ], |
427 }], | 427 }], |
428 ['OS=="netbsd"', { | 428 ['OS=="netbsd"', { |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 'OptimizeReferences': '2', | 682 'OptimizeReferences': '2', |
683 'EnableCOMDATFolding': '2', | 683 'EnableCOMDATFolding': '2', |
684 }, | 684 }, |
685 }, | 685 }, |
686 }], # OS=="win" | 686 }], # OS=="win" |
687 ], # conditions | 687 ], # conditions |
688 }, # Release | 688 }, # Release |
689 }, # configurations | 689 }, # configurations |
690 }, # target_defaults | 690 }, # target_defaults |
691 } | 691 } |
OLD | NEW |