wscript: bumped version
[libprolooks.git] / wscript
blob924e8ca8992a27e31aac52301feb95b334d4fc13
1 #!/usr/bin/env python
2 import autowaf
4 PROLOOKS_VERSION = "1.0.1"
6 VERSION = PROLOOKS_VERSION
7 VERSION_MAJOR_MINOR = ".".join(VERSION.split(".")[0:2])
8 APPNAME = "libprolooks"
10 srcdir = '.'
11 blddir = 'build'
13 def set_options(opt):
14 autowaf.set_options(opt)
15 opt.tool_options('compiler_cc')
17 def configure(conf):
18 autowaf.configure(conf)
19 conf.check_tool('compiler_cc cc')
20 conf.check_tool('vala')
22 min_vala_version = (0, 5, 7)
23 if conf.env['VALAC_VERSION'] < min_vala_version:
24 conf.fatal('Your vala compiler version ' + str(conf.env['VALAC_VERSION']) +
25 ' is too old. The project requires at least version 0.5.7' );
27 autowaf.check_pkg(conf, 'gobject-2.0', uselib_store='GOBJECT', atleast_version='2.10.0', mandatory=False)
28 autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB', atleast_version='2.10.0', mandatory=False)
29 autowaf.check_pkg(conf, 'gtk+-2.0', uselib_store='GTK', atleast_version='2.10.0', mandatory=False)
30 autowaf.check_pkg(conf, 'cairo', uselib_store='CAIRO', atleast_version='1.6.0', mandatory=False)
32 conf.env['CCFLAGS'] = '-I./default'
34 conf.define('PACKAGE', APPNAME)
35 conf.define('PACKAGE_NAME', APPNAME)
36 conf.define('PACKAGE_STRING', APPNAME + '-' + VERSION)
37 conf.define('PACKAGE_VERSION', APPNAME + '-' + VERSION)
39 conf.define('VERSION', VERSION)
40 conf.define('VERSION_MAJOR_MINOR', VERSION_MAJOR_MINOR)
42 autowaf.print_summary(conf)
44 def build(bld):
45 autowaf.build_pc(bld, 'PROLOOKS', PROLOOKS_VERSION, ['GTK'])
46 bld.add_subdirs('prolooks')
48 def shutdown():
49 pass