chiark / gitweb /
ShowCaseView (Androzic fork thereof) srclib
authorDavid Black <david8black@gmail.com>
Thu, 2 May 2013 11:21:16 +0000 (12:21 +0100)
committerDavid Black <david8black@gmail.com>
Thu, 2 May 2013 11:21:16 +0000 (12:21 +0100)
fdroidserver/common.py

index 18c593d793a78b772d13f17ce0f723de4de22683..72d98d28488488281f6482f3c39c7af97feeb00e 100644 (file)
@@ -1785,6 +1785,20 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
         vcs.gotorevision(ref)
         return sdir
 
+    if name == 'ShowCase-Androzic':
+        sdir = os.path.join(extlib_dir, 'ShowCase-Androzic')
+        vcs = getvcs('git',
+           'https://github.com/andreynovikov/ShowcaseView', 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 ShowCase project')
+        if basepath:
+            return sdir
+        return libdir
+
     raise BuildException('Unknown srclib ' + name)