diff options
author | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-21 20:42:29 +0000 |
---|---|---|
committer | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-21 20:42:29 +0000 |
commit | bfb2cf790e42a2850d834c424752ff8985df39e2 (patch) | |
tree | ef61c991bfd28c20cc7ebced197012faa6e378b7 /gears | |
parent | b4c9d24055d39f74644eb22083c2d02ed58a62ce (diff) | |
download | chromium_src-bfb2cf790e42a2850d834c424752ff8985df39e2.zip chromium_src-bfb2cf790e42a2850d834c424752ff8985df39e2.tar.gz chromium_src-bfb2cf790e42a2850d834c424752ff8985df39e2.tar.bz2 |
Fix Gears SConscript to work for opensource developers as described here:
http://code.google.com/p/gears/wiki/BuildingGearsForWindows
Small fix to the installer script to check the correct location for
ipc_test.exe.
Review URL: http://codereview.chromium.org/7831
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3679 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gears')
-rw-r--r-- | gears/SConscript | 84 | ||||
-rw-r--r-- | gears/SConscript.installers | 2 |
2 files changed, 47 insertions, 39 deletions
diff --git a/gears/SConscript b/gears/SConscript index fd96489..ec0abec 100644 --- a/gears/SConscript +++ b/gears/SConscript @@ -124,45 +124,53 @@ env.Replace( ) # Add our tools to the PATH. -paths = [] -if env['OS'] in ['win32', 'wince']: - # Clear out our environment so we don't accidentally use the system's libs. - env['ENV']['PATH'] = '' - env['ENV']['LIB'] = '' - env['ENV']['INCLUDE'] = '' - - # Keep system32 for 'xcopy'. - paths += [env.subst('${ENV["SYSTEMROOT"]}/system32')] - if env['OS'] == 'win32': - env.Append( - VC80 = env.Dir('#/$PRIVATE_THIRD_PARTY_DIR/vc_80/files').abspath) - paths += [ - env.subst('$VC80/common7/ide'), - env.subst('$VC80/vc/bin'), - env.subst('$VC80/common7/tools'), - env.subst('$VC80/common7/tools/bin'), - env.subst('$VC80/team_tools/performance_tools'), - ] - else: # wince - env.Append( - VC80 = env.Dir('#/$PRIVATE_THIRD_PARTY_DIR/vc_80ce/files').abspath) - paths += [ - env.subst('$VC80/bin/x86_arm'), - env.subst('$VC80/common7/ide'), - env.subst('$VC80/common7/tools'), - env.subst('$VC80/common7/tools/bin'), - env.subst('$VC80/vc/bin'), - 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/gnu/files').abspath] -paths += [env.Dir('#/$PRIVATE_THIRD_PARTY_DIR/python_24').abspath] +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. + env['ENV']['PATH'] = '' + env['ENV']['LIB'] = '' + env['ENV']['INCLUDE'] = '' + + # Keep system32 for 'xcopy'. + paths += [env.subst('${ENV["SYSTEMROOT"]}/system32')] + if env['OS'] == 'win32': + env.Append( + VC80 = env.Dir('#/$PRIVATE_THIRD_PARTY_DIR/vc_80/files').abspath) + paths += [ + env.subst('$VC80/common7/ide'), + env.subst('$VC80/vc/bin'), + env.subst('$VC80/common7/tools'), + env.subst('$VC80/common7/tools/bin'), + env.subst('$VC80/team_tools/performance_tools'), + ] + else: # wince + env.Append( + VC80 = env.Dir('#/$PRIVATE_THIRD_PARTY_DIR/vc_80ce/files').abspath) + paths += [ + env.subst('$VC80/bin/x86_arm'), + env.subst('$VC80/common7/ide'), + env.subst('$VC80/common7/tools'), + env.subst('$VC80/common7/tools/bin'), + env.subst('$VC80/vc/bin'), + 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/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) # Building M4 files env.Tool('m4') diff --git a/gears/SConscript.installers b/gears/SConscript.installers index 66b8f918..57bc128 100644 --- a/gears/SConscript.installers +++ b/gears/SConscript.installers @@ -110,7 +110,7 @@ if env['OS'] == 'win32': ('OurMsiVersion', '$MSI_VERSION'), ('OurCommonPath', '$SCONS_DIR/$COMMON_OUTDIR'), ('OurIEPath', '$SCONS_DIR/$IE_OUTDIR'), - ('OurIpcTestPath', '$SCONS_DIR/$BASE_OUTDIR/ipc_test'), # TODO + ('OurIpcTestPath', '$SCONS_DIR/$BASE_OUTDIR/common'), ('OurFFPath', '$SCONS_DIR/$BASE_OUTDIR/$INSTALLER_BASEDIR/$INSTALLER_BASENAME'), ('OurNpapiPath', '$SCONS_DIR/$NPAPI_OUTDIR'), |