summaryrefslogtreecommitdiffstats
path: root/gears/SConscript
diff options
context:
space:
mode:
authormpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-29 18:35:46 +0000
committermpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-29 18:35:46 +0000
commit4509f39a591e170cb1efef0b5e21658d29a2f896 (patch)
tree0f47648e0ad16e5f392ea218b1763e2f9a11cac0 /gears/SConscript
parent176ac107dd93c770af61654f0886ac21533aa75d (diff)
downloadchromium_src-4509f39a591e170cb1efef0b5e21658d29a2f896.zip
chromium_src-4509f39a591e170cb1efef0b5e21658d29a2f896.tar.gz
chromium_src-4509f39a591e170cb1efef0b5e21658d29a2f896.tar.bz2
Fix various Gears build breaks caused by latest Hammer changes.
Review URL: http://codereview.chromium.org/7999 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4151 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gears/SConscript')
-rw-r--r--gears/SConscript57
1 files changed, 30 insertions, 27 deletions
diff --git a/gears/SConscript b/gears/SConscript
index bfc0b65..f24eed3 100644
--- a/gears/SConscript
+++ b/gears/SConscript
@@ -138,14 +138,16 @@ env.Replace(
)
# Add our tools to the PATH.
-if os.path.exists(env.Dir('#/$PRIVATE_THIRD_PARTY_DIR').abspath):
- paths = []
- if env['OS'] in ['win32', 'wince']:
- # Clear out our environment so we don't accidentally use the system's libs.
+if env['OS'] in ['win32', 'wince']:
+ if os.path.exists(env.Dir('#/$PRIVATE_THIRD_PARTY_DIR').abspath):
+ # Clear out our environment so we don't accidentally use the system's
+ # libs.
env['ENV']['PATH'] = ''
env['ENV']['LIB'] = ''
env['ENV']['INCLUDE'] = ''
+ paths = []
+
# Keep system32 for 'xcopy'.
paths += [env.subst('${ENV["SYSTEMROOT"]}/system32')]
if env['OS'] == 'win32':
@@ -170,21 +172,25 @@ if os.path.exists(env.Dir('#/$PRIVATE_THIRD_PARTY_DIR').abspath):
env.subst('$VC80/smartdevices/sdktools'),
]
- paths += [env.Dir('#/$PRIVATE_THIRD_PARTY_DIR/wix/v3_0_2925/files').abspath]
+ paths += [
+ env.Dir('#/$PRIVATE_THIRD_PARTY_DIR/wix/v3_0_2925/files').abspath]
- paths += [env.Dir('#/$PRIVATE_THIRD_PARTY_DIR/gnu/files').abspath]
- paths += [env.Dir('#/$PRIVATE_THIRD_PARTY_DIR/python_24').abspath]
+ paths += [env.Dir('#/$PRIVATE_THIRD_PARTY_DIR/gnu/files').abspath]
+ paths += [env.Dir('#/$PRIVATE_THIRD_PARTY_DIR/python_24').abspath]
- # Prepend them so our tools come first.
- for each in reversed(paths):
- env.PrependENVPath('PATH', each)
-else:
- # If we don't have a private third_party dir, we expect the system
- # environment to be set up correctly to point to tool paths.
- env['ENV']['PATH'] = os.environ['PATH']
- env['ENV']['LIB'] = os.environ['LIB']
- env['ENV']['INCLUDE'] = os.environ['INCLUDE']
+ # Prepend them so our tools come first.
+ for each in reversed(paths):
+ env.PrependENVPath('PATH', each)
+ else:
+ # If we don't have a private third_party dir, we expect the system
+ # environment to be set up correctly to point to tool paths.
+ env['ENV']['PATH'] = os.environ['PATH']
+ env['ENV']['LIB'] = os.environ['LIB']
+ env['ENV']['INCLUDE'] = os.environ['INCLUDE']
+ # HACK to disable manifest creation, since it breaks all the time.
+ env['LINKCOM'] = env['LINKCOM'][0]
+ env['SHLINKCOM'] = env['SHLINKCOM'][0]
# Building M4 files
env.Tool('m4')
@@ -257,12 +263,10 @@ env.Replace(
'.',
'$COMMON_OUTDIR',
],
- LIBPATH = [
- '$LIBS_DIR',
- ],
CFLAGS = [],
CCFLAGS = [],
CXXFLAGS = [],
+ CCPDBFLAGS = [],
CPPDEFINES = [
# SpiderMonkey (the Firefox JS engine)'s JS_GET_CLASS macro in jsapi.h needs
# this defined to work with the gecko SDK that we've built.
@@ -408,7 +412,6 @@ if env['OS'] in ['win32', 'wince']:
],
CPPFLAGS = [
'/nologo',
- '/Zi', # TODO: Chrome defines /Z7, no idea what these are.
'/Zc:wchar_t-',
'/c',
'/W3',
@@ -424,6 +427,9 @@ if env['OS'] in ['win32', 'wince']:
'$VC80_CPPPATH',
'$THIRD_PARTY_DIR/breakpad/src',
],
+ CCPDBFLAGS = [
+ '/Zi', # TODO: Chrome defines /Z7, no idea what these are.
+ ],
LIBPATH = [
'$VC80_LIBPATH',
],
@@ -683,13 +689,10 @@ elif env['OS'] == 'osx':
# TODO(mpcomplete): fix this and properly separate our DLL flags from EXE
# flags.
-env.Append(
- SHLINKFLAGS = [
- '$LINKFLAGS',
- '/DLL',
- ],
-)
-
+env.Append(SHLINKFLAGS = ['$LINKFLAGS'])
+if env['OS'] in ['wince', 'win32']:
+ env.Append(SHLINKFLAGS = ['/DLL'])
+
# Load all the components
sconscripts = [