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 14 matching lines...) Expand all Loading... |
25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 import platform | 28 import platform |
29 import re | 29 import re |
30 import sys | 30 import sys |
31 import os | 31 import os |
32 from os.path import join, dirname, abspath | 32 from os.path import join, dirname, abspath |
33 from types import DictType, StringTypes | 33 from types import DictType, StringTypes |
34 root_dir = dirname(File('SConstruct').rfile().abspath) | 34 root_dir = dirname(File('SConstruct').rfile().abspath) |
35 sys.path.append(join(root_dir, 'tools')) | 35 sys.path.insert(0, join(root_dir, 'tools')) |
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 |
(...skipping 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1190 # version of scons. Also, there's a bug in some revisions that | 1190 # version of scons. Also, there's a bug in some revisions that |
1191 # doesn't allow this flag to be set, so we swallow any exceptions. | 1191 # doesn't allow this flag to be set, so we swallow any exceptions. |
1192 # Lovely. | 1192 # Lovely. |
1193 try: | 1193 try: |
1194 SetOption('warn', 'no-deprecated') | 1194 SetOption('warn', 'no-deprecated') |
1195 except: | 1195 except: |
1196 pass | 1196 pass |
1197 | 1197 |
1198 | 1198 |
1199 Build() | 1199 Build() |
OLD | NEW |