diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2013-01-03 10:40:35 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2013-01-03 10:40:35 +0000 |
commit | 04d13d264c924d5c3380076f8977ca2dd0b14fd8 (patch) | |
tree | 74449519ca2d4cb7bacb9fc42523986951932e71 /LUFA/StudioIntegration/lufa_filelist_transform.xslt | |
parent | aa61ee1c118e62e13e7fa4e2a4397e933322a52d (diff) | |
download | lufa-04d13d264c924d5c3380076f8977ca2dd0b14fd8.tar.gz lufa-04d13d264c924d5c3380076f8977ca2dd0b14fd8.tar.bz2 lufa-04d13d264c924d5c3380076f8977ca2dd0b14fd8.zip |
Add Atmel Studio integration files.
Diffstat (limited to 'LUFA/StudioIntegration/lufa_filelist_transform.xslt')
-rw-r--r-- | LUFA/StudioIntegration/lufa_filelist_transform.xslt | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/LUFA/StudioIntegration/lufa_filelist_transform.xslt b/LUFA/StudioIntegration/lufa_filelist_transform.xslt new file mode 100644 index 000000000..1482f4db9 --- /dev/null +++ b/LUFA/StudioIntegration/lufa_filelist_transform.xslt @@ -0,0 +1,33 @@ +<!-- + LUFA Library + Copyright (C) Dean Camera, 2012. + + dean [at] fourwalledcubicle [dot] com + www.lufa-lib.org +--> + +<!-- Atmel Studio framework Module XML transform file --> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + <xsl:output method="xml" omit-xml-declaration="yes"/> + + <!-- Read manifest list, add a comment to indicate the source filename + and then process all ASF nodes in the referenced document --> + <xsl:template match="lufa-manifest"> + <xsl:for-each select="xml-source"> + <xsl:comment>Sourced from <xsl:value-of select="@filename"/></xsl:comment> + <xsl:apply-templates select="document(@filename)/lufa/asf/*"/> + </xsl:for-each> + </xsl:template> + + <!-- Recursively match and process all nodes/attributes --> + <xsl:template match="@*|node()"> + <xsl:apply-templates select="@*|node()"/> + </xsl:template> + + <!-- Match source file nodes, output filename --> + <xsl:template match="build[@type='c-source']|build[@type='header-file']"> + <xsl:value-of select="@value"/> + <xsl:text>
</xsl:text> + </xsl:template> +</xsl:stylesheet> |