Commit 48469dd0 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Generate icons from svg (fixes #28)

parent ee7efac6
custom_target('org.pwmt.zathura_128.png',
input: '../org.pwmt.zathura.svg',
output: 'org.pwmt.zathura.png',
command: [
rsvg_convert,
'-w', '128', '-h', '128',
'-o', '@OUTPUT@',
'@INPUT@'
],
install: true,
install_dir: join_paths(datadir, 'icons', 'hicolor', '128x128', 'apps')
)
custom_target('org.pwmt.zathura_16.png',
input: '../org.pwmt.zathura.svg',
output: 'org.pwmt.zathura.png',
command: [
rsvg_convert,
'-w', '16', '-h', '16',
'-o', '@OUTPUT@',
'@INPUT@'
],
install: true,
install_dir: join_paths(datadir, 'icons', 'hicolor', '16x16', 'apps')
)
custom_target('org.pwmt.zathura_256.png',
input: '../org.pwmt.zathura.svg',
output: 'org.pwmt.zathura.png',
command: [
rsvg_convert,
'-w', '256', '-h', '256',
'-o', '@OUTPUT@',
'@INPUT@'
],
install: true,
install_dir: join_paths(datadir, 'icons', 'hicolor', '256x256', 'apps')
)
custom_target('org.pwmt.zathura_32.png',
input: '../org.pwmt.zathura.svg',
output: 'org.pwmt.zathura.png',
command: [
rsvg_convert,
'-w', '32', '-h', '32',
'-o', '@OUTPUT@',
'@INPUT@'
],
install: true,
install_dir: join_paths(datadir, 'icons', 'hicolor', '32x32', 'apps')
)
custom_target('org.pwmt.zathura_64.png',
input: '../org.pwmt.zathura.svg',
output: 'org.pwmt.zathura.png',
command: [
rsvg_convert,
'-w', '64', '-h', '64',
'-o', '@OUTPUT@',
'@INPUT@'
],
install: true,
install_dir: join_paths(datadir, 'icons', 'hicolor', '64x64', 'apps')
)
......@@ -7,7 +7,14 @@ zathura_resources = gnome.compile_resources(
)
install_data('org.pwmt.zathura.xml', install_dir: dbusinterfacesdir)
install_data('org.pwmt.zathura.png', install_dir: join_paths(datadir, 'icons', 'hicolor', '128x128', 'apps'))
install_data('org.pwmt.zathura.svg', install_dir: join_paths(datadir, 'icons', 'scalable', 'apps'))
rsvg_convert = find_program('rsvg-convert', required: false, native: true)
if rsvg_convert.found()
foreach width : [16, 32, 64, 128, 256]
subdir('icon-@0@'.format(width))
endforeach
endif
i18n = import('i18n')
podir = join_paths(meson.source_root(), 'po')
......
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="128.000000pt" height="128.000000pt" viewBox="0 0 128.000000 128.000000"
preserveAspectRatio="xMidYMid meet">
<g transform="translate(0.000000,128.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M763 1057 c-19 -27 -23 -47 -23 -109 0 -42 -4 -88 -10 -103 -10 -25
-11 -26 -92 -23 l-83 3 -5 60 c-8 101 -60 144 -109 91 -18 -19 -22 -33 -20
-81 3 -61 -12 -85 -52 -85 -24 0 -86 -37 -93 -56 -7 -19 10 -64 26 -65 7 -1
35 -1 61 1 31 1 57 -4 73 -15 23 -14 25 -22 22 -73 l-3 -57 -110 -5 c-145 -7
-185 -28 -164 -89 6 -17 12 -32 12 -32 1 -1 60 -5 132 -8 l130 -6 8 -84 c8
-88 24 -121 57 -121 25 0 30 20 30 113 0 132 1 133 101 144 81 8 89 0 89 -97
0 -63 4 -82 21 -104 27 -34 45 -33 64 5 14 27 15 40 4 100 -16 90 -9 99 78 99
75 0 143 28 143 60 0 23 -32 43 -54 34 -9 -4 -41 -3 -70 0 -74 10 -106 39
-106 99 0 61 17 106 43 112 12 3 60 9 106 15 89 10 111 21 111 51 0 18 -9 19
-115 19 -109 0 -115 1 -130 24 -13 19 -14 35 -6 90 16 114 -19 163 -66 93z
m-29 -343 c8 -20 8 -128 0 -148 -5 -12 -21 -16 -73 -16 -85 0 -102 12 -108 77
-5 46 -3 51 27 76 26 23 41 27 90 27 44 0 59 -4 64 -16z"/>
</g>
</svg>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment