vcs.gotorevision(ref)
return sdir
+ if name == 'LocaleAPI':
+ sdir = os.path.join(extlib_dir, 'LocaleAPI')
+ vcs = getvcs('git',
+ 'https://git.gitorious.org/locale-api/mirror.git', 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 LocaleAPI project')
+ return sdir
+
+ if name == 'iptables':
+ sdir = os.path.join(extlib_dir, 'iptables')
+ vcs = getvcs('git',
+ 'https://android.googlesource.com/platform/external/iptables', sdir, sdk_path)
+ vcs.gotorevision(ref)
+ return sdir
+
+ if name == 'LockPattern':
+ sdir = os.path.join(extlib_dir, 'LockPattern')
+ vcs = getvcs('hg',
+ 'https://code.google.com/p/android-lockpattern', sdir, sdk_path)
+ vcs.gotorevision(ref)
+ libdir = os.path.join(sdir, 'code')
+ if subprocess.call([os.path.join(sdk_path, 'tools', 'android'),
+ 'update', 'project', '-p',
+ libdir]) != 0:
+ raise BuildException('Error updating LockPattern project')
+ if basepath:
+ return sdir
+ return libdir
+
raise BuildException('Unknown srclib ' + name)