1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 02:50:12 +01:00

Merge commit 'refs/merge-requests/97' of git://gitorious.org/f-droid/fdroidserver into merge-requests/97

This commit is contained in:
Ciaran Gultnieks 2012-10-20 21:50:24 +01:00
commit 5c9f3754c6

View File

@ -1140,14 +1140,7 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
vcs = getvcs('git',
'https://github.com/chrisbanes/Android-PullToRefresh.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 PullToRefresh project')
if basepath:
return sdir
return libdir
return sdir
if name == 'TessTwo':
sdir = os.path.join(extlib_dir, 'TessTwo')
@ -1177,6 +1170,24 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
vcs.gotorevision(ref)
return sdir
if name == 'MobAdMob':
sdir = os.path.join(extlib_dir, 'MobAdMob')
vcs = getvcs('git',
'https://github.com/mar-v-in/MobAdMob.git', sdir, sdk_path)
vcs.gotorevision(ref)
libdir = os.path.join(sdir, 'MobAdMob')
pp = open(os.path.join(libdir, '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',
libdir]) != 0:
raise BuildException('Error updating MobAdMob project')
if basepath:
return sdir
return libdir
raise BuildException('Unknown srclib ' + name)