~and471/+junk/lightdm-picker

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env python

VERSION = "0.1.0"
VERSION_MAJOR_MINOR =  ".".join(VERSION.split(".")[0:2])
APPNAME = "lightdm-picker"

top = '.'
out = '_build_'

def options(opt):
    opt.load('compiler_c')
    opt.load('vala')

def configure(conf):
    conf.load('compiler_c vala')

    # Backend Libraries
    conf.check_cfg(package='glib-2.0', uselib_store='GLIB',
            atleast_version='2.14.0', mandatory=True, args='--cflags --libs')
    conf.check_cfg(package='gobject-2.0', uselib_store='GOBJECT',
            atleast_version='2.14.0', mandatory=True, args='--cflags --libs')
    conf.check_cfg(package='gmodule-2.0', uselib_store='GMODULE',
            atleast_version='2.14.0', mandatory=True, args='--cflags --libs')
    #conf.check_cfg(package='seed', uselib_store='SEED',
    #        atleast_version='3.1.2', mandatory=True, args='--cflags --libs')
    #conf.check_cfg(package='seedkit-1.0', uselib_store='SEEDKIT',
    #        atleast_version='0.1', mandatory=True, args='--cflags --libs')

    # GUI Libraries
    conf.check_cfg(package='gtk+-3.0', uselib_store='GTK+',
            atleast_version='3.0', mandatory=True, args='--cflags --libs')
    conf.check_cfg(package='gdk-3.0', uselib_store='GDK',
            atleast_version='3.0', mandatory=True, args='--cflags --libs')
    conf.check_cfg(package='webkitgtk-3.0', uselib_store='WEBKIT',
            atleast_version='1.3', mandatory=True, args='--cflags --libs')

    conf.define('PACKAGE', APPNAME)
    conf.define('PACKAGE_NAME', APPNAME)
    conf.define('PACKAGE_STRING', APPNAME + '-' + VERSION)
    conf.define('PACKAGE_VERSION', APPNAME + '-' + VERSION)

    conf.define('VERSION', VERSION)
    conf.define('VERSION_MAJOR_MINOR', VERSION_MAJOR_MINOR)

def build(bld):
    bld.recurse('src')