Add anysoftkeyboard-api as srclib

This commit is contained in:
David Black 2012-09-18 11:07:56 +01:00
parent d3e2f9e5c4
commit 7a23c4e17f

View file

@ -853,6 +853,18 @@ def getsrclib(spec, extlib_dir, sdk_path):
raise BuildException('Error updating NewQuickAction3D project')
return sdir
if name == 'AnySoftKeyboard-API':
sdir = os.path.join(extlib_dir, 'AnySoftKeyboard-API')
vcs = getvcs('git',
'https://github.com/AnySoftKeyboard/AnySoftKeyboard-API.git', 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 AnySoftKeyboard-API project')
return sdir
raise BuildException('Unknown srclib ' + name)