new srclib AppMsg

This commit is contained in:
David Black 2013-01-03 17:48:00 +00:00
parent 01d3b32126
commit 3627692564

View file

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