OLD | NEW |
1 # Copyright (c) 2008 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2008 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import fnmatch | 5 import fnmatch |
6 import os | 6 import os |
7 import re | 7 import re |
8 import shutil | 8 import shutil |
9 import subprocess | 9 import subprocess |
10 import utils | 10 import utils |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 dirsrcs += [ | 206 dirsrcs += [ |
207 ('resources/inspector', [env.Dir('#/$OPEN_DIR/inspector')]), | 207 ('resources/inspector', [env.Dir('#/$OPEN_DIR/inspector')]), |
208 ('resources/inspector/common/', ['$OPEN_DIR/sdk/gears_init.js', | 208 ('resources/inspector/common/', ['$OPEN_DIR/sdk/gears_init.js', |
209 '$OPEN_DIR/sdk/samples/sample.js']), | 209 '$OPEN_DIR/sdk/samples/sample.js']), |
210 ] | 210 ] |
211 if env['MODE'] == 'dbg' and env['OS'] in ['win32', 'wince']: | 211 if env['MODE'] == 'dbg' and env['OS'] in ['win32', 'wince']: |
212 dirsrcs += [ | 212 dirsrcs += [ |
213 ('components/gears_ff2.pdb', ['$FF2_MODULE_PDB']), | 213 ('components/gears_ff2.pdb', ['$FF2_MODULE_PDB']), |
214 ('components/gears.pdb', ['$FF3_MODULE_PDB']), | 214 ('components/gears.pdb', ['$FF3_MODULE_PDB']), |
215 ] | 215 ] |
216 # TODO: notifier, os x | 216 # TODO: launchurl |
217 | 217 |
218 dir = env.DirBuilder('$INSTALLER_OUTDIR/$INSTALLER_BASENAME', dirsrcs) | 218 dir = env.DirBuilder('$INSTALLER_OUTDIR/$INSTALLER_BASENAME', dirsrcs) |
219 actions = [ | 219 actions = [ |
220 # Mark files writeable to allow .xpi rebuilds | 220 # Mark files writeable to allow .xpi rebuilds |
221 'chmod -R 777 ${SOURCE.base}', | 221 'chmod -R 777 ${SOURCE.base}', |
222 '(cd ${SOURCE.base} && zip -r ../${TARGET.file} .)' | 222 '(cd ${SOURCE.base} && zip -r ../${TARGET.file} .)' |
223 ] | 223 ] |
224 | 224 |
225 return env.Command('$FF_XPI', dir, actions) | 225 return env.Command('$FF_XPI', dir, actions) |
226 firefox_installer = FirefoxInstaller() | 226 firefox_installer = FirefoxInstaller() |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 return cab | 263 return cab |
264 wince_installer = WinCEInstaller() | 264 wince_installer = WinCEInstaller() |
265 | 265 |
266 def SafariPluginBundle(): | 266 def SafariPluginBundle(): |
267 """This is the actual gears plugin bundle for Safari.""" | 267 """This is the actual gears plugin bundle for Safari.""" |
268 dirsrcs = [ | 268 dirsrcs = [ |
269 ('Contents/', ['$SF_OUTDIR/genfiles/Info.plist']), | 269 ('Contents/', ['$SF_OUTDIR/genfiles/Info.plist']), |
270 ('Contents/Resources/English.lproj/InfoPlist.strings', | 270 ('Contents/Resources/English.lproj/InfoPlist.strings', |
271 ['$OPEN_DIR/tools/osx/English.lproj/InfoPlist.strings']), | 271 ['$OPEN_DIR/tools/osx/English.lproj/InfoPlist.strings']), |
272 ('Contents/Resources/', env.Glob('#/$OPEN_DIR/ui/safari/*.nib')), | 272 ('Contents/Resources/', env.Glob('#/$OPEN_DIR/ui/safari/*.nib')), |
| 273 ('Contents/Resources/', '$CRASH_SENDER_EXE'), |
| 274 ('Contents/Resources/', '$OSX_CRASH_INSPECTOR_EXE'), |
273 # TODO(mpcomplete): crash sendor/inspector, launchurl | 275 # TODO(mpcomplete): crash sendor/inspector, launchurl |
274 ('Contents/MacOS/', ['$SF_MODULE']), | 276 ('Contents/MacOS/', ['$SF_MODULE']), |
275 ] | 277 ] |
276 | 278 |
277 if env['USING_CCTESTS']: | 279 if env['USING_CCTESTS']: |
278 dirsrcs += [ | 280 dirsrcs += [ |
279 ('Contents/Resources/', ['$IPC_TEST_EXE']), | 281 ('Contents/Resources/', ['$IPC_TEST_EXE']), |
280 ] | 282 ] |
281 | 283 |
282 return env.DirBuilder('$SF_PLUGIN_BUNDLE', dirsrcs) | 284 return env.DirBuilder('$SF_PLUGIN_BUNDLE', dirsrcs) |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 safari_installer_plugin_bundle, | 347 safari_installer_plugin_bundle, |
346 safari_installer_package, | 348 safari_installer_package, |
347 safari_input_manager_bundle, | 349 safari_input_manager_bundle, |
348 ] | 350 ] |
349 if env['OS'] == 'win32': | 351 if env['OS'] == 'win32': |
350 installers += win32_installer | 352 installers += win32_installer |
351 if env['OS'] == 'wince': | 353 if env['OS'] == 'wince': |
352 installers += wince_installer | 354 installers += wince_installer |
353 | 355 |
354 env.Alias('gears-installers', installers) | 356 env.Alias('gears-installers', installers) |
OLD | NEW |