SCons: try to force installation of all generated icons

Not sure if this works; problem is that the icons
generated from SVG are just dumped into the target
folder, but we miss to generate the respective
installation targets
This commit is contained in:
Fischlurch 2011-02-07 11:35:44 +01:00
parent 65d28b4018
commit 80461c9b76
2 changed files with 12 additions and 1 deletions

View file

@ -410,6 +410,7 @@ def defineInstallTargets(env, artifacts):
env.SymLink('$DESTDIR/bin/lumiera',env.path.installExe+'lumiera','../lib/lumiera/lumiera')
# env.Install(dir = '$DESTDIR/share/doc/lumiera$VERSION/devel', source=artifacts['doxydoc'])
env.Alias('install', artifacts['gui'])
env.Alias('install', '$DESTDIR')
#####################################################################

View file

@ -138,7 +138,17 @@ def register_LumieraResourceBuilder(env):
source = str(source[0])
targetdir = env.path.buildIcon
targetfiles = renderer.getTargetNames(source) # parse SVG
return ([targetdir+name for name in targetfiles], source)
# 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)
def IconResource(env, source):
"""Copy icon pixmap to corresponding icon dir. """