13
0

waf's "copy" feature does not install

This commit is contained in:
Robin Gareus 2016-05-17 11:52:14 +02:00
parent 004990463e
commit b7965a660d

View File

@ -796,16 +796,17 @@ def build(bld):
bld.install_files(os.path.join (bld.env['DATADIR'], 'pixmaps'), bld.path.ant_glob('pixmaps/*.xpm')) bld.install_files(os.path.join (bld.env['DATADIR'], 'pixmaps'), bld.path.ant_glob('pixmaps/*.xpm'))
bld.install_files(bld.env['DATADIR'], 'ArdourMono.ttf') bld.install_files(bld.env['DATADIR'], 'ArdourMono.ttf')
# Splash # Splash (copy to build-dir to run from src and rename+install)
lowercase_appname = Options.options.program_name.lower(); lowercase_appname = Options.options.program_name.lower();
obj = bld(features = 'copy') obj = bld(features = 'copy')
obj.source = 'icons/' + lowercase_appname + '-splash.png' obj.source = 'icons/' + lowercase_appname + '-splash.png'
obj.target = 'splash.png' obj.target = 'splash.png'
obj.install_path = bld.env['DATADIR'] bld.install_as(os.path.join(os.path.normpath(bld.env['DATADIR']), 'splash.png'), 'icons/' + lowercase_appname + '-splash.png')
obj = bld(features = 'copy') obj = bld(features = 'copy')
obj.source = 'icons/' + lowercase_appname + '-small-splash.png' obj.source = 'icons/' + lowercase_appname + '-small-splash.png'
obj.target = 'small-splash.png' obj.target = 'small-splash.png'
obj.install_path = bld.env['DATADIR'] bld.install_as(os.path.join(os.path.normpath(bld.env['DATADIR']), 'small-splash.png'), 'icons/' + lowercase_appname + '-small-splash.png')
if bld.env['build_target'] == 'mingw': if bld.env['build_target'] == 'mingw':