mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 15:32:30 +03:00
one srclibs RootTools
This commit is contained in:
parent
6d9982dc00
commit
f7ecd0cd23
1 changed files with 16 additions and 0 deletions
|
@ -1459,6 +1459,22 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
|
|||
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
|
||||
|
||||
raise BuildException('Unknown srclib ' + name)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue