2012-11-07 20:10:39 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
xmlns:str="http://exslt.org/strings"
|
2014-09-02 18:18:30 +01:00
|
|
|
xmlns:sdk="http://schemas.android.com/sdk/android/sys-img/3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
2012-11-07 20:10:39 +00:00
|
|
|
|
|
|
|
<xsl:output omit-xml-declaration="yes" indent="no" />
|
|
|
|
|
2014-09-02 18:18:30 +01:00
|
|
|
<xsl:template match="/sdk:sdk-sys-img">
|
2016-06-19 03:26:34 +01:00
|
|
|
<xsl:for-each select="sdk:system-image"><xsl:sort select="sdk:api-level" data-type="number"/><xsl:sort select="sdk:abi"/>
|
2013-07-31 17:56:27 +01:00
|
|
|
sysimg_<xsl:value-of select="sdk:abi" />_<xsl:value-of select="sdk:api-level" /> = buildSystemImage {
|
2014-09-02 18:18:30 +01:00
|
|
|
name = "sysimg-<xsl:value-of select="sdk:abi" />-<xsl:value-of select="sdk:api-level" />";
|
2012-11-07 20:10:39 +00:00
|
|
|
src = fetchurl {
|
2015-10-06 13:27:49 +01:00
|
|
|
url = <xsl:if test="not(starts-with(sdk:archives/sdk:archive/sdk:url, 'https://'))">https://dl.google.com/android/repository/sys-img/android/</xsl:if><xsl:value-of select="sdk:archives/sdk:archive/sdk:url" />;
|
2014-09-02 18:18:30 +01:00
|
|
|
sha1 = "<xsl:value-of select="sdk:archives/sdk:archive/sdk:checksum[@type='sha1']" />";
|
2012-11-07 20:10:39 +00:00
|
|
|
};
|
|
|
|
};
|
2015-05-02 14:15:29 +01:00
|
|
|
</xsl:for-each>
|
2012-11-07 20:10:39 +00:00
|
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|