| OLD | NEW |
| 1 # Copyright 2011 the V8 project authors. All rights reserved. | 1 # Copyright 2011 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 'CPPDEFINES': ['V8_FAST_TLS'], | 82 'CPPDEFINES': ['V8_FAST_TLS'], |
| 83 }, | 83 }, |
| 84 'liveobjectlist:on': { | 84 'liveobjectlist:on': { |
| 85 'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT', 'INSPECTOR', | 85 'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT', 'INSPECTOR', |
| 86 'LIVE_OBJECT_LIST', 'OBJECT_PRINT'], | 86 'LIVE_OBJECT_LIST', 'OBJECT_PRINT'], |
| 87 } | 87 } |
| 88 }, | 88 }, |
| 89 'gcc': { | 89 'gcc': { |
| 90 'all': { | 90 'all': { |
| 91 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], | 91 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], |
| 92 'CXXFLAGS': ['$CCFLAGS', '-fno-rtti', '-fno-exceptions'], | 92 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions'], |
| 93 }, | 93 }, |
| 94 'visibility:hidden': { | 94 'visibility:hidden': { |
| 95 # Use visibility=default to disable this. | 95 # Use visibility=default to disable this. |
| 96 'CXXFLAGS': ['-fvisibility=hidden'] | 96 'CXXFLAGS': ['-fvisibility=hidden'] |
| 97 }, | 97 }, |
| 98 'strictaliasing:off': { | 98 'strictaliasing:off': { |
| 99 'CCFLAGS': ['-fno-strict-aliasing'] | 99 'CCFLAGS': ['-fno-strict-aliasing'] |
| 100 }, | 100 }, |
| 101 'mode:debug': { | 101 'mode:debug': { |
| 102 'CCFLAGS': ['-g', '-O0'], | 102 'CCFLAGS': ['-g', '-O0'], |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 'gdbjit:on': { | 223 'gdbjit:on': { |
| 224 'CPPDEFINES': ['ENABLE_GDB_JIT_INTERFACE'] | 224 'CPPDEFINES': ['ENABLE_GDB_JIT_INTERFACE'] |
| 225 }, | 225 }, |
| 226 'compress_startup_data:bz2': { | 226 'compress_startup_data:bz2': { |
| 227 'CPPDEFINES': ['COMPRESS_STARTUP_DATA_BZ2'] | 227 'CPPDEFINES': ['COMPRESS_STARTUP_DATA_BZ2'] |
| 228 } | 228 } |
| 229 }, | 229 }, |
| 230 'msvc': { | 230 'msvc': { |
| 231 'all': { | 231 'all': { |
| 232 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], | 232 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], |
| 233 'CXXFLAGS': ['$CCFLAGS', '/GR-', '/Gy'], | 233 'CXXFLAGS': ['/GR-', '/Gy'], |
| 234 'CPPDEFINES': ['WIN32'], | 234 'CPPDEFINES': ['WIN32'], |
| 235 'LINKFLAGS': ['/INCREMENTAL:NO', '/NXCOMPAT', '/IGNORE:4221'], | 235 'LINKFLAGS': ['/INCREMENTAL:NO', '/NXCOMPAT', '/IGNORE:4221'], |
| 236 'CCPDBFLAGS': ['/Zi'] | 236 'CCPDBFLAGS': ['/Zi'] |
| 237 }, | 237 }, |
| 238 'verbose:off': { | 238 'verbose:off': { |
| 239 'DIALECTFLAGS': ['/nologo'], | 239 'DIALECTFLAGS': ['/nologo'], |
| 240 'ARFLAGS': ['/NOLOGO'] | 240 'ARFLAGS': ['/NOLOGO'] |
| 241 }, | 241 }, |
| 242 'arch:ia32': { | 242 'arch:ia32': { |
| 243 'CPPDEFINES': ['V8_TARGET_ARCH_IA32', '_USE_32BIT_TIME_T'], | 243 'CPPDEFINES': ['V8_TARGET_ARCH_IA32', '_USE_32BIT_TIME_T'], |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 'all': { | 393 'all': { |
| 394 'WARNINGFLAGS': ['/WX', '/wd4018', '/wd4244'] | 394 'WARNINGFLAGS': ['/WX', '/wd4018', '/wd4244'] |
| 395 } | 395 } |
| 396 } | 396 } |
| 397 } | 397 } |
| 398 | 398 |
| 399 | 399 |
| 400 CCTEST_EXTRA_FLAGS = { | 400 CCTEST_EXTRA_FLAGS = { |
| 401 'all': { | 401 'all': { |
| 402 'CPPPATH': [join(root_dir, 'src')], | 402 'CPPPATH': [join(root_dir, 'src')], |
| 403 'library:shared': { |
| 404 'CPPDEFINES': ['USING_V8_SHARED'] |
| 405 }, |
| 403 }, | 406 }, |
| 404 'gcc': { | 407 'gcc': { |
| 405 'all': { | 408 'all': { |
| 406 'LIBPATH': [abspath('.')], | 409 'LIBPATH': [abspath('.')], |
| 407 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], | 410 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], |
| 408 'CXXFLAGS': ['$CCFLAGS', '-fno-rtti', '-fno-exceptions'], | 411 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions'], |
| 409 'LINKFLAGS': ['$CCFLAGS'], | 412 'LINKFLAGS': ['$CCFLAGS'], |
| 410 }, | 413 }, |
| 411 'os:linux': { | 414 'os:linux': { |
| 412 'LIBS': ['pthread'], | 415 'LIBS': ['pthread'], |
| 413 }, | 416 }, |
| 414 'os:macos': { | 417 'os:macos': { |
| 415 'LIBS': ['pthread'], | 418 'LIBS': ['pthread'], |
| 416 }, | 419 }, |
| 417 'os:freebsd': { | 420 'os:freebsd': { |
| 418 'LIBS': ['execinfo', 'pthread'] | 421 'LIBS': ['execinfo', 'pthread'] |
| (...skipping 10 matching lines...) Expand all Loading... |
| 429 }, | 432 }, |
| 430 'arch:arm': { | 433 'arch:arm': { |
| 431 'LINKFLAGS': ARM_LINK_FLAGS | 434 'LINKFLAGS': ARM_LINK_FLAGS |
| 432 }, | 435 }, |
| 433 }, | 436 }, |
| 434 'msvc': { | 437 'msvc': { |
| 435 'all': { | 438 'all': { |
| 436 'CPPDEFINES': ['_HAS_EXCEPTIONS=0'], | 439 'CPPDEFINES': ['_HAS_EXCEPTIONS=0'], |
| 437 'LIBS': ['winmm', 'ws2_32'] | 440 'LIBS': ['winmm', 'ws2_32'] |
| 438 }, | 441 }, |
| 439 'library:shared': { | |
| 440 'CPPDEFINES': ['USING_V8_SHARED'] | |
| 441 }, | |
| 442 'arch:ia32': { | 442 'arch:ia32': { |
| 443 'CPPDEFINES': ['V8_TARGET_ARCH_IA32'] | 443 'CPPDEFINES': ['V8_TARGET_ARCH_IA32'] |
| 444 }, | 444 }, |
| 445 'arch:x64': { | 445 'arch:x64': { |
| 446 'CPPDEFINES': ['V8_TARGET_ARCH_X64'], | 446 'CPPDEFINES': ['V8_TARGET_ARCH_X64'], |
| 447 'LINKFLAGS': ['/STACK:2091752'] | 447 'LINKFLAGS': ['/STACK:2091752'] |
| 448 }, | 448 }, |
| 449 } | 449 } |
| 450 } | 450 } |
| 451 | 451 |
| 452 | 452 |
| 453 SAMPLE_FLAGS = { | 453 SAMPLE_FLAGS = { |
| 454 'all': { | 454 'all': { |
| 455 'CPPPATH': [join(abspath('.'), 'include')], | 455 'CPPPATH': [join(abspath('.'), 'include')], |
| 456 'library:shared': { |
| 457 'CPPDEFINES': ['USING_V8_SHARED'] |
| 458 }, |
| 456 }, | 459 }, |
| 457 'gcc': { | 460 'gcc': { |
| 458 'all': { | 461 'all': { |
| 459 'LIBPATH': ['.'], | 462 'LIBPATH': ['.'], |
| 460 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], | 463 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], |
| 461 'CXXFLAGS': ['$CCFLAGS', '-fno-rtti', '-fno-exceptions'], | 464 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions'], |
| 462 'LINKFLAGS': ['$CCFLAGS'], | 465 'LINKFLAGS': ['$CCFLAGS'], |
| 463 }, | 466 }, |
| 464 'os:linux': { | 467 'os:linux': { |
| 465 'LIBS': ['pthread'], | 468 'LIBS': ['pthread'], |
| 466 }, | 469 }, |
| 467 'os:macos': { | 470 'os:macos': { |
| 468 'LIBS': ['pthread'], | 471 'LIBS': ['pthread'], |
| 469 }, | 472 }, |
| 470 'os:freebsd': { | 473 'os:freebsd': { |
| 471 'LIBPATH' : ['/usr/local/lib'], | 474 'LIBPATH' : ['/usr/local/lib'], |
| 472 'LIBS': ['execinfo', 'pthread'] | 475 'LIBS': ['execinfo', 'pthread'] |
| 473 }, | 476 }, |
| 474 'os:solaris': { | 477 'os:solaris': { |
| 478 # On Solaris, to get isinf, INFINITY, fpclassify and other macros one |
| 479 # needs to define __C99FEATURES__. |
| 480 'CPPDEFINES': ['__C99FEATURES__'], |
| 475 'LIBPATH' : ['/usr/local/lib'], | 481 'LIBPATH' : ['/usr/local/lib'], |
| 476 'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'], | 482 'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'], |
| 477 'LINKFLAGS': ['-mt'] | 483 'LINKFLAGS': ['-mt'] |
| 478 }, | 484 }, |
| 479 'os:openbsd': { | 485 'os:openbsd': { |
| 480 'LIBPATH' : ['/usr/local/lib'], | 486 'LIBPATH' : ['/usr/local/lib'], |
| 481 'LIBS': ['execinfo', 'pthread'] | 487 'LIBS': ['execinfo', 'pthread'] |
| 482 }, | 488 }, |
| 483 'os:win32': { | 489 'os:win32': { |
| 484 'LIBS': ['winmm', 'ws2_32'] | 490 'LIBS': ['winmm', 'ws2_32'] |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 'all': { | 571 'all': { |
| 566 'LIBS': ['winmm', 'ws2_32'] | 572 'LIBS': ['winmm', 'ws2_32'] |
| 567 }, | 573 }, |
| 568 'verbose:off': { | 574 'verbose:off': { |
| 569 'CCFLAGS': ['/nologo'], | 575 'CCFLAGS': ['/nologo'], |
| 570 'LINKFLAGS': ['/NOLOGO'] | 576 'LINKFLAGS': ['/NOLOGO'] |
| 571 }, | 577 }, |
| 572 'verbose:on': { | 578 'verbose:on': { |
| 573 'LINKFLAGS': ['/VERBOSE'] | 579 'LINKFLAGS': ['/VERBOSE'] |
| 574 }, | 580 }, |
| 575 'library:shared': { | |
| 576 'CPPDEFINES': ['USING_V8_SHARED'] | |
| 577 }, | |
| 578 'prof:on': { | 581 'prof:on': { |
| 579 'LINKFLAGS': ['/MAP'] | 582 'LINKFLAGS': ['/MAP'] |
| 580 }, | 583 }, |
| 581 'mode:release': { | 584 'mode:release': { |
| 582 'CCFLAGS': ['/O2'], | 585 'CCFLAGS': ['/O2'], |
| 583 'LINKFLAGS': ['/OPT:REF', '/OPT:ICF'], | 586 'LINKFLAGS': ['/OPT:REF', '/OPT:ICF'], |
| 584 'msvcrt:static': { | 587 'msvcrt:static': { |
| 585 'CCFLAGS': ['/MT'] | 588 'CCFLAGS': ['/MT'] |
| 586 }, | 589 }, |
| 587 'msvcrt:shared': { | 590 'msvcrt:shared': { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 618 'msvcrt:shared': { | 621 'msvcrt:shared': { |
| 619 'CCFLAGS': ['/MDd'] | 622 'CCFLAGS': ['/MDd'] |
| 620 } | 623 } |
| 621 } | 624 } |
| 622 } | 625 } |
| 623 } | 626 } |
| 624 | 627 |
| 625 | 628 |
| 626 PREPARSER_FLAGS = { | 629 PREPARSER_FLAGS = { |
| 627 'all': { | 630 'all': { |
| 628 'CPPPATH': [join(abspath('.'), 'include'), join(abspath('.'), 'src')] | 631 'CPPPATH': [join(abspath('.'), 'include'), join(abspath('.'), 'src')], |
| 632 'library:shared': { |
| 633 'CPPDEFINES': ['USING_V8_SHARED'] |
| 634 }, |
| 629 }, | 635 }, |
| 630 'gcc': { | 636 'gcc': { |
| 631 'all': { | 637 'all': { |
| 632 'LIBPATH': ['.'], | 638 'LIBPATH': ['.'], |
| 633 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], | 639 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], |
| 634 'CXXFLAGS': ['$CCFLAGS', '-fno-rtti', '-fno-exceptions'], | 640 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions'], |
| 635 'LINKFLAGS': ['$CCFLAGS'], | 641 'LINKFLAGS': ['$CCFLAGS'], |
| 636 }, | 642 }, |
| 637 'os:win32': { | 643 'os:win32': { |
| 638 'LIBS': ['winmm', 'ws2_32'] | 644 'LIBS': ['winmm', 'ws2_32'] |
| 639 }, | 645 }, |
| 640 'arch:arm': { | 646 'arch:arm': { |
| 641 'LINKFLAGS': ARM_LINK_FLAGS, | 647 'LINKFLAGS': ARM_LINK_FLAGS, |
| 642 'armeabi:soft' : { | 648 'armeabi:soft' : { |
| 643 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'], | 649 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'], |
| 644 'simulator:none': { | 650 'simulator:none': { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 'CPPDEFINES': ['__mips_hard_float=1'], | 711 'CPPDEFINES': ['__mips_hard_float=1'], |
| 706 } | 712 } |
| 707 }, | 713 }, |
| 708 'mode:release': { | 714 'mode:release': { |
| 709 'CCFLAGS': ['-O2'] | 715 'CCFLAGS': ['-O2'] |
| 710 }, | 716 }, |
| 711 'mode:debug': { | 717 'mode:debug': { |
| 712 'CCFLAGS': ['-g', '-O0'], | 718 'CCFLAGS': ['-g', '-O0'], |
| 713 'CPPDEFINES': ['DEBUG'] | 719 'CPPDEFINES': ['DEBUG'] |
| 714 }, | 720 }, |
| 721 'os:freebsd': { |
| 722 'LIBPATH' : ['/usr/local/lib'], |
| 723 }, |
| 715 }, | 724 }, |
| 716 'msvc': { | 725 'msvc': { |
| 717 'all': { | 726 'all': { |
| 718 'LIBS': ['winmm', 'ws2_32'] | 727 'LIBS': ['winmm', 'ws2_32'] |
| 719 }, | 728 }, |
| 720 'verbose:off': { | 729 'verbose:off': { |
| 721 'CCFLAGS': ['/nologo'], | 730 'CCFLAGS': ['/nologo'], |
| 722 'LINKFLAGS': ['/NOLOGO'] | 731 'LINKFLAGS': ['/NOLOGO'] |
| 723 }, | 732 }, |
| 724 'verbose:on': { | 733 'verbose:on': { |
| 725 'LINKFLAGS': ['/VERBOSE'] | 734 'LINKFLAGS': ['/VERBOSE'] |
| 726 }, | 735 }, |
| 727 'library:shared': { | |
| 728 'CPPDEFINES': ['USING_V8_SHARED'] | |
| 729 }, | |
| 730 'prof:on': { | 736 'prof:on': { |
| 731 'LINKFLAGS': ['/MAP'] | 737 'LINKFLAGS': ['/MAP'] |
| 732 }, | 738 }, |
| 733 'mode:release': { | 739 'mode:release': { |
| 734 'CCFLAGS': ['/O2'], | 740 'CCFLAGS': ['/O2'], |
| 735 'LINKFLAGS': ['/OPT:REF', '/OPT:ICF'], | 741 'LINKFLAGS': ['/OPT:REF', '/OPT:ICF'], |
| 736 'msvcrt:static': { | 742 'msvcrt:static': { |
| 737 'CCFLAGS': ['/MT'] | 743 'CCFLAGS': ['/MT'] |
| 738 }, | 744 }, |
| 739 'msvcrt:shared': { | 745 'msvcrt:shared': { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 } | 778 } |
| 773 } | 779 } |
| 774 } | 780 } |
| 775 } | 781 } |
| 776 | 782 |
| 777 | 783 |
| 778 D8_FLAGS = { | 784 D8_FLAGS = { |
| 779 'gcc': { | 785 'gcc': { |
| 780 'all': { | 786 'all': { |
| 781 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], | 787 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], |
| 782 'CXXFLAGS': ['$CCFLAGS', '-fno-rtti', '-fno-exceptions'], | 788 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions'], |
| 783 'LINKFLAGS': ['$CCFLAGS'], | 789 'LINKFLAGS': ['$CCFLAGS'], |
| 784 }, | 790 }, |
| 785 'console:readline': { | 791 'console:readline': { |
| 786 'LIBS': ['readline'] | 792 'LIBS': ['readline'] |
| 787 }, | 793 }, |
| 788 'os:linux': { | 794 'os:linux': { |
| 789 'LIBS': ['pthread'], | 795 'LIBS': ['pthread'], |
| 790 }, | 796 }, |
| 791 'os:macos': { | 797 'os:macos': { |
| 792 'LIBS': ['pthread'], | 798 'LIBS': ['pthread'], |
| 793 }, | 799 }, |
| 794 'os:freebsd': { | 800 'os:freebsd': { |
| 795 'LIBS': ['pthread'], | 801 'LIBS': ['pthread'], |
| 796 }, | 802 }, |
| 797 'os:solaris': { | 803 'os:solaris': { |
| 798 'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'], | 804 'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'], |
| 799 'LINKFLAGS': ['-mt'] | 805 'LINKFLAGS': ['-mt'] |
| 800 }, | 806 }, |
| 801 'os:openbsd': { | 807 'os:openbsd': { |
| 802 'LIBS': ['pthread'], | 808 'LIBS': ['pthread'], |
| 803 }, | 809 }, |
| 804 'os:win32': { | 810 'os:win32': { |
| 805 'LIBS': ['winmm', 'ws2_32'], | 811 'LIBS': ['winmm', 'ws2_32'], |
| 806 }, | 812 }, |
| 807 'arch:arm': { | 813 'arch:arm': { |
| 808 'LINKFLAGS': ARM_LINK_FLAGS | 814 'LINKFLAGS': ARM_LINK_FLAGS |
| 809 }, | 815 }, |
| 816 'compress_startup_data:bz2': { |
| 817 'CPPDEFINES': ['COMPRESS_STARTUP_DATA_BZ2'], |
| 818 'os:linux': { |
| 819 'LIBS': ['bz2'] |
| 820 } |
| 821 } |
| 810 }, | 822 }, |
| 811 'msvc': { | 823 'msvc': { |
| 812 'all': { | 824 'all': { |
| 813 'LIBS': ['winmm', 'ws2_32'] | 825 'LIBS': ['winmm', 'ws2_32'] |
| 814 } | 826 } |
| 815 } | 827 } |
| 816 } | 828 } |
| 817 | 829 |
| 818 | 830 |
| 819 SUFFIXES = { | 831 SUFFIXES = { |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1139 | 1151 |
| 1140 def VerifyOptions(env): | 1152 def VerifyOptions(env): |
| 1141 if not IsLegal(env, 'mode', ['debug', 'release']): | 1153 if not IsLegal(env, 'mode', ['debug', 'release']): |
| 1142 return False | 1154 return False |
| 1143 if not IsLegal(env, 'sample', ["shell", "process", "lineprocessor"]): | 1155 if not IsLegal(env, 'sample', ["shell", "process", "lineprocessor"]): |
| 1144 return False | 1156 return False |
| 1145 if not IsLegal(env, 'regexp', ["native", "interpreted"]): | 1157 if not IsLegal(env, 'regexp', ["native", "interpreted"]): |
| 1146 return False | 1158 return False |
| 1147 if env['os'] == 'win32' and env['library'] == 'shared' and env['prof'] == 'on'
: | 1159 if env['os'] == 'win32' and env['library'] == 'shared' and env['prof'] == 'on'
: |
| 1148 Abort("Profiling on windows only supported for static library.") | 1160 Abort("Profiling on windows only supported for static library.") |
| 1149 if env['gdbjit'] == 'on' and (env['os'] != 'linux' or (env['arch'] != 'ia32' a
nd env['arch'] != 'x64' and env['arch'] != 'arm')): | 1161 if env['gdbjit'] == 'on' and ((env['os'] != 'linux' and env['os'] != 'macos')
or (env['arch'] != 'ia32' and env['arch'] != 'x64' and env['arch'] != 'arm')): |
| 1150 Abort("GDBJIT interface is supported only for Intel-compatible (ia32 or x64)
Linux target.") | 1162 Abort("GDBJIT interface is supported only for Intel-compatible (ia32 or x64)
Linux/OSX target.") |
| 1151 if env['os'] == 'win32' and env['soname'] == 'on': | 1163 if env['os'] == 'win32' and env['soname'] == 'on': |
| 1152 Abort("Shared Object soname not applicable for Windows.") | 1164 Abort("Shared Object soname not applicable for Windows.") |
| 1153 if env['soname'] == 'on' and env['library'] == 'static': | 1165 if env['soname'] == 'on' and env['library'] == 'static': |
| 1154 Abort("Shared Object soname not applicable for static library.") | 1166 Abort("Shared Object soname not applicable for static library.") |
| 1155 if env['os'] != 'win32' and env['pgo'] != 'off': | 1167 if env['os'] != 'win32' and env['pgo'] != 'off': |
| 1156 Abort("Profile guided optimization only supported on Windows.") | 1168 Abort("Profile guided optimization only supported on Windows.") |
| 1157 if env['cache'] and not os.path.isdir(env['cache']): | 1169 if env['cache'] and not os.path.isdir(env['cache']): |
| 1158 Abort("The specified cache directory does not exist.") | 1170 Abort("The specified cache directory does not exist.") |
| 1159 if not (env['arch'] == 'arm' or env['simulator'] == 'arm') and ('unalignedacce
sses' in ARGUMENTS): | 1171 if not (env['arch'] == 'arm' or env['simulator'] == 'arm') and ('unalignedacce
sses' in ARGUMENTS): |
| 1160 print env['arch'] | 1172 print env['arch'] |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1359 library = env.StaticLibrary(library_name, object_files) | 1371 library = env.StaticLibrary(library_name, object_files) |
| 1360 preparser_library = env.StaticLibrary(preparser_library_name, | 1372 preparser_library = env.StaticLibrary(preparser_library_name, |
| 1361 preparser_files) | 1373 preparser_files) |
| 1362 else: | 1374 else: |
| 1363 # There seems to be a glitch in the way scons decides where to put | 1375 # There seems to be a glitch in the way scons decides where to put |
| 1364 # PDB files when compiling using MSVC so we specify it manually. | 1376 # PDB files when compiling using MSVC so we specify it manually. |
| 1365 # This should not affect any other platforms. | 1377 # This should not affect any other platforms. |
| 1366 pdb_name = library_name + '.dll.pdb' | 1378 pdb_name = library_name + '.dll.pdb' |
| 1367 library = env.SharedLibrary(library_name, object_files, PDB=pdb_name) | 1379 library = env.SharedLibrary(library_name, object_files, PDB=pdb_name) |
| 1368 preparser_pdb_name = preparser_library_name + '.dll.pdb'; | 1380 preparser_pdb_name = preparser_library_name + '.dll.pdb'; |
| 1381 preparser_soname = 'lib' + preparser_library_name + '.so'; |
| 1369 preparser_library = env.SharedLibrary(preparser_library_name, | 1382 preparser_library = env.SharedLibrary(preparser_library_name, |
| 1370 preparser_files, | 1383 preparser_files, |
| 1371 PDB=preparser_pdb_name) | 1384 PDB=preparser_pdb_name, |
| 1385 SONAME=preparser_soname) |
| 1372 context.library_targets.append(library) | 1386 context.library_targets.append(library) |
| 1373 context.library_targets.append(preparser_library) | 1387 context.library_targets.append(preparser_library) |
| 1374 | 1388 |
| 1375 d8_env = Environment(tools=tools) | 1389 d8_env = Environment(tools=tools) |
| 1376 d8_env.Replace(**context.flags['d8']) | 1390 d8_env.Replace(**context.flags['d8']) |
| 1377 context.ApplyEnvOverrides(d8_env) | 1391 context.ApplyEnvOverrides(d8_env) |
| 1378 shell = d8_env.Program('d8' + suffix, object_files + shell_files) | 1392 shell = d8_env.Program('d8' + suffix, object_files + shell_files) |
| 1379 context.d8_targets.append(shell) | 1393 context.d8_targets.append(shell) |
| 1380 | 1394 |
| 1381 for sample in context.samples: | 1395 for sample in context.samples: |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1404 ) | 1418 ) |
| 1405 context.cctest_targets.append(cctest_program) | 1419 context.cctest_targets.append(cctest_program) |
| 1406 | 1420 |
| 1407 preparser_env = env.Copy() | 1421 preparser_env = env.Copy() |
| 1408 preparser_env.Replace(**context.flags['preparser']) | 1422 preparser_env.Replace(**context.flags['preparser']) |
| 1409 preparser_env.Prepend(LIBS=[preparser_library_name]) | 1423 preparser_env.Prepend(LIBS=[preparser_library_name]) |
| 1410 context.ApplyEnvOverrides(preparser_env) | 1424 context.ApplyEnvOverrides(preparser_env) |
| 1411 preparser_object = preparser_env.SConscript( | 1425 preparser_object = preparser_env.SConscript( |
| 1412 join('preparser', 'SConscript'), | 1426 join('preparser', 'SConscript'), |
| 1413 build_dir=join('obj', 'preparser', target_id), | 1427 build_dir=join('obj', 'preparser', target_id), |
| 1414 exports='context', | 1428 exports='context tools', |
| 1415 duplicate=False | 1429 duplicate=False |
| 1416 ) | 1430 ) |
| 1417 preparser_name = join('obj', 'preparser', target_id, 'preparser') | 1431 preparser_name = join('obj', 'preparser', target_id, 'preparser') |
| 1418 preparser_program = preparser_env.Program(preparser_name, preparser_object); | 1432 preparser_program = preparser_env.Program(preparser_name, preparser_object); |
| 1419 preparser_env.Depends(preparser_program, preparser_library) | 1433 preparser_env.Depends(preparser_program, preparser_library) |
| 1420 context.preparser_targets.append(preparser_program) | 1434 context.preparser_targets.append(preparser_program) |
| 1421 | 1435 |
| 1422 return context | 1436 return context |
| 1423 | 1437 |
| 1424 | 1438 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1469 # version of scons. Also, there's a bug in some revisions that | 1483 # version of scons. Also, there's a bug in some revisions that |
| 1470 # doesn't allow this flag to be set, so we swallow any exceptions. | 1484 # doesn't allow this flag to be set, so we swallow any exceptions. |
| 1471 # Lovely. | 1485 # Lovely. |
| 1472 try: | 1486 try: |
| 1473 SetOption('warn', 'no-deprecated') | 1487 SetOption('warn', 'no-deprecated') |
| 1474 except: | 1488 except: |
| 1475 pass | 1489 pass |
| 1476 | 1490 |
| 1477 | 1491 |
| 1478 Build() | 1492 Build() |
| OLD | NEW |