* added icons
[jackpanel.git] / wscript
blobe21241f4c22c6be13a49c945abaf3c02a4582337
1 #!/usr/bin/env python
3 VERSION = "0.0.1"
4 VERSION_MAJOR_MINOR = ".".join(VERSION.split(".")[0:2])
5 APPNAME = "jackpanel"
7 srcdir = '.'
8 blddir = 'build'
10 def set_options(opt):
11 opt.tool_options('compiler_cc')
13 def configure(conf):
14 conf.check_tool('compiler_cc cc')
15 conf.check_tool('vala')
17 min_vala_version = (0, 5, 7)
18 if conf.env['VALAC_VERSION'] < min_vala_version:
19 conf.fatal('Your vala compiler version ' + str(conf.env['VALAC_VERSION']) +
20 ' is too old. The project requires at least version 0.5.7' );
22 conf.check_cfg(package='prolooks', uselib_store='PROLOOKS', atleast_version='0.0.1', mandatory=1, args='--cflags --libs')
23 conf.check_cfg(package='jack', uselib_store='JACK', atleast_version='0.116.2', mandatory=1, args='--cflags --libs')
24 # conf.check_cfg(package='libpanelapplet-2.0', uselib_store='PANEL_APPLET', atleast_version='2.22.2', mandatory=1, args='--cflags --libs')
25 conf.check_cfg(package='cairo', uselib_store='CAIRO', atleast_version='1.6.0', mandatory=1, args='--cflags --libs')
26 conf.check_cfg(package='gconf-2.0', uselib_store='GCONF', atleast_version='2.22.0', mandatory=1, args='--cflags --libs')
28 conf.env['CCFLAGS'] = '-I./default -O0 -g -std=c99'
30 conf.define('PACKAGE', APPNAME)
31 conf.define('PACKAGE_NAME', APPNAME)
32 conf.define('PACKAGE_STRING', APPNAME + '-' + VERSION)
33 conf.define('PACKAGE_VERSION', APPNAME + '-' + VERSION)
35 conf.define('VERSION', VERSION)
36 conf.define('VERSION_MAJOR_MINOR', VERSION_MAJOR_MINOR)
38 def build(bld):
39 bld.add_subdirs('jackpanel')
40 icon_sizes = ['16x16', '22x22', '24x24', '32x32', '48x48']
41 for s in icon_sizes:
42 bld.install_as(
43 os.path.normpath(bld.env['DATADIR'] + '/icons/hicolor/' + s + '/apps/'
44 + bld.env['APP_INSTALL_NAME'] + '.png'),
45 'icons/' + s + '/jackpanel.png')
47 def shutdown():
48 pass