summaryrefslogtreecommitdiffstats
path: root/gears/SConscript.browser
diff options
context:
space:
mode:
authormpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-26 01:43:42 +0000
committermpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-26 01:43:42 +0000
commit2dedae30825fe2c1b7f7ac0ffb0c75145cb24bc1 (patch)
treed02c326767b9d14781d5d447594437750e7ffefe /gears/SConscript.browser
parent45abb0b369be7575b9e5b081ec405b4c0cfa6c2e (diff)
downloadchromium_src-2dedae30825fe2c1b7f7ac0ffb0c75145cb24bc1.zip
chromium_src-2dedae30825fe2c1b7f7ac0ffb0c75145cb24bc1.tar.gz
chromium_src-2dedae30825fe2c1b7f7ac0ffb0c75145cb24bc1.tar.bz2
Clean up the gears-scons scripts a bit.
- Remove the ugly StripOutdir() hacks in SConscript.installers. I'm not sure why I even introduced this, but it's much cleaner now. - Include Sconscript.input in the main SConscript file. This required removing its dependence on env['BROWSER'] and env_res. Fix win32. - Use a custom action instead of 'rm -rf `find FOO`'. - Don't rely on 'date' command. Review URL: http://codereview.chromium.org/12662 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6024 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gears/SConscript.browser')
-rw-r--r--gears/SConscript.browser29
1 files changed, 22 insertions, 7 deletions
diff --git a/gears/SConscript.browser b/gears/SConscript.browser
index ff97e80..6e963a8 100644
--- a/gears/SConscript.browser
+++ b/gears/SConscript.browser
@@ -22,6 +22,9 @@ env = env.Clone()
# TODO: other targets
# - installer (safari, android, ...)
+# Initialize our BROWSER_* input files.
+env.InitBrowserInputs()
+
# Building .stab files, using M4FLAGS.
@@ -375,10 +378,6 @@ if env['OS'] == 'win32':
# browser_specific_objects += \
# env.SharedObject('$OPEN_DIR/base/safari/resource_archive.cc')
-# Include the input file list.
-env = env.SConscript('SConscript.inputs', exports=['env', 'env_res'])
-
-
#-----------------------------------------------------------------------------
# Generate the dependency tree.
@@ -430,13 +429,20 @@ for src in GetInputs('$BROWSER_IDLSRCS'):
if env['BROWSER'] in ['FF2', 'FF3']:
env.XptLink('gears.xpt', xptsrcs)
+# genfiles/%.res: %.rc
+env.Append(BROWSER_LINKSRCS = [
+ [env_res.RES(
+ *PatternRule('$GENFILES_DIR/${SOURCE.filebase}.res', src))
+ for src in GetInputs('$BROWSER_RESSRCS')]
+])
+
# Add common sources.
env.Append(BROWSER_LINKSRCS = common_targets['link'])
# TODO: figure out why the .rc scanner doesn't notice these dependencies.
-if env.has_key('UI_RES'):
- env.Depends('$UI_RES', html_m4s)
- env.Depends('$MODULE_RES', m4s)
+if env['OS'] in ['win32', 'wince'] and env['BROWSER'] in ['NPAPI', 'IE']:
+ env.Depends('$GENFILES_DIR/ui_resources.rc', html_m4s)
+ env.Depends('$OPEN_DIR/base/npapi/module.rc', m4s)
# Safari resources
if env['BROWSER'] == 'SF':
@@ -488,6 +494,10 @@ if env['OS'] in ['win32', 'wince'] and env['MODE'] == 'dbg':
env.Alias('gears', module)
if env['OS'] == 'wince':
+ env.Append(WINCE_SETUP_LINKSRCS = [
+ [env_res.RES(*PatternRule('$GENFILES_DIR/${SOURCE.filebase}.res', src))
+ for src in GetInputs('$WINCE_SETUP_RESSRCS')]
+ ])
wince_setup = env.ChromeSharedLibrary('setup',
env.SharedObject(GetInputs('$WINCE_SETUP_CPPSRCS')) +
GetInputs('$WINCE_SETUP_LINKSRCS'))
@@ -498,6 +508,11 @@ if env['OS'] == 'win32' and env['BROWSER'] == 'IE':
# Note: vista_broker.exe needs to stay in sync with name used in
# desktop_win32.cc.
# TODO(aa): This can move to common_outdir like crash_sender.exe
+ env.Append(VISTA_BROKER_LINKSRCS = [
+ [env_res.RES('$GENFILES_DIR/vista_broker_${SOURCE.filebase}.res',
+ env_res.File(src), EXTRA_DEFINES = 'VISTA_BROKER=1')
+ for src in GetInputs('$VISTA_BROKER_RESSRCS')]
+ ])
vista_broker = env.ChromeProgram('vista_broker',
env.SharedObject(GetInputs('$VISTA_BROKER_CPPSRCS')) +
GetInputs('$VISTA_BROKER_LINKSRCS'))