Render a 24x24 icon with rsvg-convert at build time

This commit is contained in:
Christian Dywan 2009-06-25 01:16:32 +02:00
parent 85cdadcdee
commit 53462722e6

View file

@ -15,7 +15,7 @@ def add_image (bld, category, name):
if rsvg_convert: if rsvg_convert:
Utils.check_dir (blddir + '/icons') Utils.check_dir (blddir + '/icons')
for size in [16, 22, 32, 48]: for size in [16, 22, 24, 32, 48]:
format = str (size) + 'x' + str (size) format = str (size) + 'x' + str (size)
if os.access (srcdir + '/icons/' + format + '/' + name + '.png', os.F_OK): if os.access (srcdir + '/icons/' + format + '/' + name + '.png', os.F_OK):
bld.install_files ('${MDATADIR}/icons/hicolor/' + format + '/' + category, bld.install_files ('${MDATADIR}/icons/hicolor/' + format + '/' + category,