summaryrefslogtreecommitdiffstats
path: root/chrome/SConscript
diff options
context:
space:
mode:
authorsgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-25 17:20:48 +0000
committersgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-25 17:20:48 +0000
commit7002ac6566bb5472a99d0f8f3f6f4932e86dab44 (patch)
tree2102518edab4ba7adbbbd38e7934be3c341de65b /chrome/SConscript
parent689e237ec010792fe78343d9eff48539050481b0 (diff)
downloadchromium_src-7002ac6566bb5472a99d0f8f3f6f4932e86dab44.zip
chromium_src-7002ac6566bb5472a99d0f8f3f6f4932e86dab44.tar.gz
chromium_src-7002ac6566bb5472a99d0f8f3f6f4932e86dab44.tar.bz2
Fix SCons modules build on Windows:
* Add 'midl' Tool module. * Filter out the default OS_WINDOWS= definition from the Hammer modules, which messes up our build. * Fix the $PLATFORMSDK_VISTA definition. * Remove the current directory from the 'base' Alias (avoid cycles). * Remove by-hand addition of .lib, .pdb and .ilk files to the target list when build shared libraries (multiple places). * Comment out a post-action Touch() of the themes/default resource. (Thanks to bradnelson for many of the above individual fixes.) Review URL: http://codereview.chromium.org/8207 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3980 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/SConscript')
-rw-r--r--chrome/SConscript30
1 files changed, 6 insertions, 24 deletions
diff --git a/chrome/SConscript b/chrome/SConscript
index b835408..49fe41c 100644
--- a/chrome/SConscript
+++ b/chrome/SConscript
@@ -200,16 +200,6 @@ libs = [
]
-if env_dll['PLATFORM'] == 'win32':
- targets = [
- 'chrome.dll',
- 'chrome_dll.pdb',
- 'chrome_dll.lib',
- ]
-else:
- targets = ['chrome']
-
-
# TODO(sgk): make a pseudo-Builder for these
import sys
@@ -237,17 +227,18 @@ grit_files.extend(google_chrome)
# TODO(port)
if env_dll['PLATFORM'] == 'win32':
- dll_targets = env_dll.ChromeSharedLibrary(targets,
- dll_resources + input_files + libs)
+ dll_targets = env_dll.ChromeSharedLibrary('chrome.dll',
+ dll_resources + input_files + libs,
+ PDB='chrome_dll.pdb')
install_targets.extend(dll_targets)
for g in [ g for g in grit_files if str(g).endswith('.rc') ]:
env_res.RES(g)
def chrome_version_emitter(target, source, env):
- source.append('$CHROME_SRC_DIR/chrome/VERSION')
+ source.append(env.File('$CHROME_SRC_DIR/chrome/VERSION'))
# TODO(sgk): parameterize for chromium-vs.-google_chrome
- source.append('$CHROME_SRC_DIR/chrome/app/theme/google_chrome/BRANDING')
+ source.append(env.File('$CHROME_SRC_DIR/chrome/app/theme/google_chrome/BRANDING'))
return target, source
b = Builder(action = '$CHROME_VERSION_RC_COM',
@@ -323,19 +314,10 @@ env_exe.Append(
],
)
-if env['PLATFORM'] == 'win32':
- targets = [
- 'chrome.exe',
- 'chrome_exe.pdb',
- 'chrome_exe_implib.lib',
- ]
-else:
- targets = ['chrome']
-
# TODO(port)
if env['PLATFORM'] == 'win32':
chrome_exe = env_exe.ChromeProgram(
- targets,
+ 'chrome',
[
env_res.RES('app/chrome_exe.rc'),
'app/breakpad.cc',