Esempio n. 1
0
 def createIconTargets(target,source,env):
     """ parse the SVG to get the target file names """
     source = str(source[0])
     targetdir = env.path.buildIcon
     targetfiles = renderer.getTargetNames(source)    # parse SVG
     
     # additionally create an installation task for each Icon to be generated
     installLocation = env.path.installIcon
     generateTargets = []
     for icon in targetfiles:
         icon = targetdir+icon
         subdir = getDirname(str(icon))
         env.Install (installLocation+subdir, icon)
         generateTargets.append(icon) 
     
     return (generateTargets, source)
Esempio n. 2
0
 def invokeRenderer(target, source, env):
     source = str(source[0])
     targetdir = env.subst(env.path.buildIcon)
     if targetdir.startswith('#'): targetdir = targetdir[1:]
     renderer.main([source,targetdir])
     return 0