Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: build/SConscript.v8

Issue 19041: Allow "hammer Hammer SHARED=1" to build cleanly. (Closed)
Patch Set: remove media Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/SConscript.main ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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()
11 11
12 # The v8 build script wants a 'debug'/'release' string to tell it whether 12 # The v8 build script wants a 'debug'/'release' string to tell it whether
13 # to build optimized. Convert our build flags into that form. 13 # to build optimized. Convert our build flags into that form.
14 mode = 'release' 14 mode = 'release'
15 if env['TARGET_DEBUG']: 15 if env['TARGET_DEBUG']:
16 mode = 'debug' 16 mode = 'debug'
17 17
18 # Don't build V8 as a shared object because the v8 scons file doesn't support
19 # it.
20 env.Replace(COMPONENT_STATIC=True)
21
18 env = env.Clone( 22 env = env.Clone(
19 V8_MODE = mode, 23 V8_MODE = mode,
20 V8_MODE_DIR = '$V8_DIR/obj/$V8_MODE', 24 V8_MODE_DIR = '$V8_DIR/obj/$V8_MODE',
21 V8_SCONS_COM = '$PYTHON $SCONS $SCONSFLAGS mode=$V8_MODE', 25 V8_SCONS_COM = '$PYTHON $SCONS $SCONSFLAGS mode=$V8_MODE',
22 SCONS = '$CHROME_SRC_DIR/third_party/scons/scons.py', 26 SCONS = '$CHROME_SRC_DIR/third_party/scons/scons.py',
23 SCONSFLAGS = ('-Q ' 27 SCONSFLAGS = ('-Q '
24 '-C $OBJ_ROOT/v8 ' 28 '-C $OBJ_ROOT/v8 '
25 '-Y $CHROME_SRC_DIR/v8 ' 29 '-Y $CHROME_SRC_DIR/v8 '
26 '--warn=no-deprecated ' 30 '--warn=no-deprecated '
27 '--warn=no-no-parallel-support'), 31 '--warn=no-no-parallel-support'),
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 '$V8_DIR/tools/visual_studio/v8_snapshot.vcproj', 111 '$V8_DIR/tools/visual_studio/v8_snapshot.vcproj',
108 ], 112 ],
109 guid='{2DE20FFA-6F5E-48D9-84D8-09B044A5B119}') 113 guid='{2DE20FFA-6F5E-48D9-84D8-09B044A5B119}')
110 114
111 env.ChromeMSVSProject('$V8_DIR/tools/visual_studio/v8_snapshot.vcproj', 115 env.ChromeMSVSProject('$V8_DIR/tools/visual_studio/v8_snapshot.vcproj',
112 dependencies = [ 116 dependencies = [
113 '$V8_DIR/tools/visual_studio/v8_mksnapshot.vcproj', 117 '$V8_DIR/tools/visual_studio/v8_mksnapshot.vcproj',
114 '$V8_DIR/tools/visual_studio/v8_base.vcproj', 118 '$V8_DIR/tools/visual_studio/v8_base.vcproj',
115 ], 119 ],
116 guid='{C0334F9A-1168-4101-9DD8-C30FB252D435}') 120 guid='{C0334F9A-1168-4101-9DD8-C30FB252D435}')
OLDNEW
« no previous file with comments | « build/SConscript.main ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698