summaryrefslogtreecommitdiffstats
path: root/src/res2cc_cmd.py
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-07-18 15:01:33 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-07-18 15:01:33 (GMT)
commit1fb2408b0ef717f0e475894f646bcd4c1b90b65e (patch)
tree92486d4160d9b252374cc7ef2d0d6f2947712d24 /src/res2cc_cmd.py
parent77c3cf1450b7780c2382d18036153d37d33877b8 (diff)
downloadDoxygen-1fb2408b0ef717f0e475894f646bcd4c1b90b65e.zip
Doxygen-1fb2408b0ef717f0e475894f646bcd4c1b90b65e.tar.gz
Doxygen-1fb2408b0ef717f0e475894f646bcd4c1b90b65e.tar.bz2
Replaced bitmap of doxygen logo by SVG version
Diffstat (limited to 'src/res2cc_cmd.py')
-rwxr-xr-xsrc/res2cc_cmd.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/res2cc_cmd.py b/src/res2cc_cmd.py
index 86d999d..268ae86 100755
--- a/src/res2cc_cmd.py
+++ b/src/res2cc_cmd.py
@@ -58,6 +58,7 @@ class File(object):
if ext=='.lum': return LumFile(directory,subdir,fname)
if ext=='.luma': return LumaFile(directory,subdir,fname)
if ext=='.css': return CSSFile(directory,subdir,fname)
+ if ext=='.svg': return SVGFile(directory,subdir,fname)
return VerbatimFile(directory,subdir,fname)
class VerbatimFile(File):
@@ -76,6 +77,14 @@ class CSSFile(File):
def writeDirEntry(self,outputFile):
print(" { \"%s\", \"%s\", %s_data, %s_len, Resource::CSS }," % (self.subdir,self.fileName,self.bareName,self.bareName), file=outputFile)
+class SVGFile(File):
+ def __init__(self,directory,subdir,fileName):
+ File.__init__(self,directory,subdir,fileName,"r")
+ def writeContents(self,outputFile):
+ self.writeBytes(self.inputFile.read(),outputFile)
+ def writeDirEntry(self,outputFile):
+ print(" { \"%s\", \"%s\", %s_data, %s_len, Resource::SVG }," % (self.subdir,self.fileName,self.bareName,self.bareName), file=outputFile)
+
class LumFile(File):
def __init__(self,directory,subdir,fileName):
File.__init__(self,directory,subdir,fileName,"r")