mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-13 02:30:11 +01:00
Add Google-Gson srclib
This commit is contained in:
parent
7bb4d5865b
commit
0fb9af733a
@ -898,6 +898,20 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
|
||||
return sdir
|
||||
return libdir
|
||||
|
||||
if name == 'Google-Gson':
|
||||
sdir = os.path.join(extlib_dir, 'Google-Gson')
|
||||
vcs = getvcs('git-svn',
|
||||
'http://google-gson.googlecode.com/svn/trunk', sdir, sdk_path)
|
||||
vcs.gotorevision(ref)
|
||||
libdir = os.path.join(sdir, 'gson')
|
||||
if subprocess.call([os.path.join(sdk_path, 'tools', 'android'),
|
||||
'update', 'project', '-p',
|
||||
libdir]) != 0:
|
||||
raise BuildException('Error updating Google-Gson project')
|
||||
if basepath:
|
||||
return sdir
|
||||
return libdir
|
||||
|
||||
if name == 'Amazing-ListView':
|
||||
sdir = os.path.join(extlib_dir, 'Amazing-ListView')
|
||||
vcs = getvcs('git-svn',
|
||||
|
Loading…
Reference in New Issue
Block a user