diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-19 22:38:46 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-19 22:38:46 +0000 |
commit | f3f568b18078fa29f9b84cd66bd2d1029ce408a1 (patch) | |
tree | 2c1beb150a62dfce10470a5b2d922336611eb136 /gears/SConscript | |
parent | 9eb12d18f96a72d8fa6d04988ea01448af2385a6 (diff) | |
download | chromium_src-f3f568b18078fa29f9b84cd66bd2d1029ce408a1.zip chromium_src-f3f568b18078fa29f9b84cd66bd2d1029ce408a1.tar.gz chromium_src-f3f568b18078fa29f9b84cd66bd2d1029ce408a1.tar.bz2 |
Some cleanup work I did while adding more Safari builders. It got to be
extensive so I decided to just check it in.
Changes:
- Use Return() instead of Export() from SConscript.inputs to pass 'env' back.
- Move some of the build vars around to fix builders that aren't in
SConscript.browser.
- Refactor SConscript.installers so that we now have DirBuilder, a generic
builder that creates a directory tree (used to be FF-specific). This will be
used for OSX bundles.
Review URL: http://codereview.chromium.org/11261
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5722 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gears/SConscript')
-rw-r--r-- | gears/SConscript | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gears/SConscript b/gears/SConscript index 4bdb0c7..83cfa9c 100644 --- a/gears/SConscript +++ b/gears/SConscript @@ -36,6 +36,7 @@ Import('env') env = env.Clone( OPEN_DIR = "gears", + PRIVATE_DIR = "gears_internal", THIRD_PARTY_DIR = "third_party", PRIVATE_THIRD_PARTY_DIR = "third_party_internal", SYMBIAN_DIR = "symbian_internal", @@ -125,6 +126,9 @@ env.Replace( GENFILES_DIR = "$BROWSER_OUTDIR/genfiles", COMMON_GENFILES_DIR = "$COMMON_OUTDIR/genfiles", + + INSTALLER_BASEDIR = 'installers', + INSTALLER_BASENAME = 'gears-${OS}-${MODE}-${VERSION}', ) # Library flags @@ -675,8 +679,22 @@ elif env['OS'] == 'osx': ('-arch', 'i386'), ('-isysroot', '$OSX_SDK_ROOT'), '-Wl,-dead_strip', + '-bundle', # DLLFLAGS + ], + FRAMEWORKS = [ + 'Carbon', + 'CoreServices', + 'Cocoa', + 'WebKit', ], ) + if not env['OFFICIAL_BUILD']: + # For PortAudio: + env.Append(FRAMEWORKS = [ + 'CoreAudio', + 'AudioToolbox', + 'AudioUnit', + ]) if env['MODE'] == 'dbg': env.Append( CPPFLAGS = [ @@ -721,6 +739,10 @@ sconscripts = [ 'SConscript.portaudio', ] +#if os.path.exists(env.Entry('#/$PRIVATE_DIR/SConscript').abspath): +# env = env.SConscript('#/$PRIVATE_DIR/SConscript', +# exports=['env', 'env_res']) + for each in sconscripts: env.SConscript(each, exports=['env'], @@ -746,6 +768,8 @@ for each in browsers: variant_dir='$BROWSER_OUTDIR', duplicate=0) +# Note: even though the installers write to $INSTALLER_OUTDIR, they need to +# read files from other dirs, so we give them a variant_dir at the toplevel. env.SConscript('SConscript.installers', exports=['env'], variant_dir='$BASE_OUTDIR', |