mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 07:20:29 +03:00
Merge commit 'refs/merge-requests/104' of git://gitorious.org/f-droid/fdroidserver into merge-requests/104
This commit is contained in:
commit
64ee77310c
1 changed files with 41 additions and 0 deletions
|
|
@ -1448,6 +1448,47 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
|
||||||
return sdir
|
return sdir
|
||||||
return libdir
|
return libdir
|
||||||
|
|
||||||
|
if name == 'K9Mail-XOAUTH':
|
||||||
|
sdir = os.path.join(extlib_dir, 'K9Mail-XOAUTH')
|
||||||
|
vcs = getvcs('git',
|
||||||
|
'https://github.com/jberkel/k9mail.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 KMail-XOAUTH project')
|
||||||
|
return sdir
|
||||||
|
|
||||||
|
if name == 'RootTools':
|
||||||
|
sdir = os.path.join(extlib_dir, 'RootTools')
|
||||||
|
vcs = getvcs('svn',
|
||||||
|
'http://roottools.googlecode.com/svn/trunk/Stable/RootTools-sdk3-generic', sdir, sdk_path)
|
||||||
|
vcs.gotorevision(ref)
|
||||||
|
pp = open(os.path.join(sdir, 'project.properties'), 'w')
|
||||||
|
pp.write('android.library=true\n')
|
||||||
|
pp.write('target=android-16\n')
|
||||||
|
pp.close()
|
||||||
|
if subprocess.call([os.path.join(sdk_path, 'tools', 'android'),
|
||||||
|
'update', 'project', '-p',
|
||||||
|
sdir]) != 0:
|
||||||
|
raise BuildException('Error updating RootTools project')
|
||||||
|
os.remove(os.path.join(sdir, 'android.jar'))
|
||||||
|
return sdir
|
||||||
|
|
||||||
|
if name == 'OsmAnd-tools':
|
||||||
|
sdir = os.path.join(extlib_dir, 'OsmAnd-tools')
|
||||||
|
vcs = getvcs('git',
|
||||||
|
'https://github.com/osmandapp/OsmAnd-tools', sdir, sdk_path)
|
||||||
|
vcs.gotorevision(ref)
|
||||||
|
return sdir
|
||||||
|
|
||||||
|
if name == 'OsmAnd-core':
|
||||||
|
sdir = os.path.join(extlib_dir, 'OsmAnd-core')
|
||||||
|
vcs = getvcs('git',
|
||||||
|
'https://github.com/osmandapp/OsmAnd-core', sdir, sdk_path)
|
||||||
|
vcs.gotorevision(ref)
|
||||||
|
return sdir
|
||||||
|
|
||||||
raise BuildException('Unknown srclib ' + name)
|
raise BuildException('Unknown srclib ' + name)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue