mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
new srclib AppMsg
This commit is contained in:
parent
01d3b32126
commit
3627692564
1 changed files with 14 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue