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:
parent
65d28b4018
commit
80461c9b76
2 changed files with 12 additions and 1 deletions
|
|
@ -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')
|
||||
|
||||
#####################################################################
|
||||
|
|
|
|||
|
|
@ -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. """
|
||||
|
|
|
|||
Loading…
Reference in a new issue