diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-24 23:00:00 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-24 23:00:00 +0000 |
commit | 09c767b6f7ca36f57f27712fd19f2c0f6673da02 (patch) | |
tree | 286e746fac2f817d13f2aa2e717b4cedb9ac6149 /gears/SConscript | |
parent | 8023e5689d4f46ed7bc0bea13c8c8904f698c6cf (diff) | |
download | chromium_src-09c767b6f7ca36f57f27712fd19f2c0f6673da02.zip chromium_src-09c767b6f7ca36f57f27712fd19f2c0f6673da02.tar.gz chromium_src-09c767b6f7ca36f57f27712fd19f2c0f6673da02.tar.bz2 |
Add Safari bundle targets to the gears-scons build.
Review URL: http://codereview.chromium.org/11329
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5941 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gears/SConscript')
-rw-r--r-- | gears/SConscript | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gears/SConscript b/gears/SConscript index 83cfa9c..eaa7609 100644 --- a/gears/SConscript +++ b/gears/SConscript @@ -129,6 +129,7 @@ env.Replace( INSTALLER_BASEDIR = 'installers', INSTALLER_BASENAME = 'gears-${OS}-${MODE}-${VERSION}', + INSTALLER_OUTDIR = '$BASE_OUTDIR/$INSTALLER_BASEDIR', ) # Library flags @@ -252,6 +253,23 @@ env.Replace( #env.Append(SCANNERS = m4_scanner) +# OS X Iceberg package builder + +env.Replace(ICEBERG = '/usr/local/bin/freeze') +if env.WhereIs('$ICEBERG'): + env.Replace(ICEBERGCOM = '"$ICEBERG" -v $SOURCE') +else: + env.Replace(ICEBERGCOM = + 'echo To create a Safari installer for Gears, you must install Iceberg' + ' from http://s.sudre.free.fr/Software/Iceberg.html. You can install' + ' the Safari version manually by running the' + ' $OPEN_DIR/tools/osx/install_gears.sh script.') + +iceberg_builder = Builder(action = '$ICEBERGCOM', + suffix = '.pkg', src_suffix = '.packproj') +env.Append(BUILDERS = {'Iceberg': iceberg_builder}) + + # C++ build flags. # Clear out the inherited defines from Chrome's build. I want to match Gears' @@ -687,6 +705,11 @@ elif env['OS'] == 'osx': 'Cocoa', 'WebKit', ], + M4FLAGS = [ + '-DGEARS_ENABLER_PATH="$INSTALLER_OUTDIR/Safari/GearsEnabler"', + '-DGEARS_PLUGIN_PATH="$INSTALLER_OUTDIR/Safari/Gears.plugin"', + '-DGEARS_INSTALLER_OUT_DIR="$INSTALLER_OUTDIR/Safari"', + ], ) if not env['OFFICIAL_BUILD']: # For PortAudio: |