| 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(): | 9 if not env.Dir('$CHROME_SRC_DIR/v8').exists(): |
| 10 Return() | 10 Return() |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 '$V8_MODE_DIR/mksnapshot${PROGSUFFIX}', | 49 '$V8_MODE_DIR/mksnapshot${PROGSUFFIX}', |
| 50 '$V8_MODE_DIR/libraries${OBJSUFFIX}', | 50 '$V8_MODE_DIR/libraries${OBJSUFFIX}', |
| 51 '$V8_MODE_DIR/snapshot-empty${OBJSUFFIX}', | 51 '$V8_MODE_DIR/snapshot-empty${OBJSUFFIX}', |
| 52 ] | 52 ] |
| 53 | 53 |
| 54 v8_scons_targets_on = [ | 54 v8_scons_targets_on = [ |
| 55 '$V8_MODE_DIR/libraries-empty${OBJSUFFIX}', | 55 '$V8_MODE_DIR/libraries-empty${OBJSUFFIX}', |
| 56 '$V8_MODE_DIR/snapshot${OBJSUFFIX}', | 56 '$V8_MODE_DIR/snapshot${OBJSUFFIX}', |
| 57 ] | 57 ] |
| 58 | 58 |
| 59 if env['PLATFORM'] == 'win32': | 59 if env.Bit('windows'): |
| 60 v8_scons_targets_off.extend([ | 60 v8_scons_targets_off.extend([ |
| 61 env.File('$V8_DIR/vc80.pdb') | 61 env.File('$V8_DIR/vc80.pdb') |
| 62 ]) | 62 ]) |
| 63 | 63 |
| 64 v8 = env.Command(v8_scons_targets_off + v8_scons_targets_on, | 64 v8 = env.Command(v8_scons_targets_off + v8_scons_targets_on, |
| 65 [], | 65 [], |
| 66 ['$V8_SCONS_COM snapshot=off sample=shell', | 66 ['$V8_SCONS_COM snapshot=off sample=shell', |
| 67 '$V8_SCONS_COM snapshot=on ${TARGETS[-%d:].abspath}' | 67 '$V8_SCONS_COM snapshot=on ${TARGETS[-%d:].abspath}' |
| 68 % len(v8_scons_targets_on)]) | 68 % len(v8_scons_targets_on)]) |
| 69 env.AlwaysBuild(v8) | 69 env.AlwaysBuild(v8) |
| 70 | 70 |
| 71 # Tell our SCons invocation to *not* delete v8.lib and the other targets | 71 # Tell our SCons invocation to *not* delete v8.lib and the other targets |
| 72 # before building them, so the subsidiary v8 SCons call doesn't always | 72 # before building them, so the subsidiary v8 SCons call doesn't always |
| 73 # rebuild them (thereby causing us to always rebuild their dependents). | 73 # rebuild them (thereby causing us to always rebuild their dependents). |
| 74 env.Precious(v8) | 74 env.Precious(v8) |
| 75 | 75 |
| 76 | 76 |
| 77 env.Install('$TARGET_ROOT', v8[0]) | 77 env.Install('$TARGET_ROOT', v8[0]) |
| 78 env.Install('$LIBS_DIR', v8[1]) | 78 env.Install('$LIBS_DIR', v8[1]) |
| 79 env.Install('$V8_DIR', '$V8_MODE_DIR/snapshot-empty${OBJSUFFIX}') | 79 env.Install('$V8_DIR', '$V8_MODE_DIR/snapshot-empty${OBJSUFFIX}') |
| 80 | 80 |
| 81 # To satisfy tests expecting the following .exe name. | 81 # To satisfy tests expecting the following .exe name. |
| 82 if env['PLATFORM'] == 'win32': | 82 if env.Bit('windows'): |
| 83 # TODO(evanm): this may be necessary on other platforms(?) | 83 # TODO(evanm): this may be necessary on other platforms(?) |
| 84 i = env.InstallAs('$TARGET_ROOT/v8_shell_sample${PROGSUFFIX}', v8[0]) | 84 i = env.InstallAs('$TARGET_ROOT/v8_shell_sample${PROGSUFFIX}', v8[0]) |
| 85 | 85 |
| 86 env.ChromeStaticLibrary('v8_snapshot', | 86 env.ChromeStaticLibrary('v8_snapshot', |
| 87 ['$V8_MODE_DIR/libraries-empty${OBJSUFFIX}', | 87 ['$V8_MODE_DIR/libraries-empty${OBJSUFFIX}', |
| 88 '$V8_MODE_DIR/snapshot${OBJSUFFIX}']) | 88 '$V8_MODE_DIR/snapshot${OBJSUFFIX}']) |
| OLD | NEW |