grim/gir2glade

Parents 5e3324edbe82
Children
add support for parsing the library on mac and preliminary support for windows (untested)
--- a/gir2glade.xsl Tue May 08 22:05:09 2018 -0500
+++ b/gir2glade.xsl Tue May 08 22:49:52 2018 -0500
@@ -22,7 +22,7 @@
xmlns:c="http://www.gtk.org/introspection/c/1.0"
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
- <xsl:variable name="gir2glade-version" value="0.1"/>
+ <xsl:variable name="gir2glade-version" value="0.2"/>
<xsl:output method="xml" encoding="UTF-8" indent="yes" version="1.0"/>
@@ -48,6 +48,12 @@
<xsl:when test="contains($split, '.so')">
<xsl:value-of select="substring-before($split, '.so')"/>
</xsl:when>
+ <xsl:when test="contains($split, '.dylib')">
+ <xsl:value-of select="substring-before(substring-before($split, '.dylib'), '.')"/>
+ </xsl:when>
+ <xsl:when test="contains($split, '.dll')">
+ <xsl:value-of select="substring-before($split, '.dll')"/>
+ </xsl:when>
<xsl:otherwise>
<xsl:text>unsupported</xsl:text>
</xsl:otherwise>