new srclib, slider : for cm calculator

This commit is contained in:
David Black 2012-11-07 13:15:37 +00:00
parent d12e934795
commit 403dfd69d0

View file

@ -1289,6 +1289,17 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
vcs.gotorevision(ref)
return sdir
if name == 'Slider':
sdir = os.path.join(extlib_dir, 'Slider')
vcs = getvcs('git',
'https://github.com/Xlythe/Slider', sdir, sdk_path)
vcs.gotorevision(ref)
if subprocess.call([os.path.join(sdk_path, 'tools', 'android'),
'update', 'project', '-p',
sdir]) != 0:
raise BuildException('Error updating Slider project')
return sdir
raise BuildException('Unknown srclib ' + name)