~cypheon/elfelli

ref: 81071c0ffe55c39496eb171e669897ac6e4bc98e elfelli/data/SConscript -rw-r--r-- 744 bytes
81071c0f — Johann Rudloff Explicitly specify destination for application binary. 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# -*- Python -*-

Import('env')

data_files = ['elfelli-logo.svg',
              'negative.svg',
              'positive.svg',
              'negative-plate.svg',
              'positive-plate.svg',
              'ui.xml']

env.Install(env['destdir']+env['datadir'], data_files)

env.Install(env['destdir']+env['xdg_datadir']+'/applications', 'elfelli.desktop')

if env['build_icons']:
    env.Command('elfelli_48.png', 'elfelli-logo.svg', 'rsvg -w 48 -h 48 -f png $SOURCE $TARGET')
    env.Alias('icons', 'elfelli_48.png')

env.InstallAs(env['destdir']+env['xdg_datadir']+'/icons/hicolor/scalable/apps/elfelli.svg', 'elfelli-logo.svg')
env.InstallAs(env['destdir']+env['xdg_datadir']+'/icons/hicolor/48x48/apps/elfelli.png', 'elfelli_48.png')