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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 'CCFLAGS': ['-ansi'], | 122 'CCFLAGS': ['-ansi'], |
123 }, | 123 }, |
124 'os:solaris': { | 124 'os:solaris': { |
125 # On Solaris, to get isinf, INFINITY, fpclassify and other macros one | 125 # On Solaris, to get isinf, INFINITY, fpclassify and other macros one |
126 # needs to define __C99FEATURES__. | 126 # needs to define __C99FEATURES__. |
127 'CPPDEFINES': ['__C99FEATURES__'], | 127 'CPPDEFINES': ['__C99FEATURES__'], |
128 'CPPPATH' : ['/usr/local/include'], | 128 'CPPPATH' : ['/usr/local/include'], |
129 'LIBPATH' : ['/usr/local/lib'], | 129 'LIBPATH' : ['/usr/local/lib'], |
130 'CCFLAGS': ['-ansi'], | 130 'CCFLAGS': ['-ansi'], |
131 }, | 131 }, |
| 132 'os:netbsd': { |
| 133 'CPPPATH' : ['/usr/pkg/include'], |
| 134 'LIBPATH' : ['/usr/pkg/lib'], |
| 135 }, |
132 'os:win32': { | 136 'os:win32': { |
133 'CCFLAGS': ['-DWIN32'], | 137 'CCFLAGS': ['-DWIN32'], |
134 'CXXFLAGS': ['-DWIN32'], | 138 'CXXFLAGS': ['-DWIN32'], |
135 }, | 139 }, |
136 'arch:ia32': { | 140 'arch:ia32': { |
137 'CPPDEFINES': ['V8_TARGET_ARCH_IA32'], | 141 'CPPDEFINES': ['V8_TARGET_ARCH_IA32'], |
138 'CCFLAGS': ['-m32'], | 142 'CCFLAGS': ['-m32'], |
139 'LINKFLAGS': ['-m32'] | 143 'LINKFLAGS': ['-m32'] |
140 }, | 144 }, |
141 'arch:arm': { | 145 'arch:arm': { |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 'os:solaris': { | 361 'os:solaris': { |
358 'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'], | 362 'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'], |
359 'LINKFLAGS': ['-mt'] | 363 'LINKFLAGS': ['-mt'] |
360 }, | 364 }, |
361 'os:openbsd': { | 365 'os:openbsd': { |
362 'LIBS': ['execinfo', 'pthread'] | 366 'LIBS': ['execinfo', 'pthread'] |
363 }, | 367 }, |
364 'os:win32': { | 368 'os:win32': { |
365 'LIBS': ['winmm', 'ws2_32'], | 369 'LIBS': ['winmm', 'ws2_32'], |
366 }, | 370 }, |
| 371 'os:netbsd': { |
| 372 'LIBS': ['execinfo', 'pthread'] |
| 373 }, |
367 'compress_startup_data:bz2': { | 374 'compress_startup_data:bz2': { |
368 'os:linux': { | 375 'os:linux': { |
369 'LIBS': ['bz2'] | 376 'LIBS': ['bz2'] |
370 } | 377 } |
371 }, | 378 }, |
372 }, | 379 }, |
373 'msvc': { | 380 'msvc': { |
374 'all': { | 381 'all': { |
375 'CPPDEFINES': ['_HAS_EXCEPTIONS=0'], | 382 'CPPDEFINES': ['_HAS_EXCEPTIONS=0'], |
376 'LIBS': ['winmm', 'ws2_32'] | 383 'LIBS': ['winmm', 'ws2_32'] |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 'os:solaris': { | 428 'os:solaris': { |
422 'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'], | 429 'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'], |
423 'LINKFLAGS': ['-mt'] | 430 'LINKFLAGS': ['-mt'] |
424 }, | 431 }, |
425 'os:openbsd': { | 432 'os:openbsd': { |
426 'LIBS': ['execinfo', 'pthread'] | 433 'LIBS': ['execinfo', 'pthread'] |
427 }, | 434 }, |
428 'os:win32': { | 435 'os:win32': { |
429 'LIBS': ['winmm', 'ws2_32'] | 436 'LIBS': ['winmm', 'ws2_32'] |
430 }, | 437 }, |
| 438 'os:netbsd': { |
| 439 'LIBS': ['execinfo', 'pthread'] |
| 440 }, |
431 'arch:arm': { | 441 'arch:arm': { |
432 'LINKFLAGS': ARM_LINK_FLAGS | 442 'LINKFLAGS': ARM_LINK_FLAGS |
433 }, | 443 }, |
434 }, | 444 }, |
435 'msvc': { | 445 'msvc': { |
436 'all': { | 446 'all': { |
437 'CPPDEFINES': ['_HAS_EXCEPTIONS=0'], | 447 'CPPDEFINES': ['_HAS_EXCEPTIONS=0'], |
438 'LIBS': ['winmm', 'ws2_32'] | 448 'LIBS': ['winmm', 'ws2_32'] |
439 }, | 449 }, |
440 'arch:ia32': { | 450 'arch:ia32': { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'], | 490 'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'], |
481 'LINKFLAGS': ['-mt'] | 491 'LINKFLAGS': ['-mt'] |
482 }, | 492 }, |
483 'os:openbsd': { | 493 'os:openbsd': { |
484 'LIBPATH' : ['/usr/local/lib'], | 494 'LIBPATH' : ['/usr/local/lib'], |
485 'LIBS': ['execinfo', 'pthread'] | 495 'LIBS': ['execinfo', 'pthread'] |
486 }, | 496 }, |
487 'os:win32': { | 497 'os:win32': { |
488 'LIBS': ['winmm', 'ws2_32'] | 498 'LIBS': ['winmm', 'ws2_32'] |
489 }, | 499 }, |
| 500 'os:netbsd': { |
| 501 'LIBPATH' : ['/usr/pkg/lib'], |
| 502 'LIBS': ['execinfo', 'pthread'] |
| 503 }, |
490 'arch:arm': { | 504 'arch:arm': { |
491 'LINKFLAGS': ARM_LINK_FLAGS, | 505 'LINKFLAGS': ARM_LINK_FLAGS, |
492 'armeabi:soft' : { | 506 'armeabi:soft' : { |
493 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'], | 507 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'], |
494 'simulator:none': { | 508 'simulator:none': { |
495 'CCFLAGS': ['-mfloat-abi=soft'], | 509 'CCFLAGS': ['-mfloat-abi=soft'], |
496 } | 510 } |
497 }, | 511 }, |
498 'armeabi:softfp' : { | 512 'armeabi:softfp' : { |
499 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'], | 513 'CPPDEFINES' : ['USE_EABI_HARDFLOAT=0'], |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 'os:solaris': { | 825 'os:solaris': { |
812 'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'], | 826 'LIBS': ['m', 'pthread', 'socket', 'nsl', 'rt'], |
813 'LINKFLAGS': ['-mt'] | 827 'LINKFLAGS': ['-mt'] |
814 }, | 828 }, |
815 'os:openbsd': { | 829 'os:openbsd': { |
816 'LIBS': ['pthread'], | 830 'LIBS': ['pthread'], |
817 }, | 831 }, |
818 'os:win32': { | 832 'os:win32': { |
819 'LIBS': ['winmm', 'ws2_32'], | 833 'LIBS': ['winmm', 'ws2_32'], |
820 }, | 834 }, |
| 835 'os:netbsd': { |
| 836 'LIBS': ['pthread'], |
| 837 }, |
821 'arch:arm': { | 838 'arch:arm': { |
822 'LINKFLAGS': ARM_LINK_FLAGS | 839 'LINKFLAGS': ARM_LINK_FLAGS |
823 }, | 840 }, |
824 'compress_startup_data:bz2': { | 841 'compress_startup_data:bz2': { |
825 'CPPDEFINES': ['COMPRESS_STARTUP_DATA_BZ2'], | 842 'CPPDEFINES': ['COMPRESS_STARTUP_DATA_BZ2'], |
826 'os:linux': { | 843 'os:linux': { |
827 'LIBS': ['bz2'] | 844 'LIBS': ['bz2'] |
828 } | 845 } |
829 } | 846 } |
830 }, | 847 }, |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
944 return 'default' | 961 return 'default' |
945 | 962 |
946 | 963 |
947 PLATFORM_OPTIONS = { | 964 PLATFORM_OPTIONS = { |
948 'arch': { | 965 'arch': { |
949 'values': ['arm', 'ia32', 'x64', 'mips'], | 966 'values': ['arm', 'ia32', 'x64', 'mips'], |
950 'guess': GuessArch, | 967 'guess': GuessArch, |
951 'help': 'the architecture to build for' | 968 'help': 'the architecture to build for' |
952 }, | 969 }, |
953 'os': { | 970 'os': { |
954 'values': ['freebsd', 'linux', 'macos', 'win32', 'openbsd', 'solaris', 'cygw
in'], | 971 'values': ['freebsd', 'linux', 'macos', 'win32', 'openbsd', 'solaris', 'cygw
in', 'netbsd'], |
955 'guess': GuessOS, | 972 'guess': GuessOS, |
956 'help': 'the os to build for' | 973 'help': 'the os to build for' |
957 }, | 974 }, |
958 'toolchain': { | 975 'toolchain': { |
959 'values': ['gcc', 'msvc'], | 976 'values': ['gcc', 'msvc'], |
960 'guess': GuessToolchain, | 977 'guess': GuessToolchain, |
961 'help': 'the toolchain to use' | 978 'help': 'the toolchain to use' |
962 } | 979 } |
963 } | 980 } |
964 | 981 |
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1542 # version of scons. Also, there's a bug in some revisions that | 1559 # version of scons. Also, there's a bug in some revisions that |
1543 # doesn't allow this flag to be set, so we swallow any exceptions. | 1560 # doesn't allow this flag to be set, so we swallow any exceptions. |
1544 # Lovely. | 1561 # Lovely. |
1545 try: | 1562 try: |
1546 SetOption('warn', 'no-deprecated') | 1563 SetOption('warn', 'no-deprecated') |
1547 except: | 1564 except: |
1548 pass | 1565 pass |
1549 | 1566 |
1550 | 1567 |
1551 Build() | 1568 Build() |
OLD | NEW |