diff --git a/data/midori.svg b/data/midori.svg new file mode 100644 index 00000000..5d1b98b8 --- /dev/null +++ b/data/midori.svg @@ -0,0 +1,230 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/wscript_build b/data/wscript_build new file mode 100644 index 00000000..b8545f82 --- /dev/null +++ b/data/wscript_build @@ -0,0 +1,34 @@ +#! /usr/bin/env python +# WAF build script for midori + +import os +import subprocess + +srcdir = os.getcwd () +blddir = bld.m_bdir + +install_files ('DATADIR', 'icons/hicolor/scalable/apps', 'midori.svg') + +if bld.env ()['CONVERT']: + def mkdir (path): + if not os.access (path, os.F_OK): + os.mkdir (path) + + mkdir (blddir + '/icons') + + for size in [16, 24, 32, 48]: + format = str (size) + 'x' + str (size) + if size < 32: + small = str ((size / 3)) + 'x' + str ((size / 3.5)) + else: + small = '0x0' + + mkdir (blddir + '/icons/' + format) + convert = subprocess.Popen (['convert', '-adaptive-sharpen', small, + '-background', 'transparent', + '-geometry', format, '-extent', format, + srcdir + '/data/midori.svg', + blddir + '/icons/' + format + '/midori.png']) + if not convert.wait (): + install_files ('DATADIR', 'icons/hicolor/' + format + '/apps', + blddir + '/icons/' + format + '/midori.png') diff --git a/wscript b/wscript index 777f174b..6a5db1ab 100644 --- a/wscript +++ b/wscript @@ -66,7 +66,7 @@ def set_options(opt): help='Disables native language support', dest='disable_nls') def build (bld): - bld.add_subdirs ('katze src') + bld.add_subdirs ('katze src data') if bld.env ()['INTLTOOL']: bld.add_subdirs ('po')