From 6e88822d867019f16257610de00a19b39256671e Mon Sep 17 00:00:00 2001 From: David Black Date: Mon, 1 Oct 2012 16:15:31 +0100 Subject: [PATCH] some srclibs --- fdroidserver/common.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 964f0cf1..e18ef3ca 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -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)