1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

some srclibs

This commit is contained in:
David Black 2012-10-01 16:15:31 +01:00
parent 50c1afdded
commit 6e88822d86

View File

@ -1084,6 +1084,23 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
'update', 'project', '-p',
libdir]) != 0:
raise BuildException('Error updating EmulatorView project')
if basepath:
return sdir
return libdir
#Leave the native code as a blob; submodules required for that
if name == 'Libpd':
sdir = os.path.join(extlib_dir, 'Libpd')
vcs = getvcs('git',
'https://github.com/libpd/pd-for-android.git', sdir, sdk_path)
vcs.gotorevision(ref)
libdir = os.path.join(sdir, 'PdCore')
if subprocess.call([os.path.join(sdk_path, 'tools', 'android'),
'update', 'project', '-p',
libdir]) != 0:
raise BuildException('LibPd project')
if basepath:
return sdir
return libdir
if name == 'Tree-View-List':
@ -1097,6 +1114,17 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
raise BuildException('Error updating Tree-List-View project')
return sdir
if name == 'Transdroid-Search':
sdir = os.path.join(extlib_dir, 'Transdroid-Search')
vcs = getvcs('git-svn',
'http://transdroid-search.googlecode.com/svn/trunk/', 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 Transdroid-Search project')
return sdir
raise BuildException('Unknown srclib ' + name)