OLD | NEW |
---|---|
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import os | 5 import os |
6 | 6 |
7 Import('env') | 7 Import('env') |
8 | 8 |
9 if not env.Dir('$CHROME_SRC_DIR/v8').exists(): | |
10 Return() | |
Evan Martin
2008/11/20 21:11:42
four spaces :\
sgk
2008/11/21 01:06:28
Thanks for the catch; done. (Also in other uses.)
| |
11 | |
9 # Grab the -j flag from the outer environment, if available. | 12 # Grab the -j flag from the outer environment, if available. |
10 try: | 13 try: |
11 cpus = env.GetOption('num_jobs') | 14 cpus = env.GetOption('num_jobs') |
12 cpu_flag = ' -j%d' % cpus | 15 cpu_flag = ' -j%d' % cpus |
13 except AttributeError: | 16 except AttributeError: |
14 cpu_flag = '' | 17 cpu_flag = '' |
15 | 18 |
16 # The v8 build script wants a 'debug'/'release' string to tell it whether | 19 # The v8 build script wants a 'debug'/'release' string to tell it whether |
17 # to build optimized. Convert our build flags into that form. | 20 # to build optimized. Convert our build flags into that form. |
18 mode = 'release' | 21 mode = 'release' |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
83 env.Install('$V8_DIR', '$V8_MODE_DIR/snapshot-empty${OBJSUFFIX}') | 86 env.Install('$V8_DIR', '$V8_MODE_DIR/snapshot-empty${OBJSUFFIX}') |
84 | 87 |
85 # To satisfy tests expecting the following .exe name. | 88 # To satisfy tests expecting the following .exe name. |
86 if env['PLATFORM'] == 'win32': | 89 if env['PLATFORM'] == 'win32': |
87 # TODO(evanm): this may be necessary on other platforms(?) | 90 # TODO(evanm): this may be necessary on other platforms(?) |
88 i = env.InstallAs('$TARGET_ROOT/v8_shell_sample${PROGSUFFIX}', v8[0]) | 91 i = env.InstallAs('$TARGET_ROOT/v8_shell_sample${PROGSUFFIX}', v8[0]) |
89 | 92 |
90 env.ChromeStaticLibrary('v8_snapshot', | 93 env.ChromeStaticLibrary('v8_snapshot', |
91 ['$V8_MODE_DIR/libraries-empty${OBJSUFFIX}', | 94 ['$V8_MODE_DIR/libraries-empty${OBJSUFFIX}', |
92 '$V8_MODE_DIR/snapshot${OBJSUFFIX}']) | 95 '$V8_MODE_DIR/snapshot${OBJSUFFIX}']) |
OLD | NEW |