OLD | NEW |
1 # Copyright 2010 the V8 project authors. All rights reserved. | 1 # Copyright 2010 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 25 matching lines...) Expand all Loading... |
36 import js2c, utils | 36 import js2c, utils |
37 | 37 |
38 # ANDROID_TOP is the top of the Android checkout, fetched from the environment | 38 # ANDROID_TOP is the top of the Android checkout, fetched from the environment |
39 # variable 'TOP'. You will also need to set the CXX, CC, AR and RANLIB | 39 # variable 'TOP'. You will also need to set the CXX, CC, AR and RANLIB |
40 # environment variables to the cross-compiling tools. | 40 # environment variables to the cross-compiling tools. |
41 ANDROID_TOP = os.environ.get('TOP') | 41 ANDROID_TOP = os.environ.get('TOP') |
42 if ANDROID_TOP is None: | 42 if ANDROID_TOP is None: |
43 ANDROID_TOP="" | 43 ANDROID_TOP="" |
44 | 44 |
45 # ARM_TARGET_LIB is the path to the dynamic library to use on the target | 45 # ARM_TARGET_LIB is the path to the dynamic library to use on the target |
46 # machine if cross-compiling to an arm machine. You will also need to set | 46 # machine if cross-compiling to an arm machine. You will also need to set |
47 # the additional cross-compiling environment variables to the cross compiler. | 47 # the additional cross-compiling environment variables to the cross compiler. |
48 ARM_TARGET_LIB = os.environ.get('ARM_TARGET_LIB') | 48 ARM_TARGET_LIB = os.environ.get('ARM_TARGET_LIB') |
49 if ARM_TARGET_LIB: | 49 if ARM_TARGET_LIB: |
50 ARM_LINK_FLAGS = ['-Wl,-rpath=' + ARM_TARGET_LIB + '/lib:' + | 50 ARM_LINK_FLAGS = ['-Wl,-rpath=' + ARM_TARGET_LIB + '/lib:' + |
51 ARM_TARGET_LIB + '/usr/lib', | 51 ARM_TARGET_LIB + '/usr/lib', |
52 '-Wl,--dynamic-linker=' + ARM_TARGET_LIB + | 52 '-Wl,--dynamic-linker=' + ARM_TARGET_LIB + |
53 '/lib/ld-linux.so.3'] | 53 '/lib/ld-linux.so.3'] |
54 else: | 54 else: |
55 ARM_LINK_FLAGS = [] | 55 ARM_LINK_FLAGS = [] |
56 | 56 |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 }, | 622 }, |
623 'os:android': { | 623 'os:android': { |
624 'LIBPATH': [ANDROID_TOP + '/out/target/product/generic/obj/lib', | 624 'LIBPATH': [ANDROID_TOP + '/out/target/product/generic/obj/lib', |
625 ANDROID_TOP + '/prebuilt/linux-x86/toolchain/arm-eabi-4.4.
0/lib/gcc/arm-eabi/4.4.0/interwork'], | 625 ANDROID_TOP + '/prebuilt/linux-x86/toolchain/arm-eabi-4.4.
0/lib/gcc/arm-eabi/4.4.0/interwork'], |
626 'LINKFLAGS': ANDROID_LINKFLAGS, | 626 'LINKFLAGS': ANDROID_LINKFLAGS, |
627 'LIBS': ['log', 'c', 'stdc++', 'm', 'gcc'], | 627 'LIBS': ['log', 'c', 'stdc++', 'm', 'gcc'], |
628 }, | 628 }, |
629 'os:win32': { | 629 'os:win32': { |
630 'LIBS': ['winmm', 'ws2_32'], | 630 'LIBS': ['winmm', 'ws2_32'], |
631 }, | 631 }, |
| 632 'arch:arm': { |
| 633 'LINKFLAGS': ARM_LINK_FLAGS |
| 634 }, |
632 }, | 635 }, |
633 'msvc': { | 636 'msvc': { |
634 'all': { | 637 'all': { |
635 'LIBS': ['winmm', 'ws2_32'] | 638 'LIBS': ['winmm', 'ws2_32'] |
636 } | 639 } |
637 } | 640 } |
638 } | 641 } |
639 | 642 |
640 | 643 |
641 SUFFIXES = { | 644 SUFFIXES = { |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1142 # version of scons. Also, there's a bug in some revisions that | 1145 # version of scons. Also, there's a bug in some revisions that |
1143 # doesn't allow this flag to be set, so we swallow any exceptions. | 1146 # doesn't allow this flag to be set, so we swallow any exceptions. |
1144 # Lovely. | 1147 # Lovely. |
1145 try: | 1148 try: |
1146 SetOption('warn', 'no-deprecated') | 1149 SetOption('warn', 'no-deprecated') |
1147 except: | 1150 except: |
1148 pass | 1151 pass |
1149 | 1152 |
1150 | 1153 |
1151 Build() | 1154 Build() |
OLD | NEW |