-
Notifications
You must be signed in to change notification settings - Fork 1
/
wscript
48 lines (33 loc) · 1.59 KB
/
wscript
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
48
#! /usr/bin/env python
# encoding: utf-8
VERSION = '0.8.0'
APPNAME = 'Abraca'
top = '.'
out = 'build'
def options(opt):
opt.load('compiler_c vala intltool')
def configure(conf):
conf.load('compiler_c vala intltool')
conf.load('gresource man', tooldir='waftools')
conf.check_vala((0, 24, 0))
conf.env.append_unique("CFLAGS", ["-g", "-O0"])
conf.check_cfg(package='gio-2.0', atleast_version='2.40', args='--cflags --libs')
conf.check_cfg(package='gio-unix-2.0', atleast_version='2.40', args='--cflags --libs')
conf.check_cfg(package='glib-2.0', atleast_version='2.40', args='--cflags --libs')
conf.check_cfg(package='gmodule-2.0', atleast_version='2.40', args='--cflags --libs')
conf.check_cfg(package='gtk+-3.0', atleast_version='3.12', args='--cflags --libs')
conf.check_cfg(package='gee-0.8', atleast_version='0.10.5', args='--cflags --libs')
conf.check_cfg(package='xmms2-client', atleast_version='0.8', args='--cflags --libs')
conf.check_cfg(package='xmms2-client-glib', atleast_version='0.8', args='--cflags --libs')
conf.check_cc(lib="m", uselib_store="math")
conf.env.VALADEFINES = []
if conf.check_cc(function_name='xmmsc_coll_query', header_name='xmmsclient/xmmsclient.h', uselib='XMMS2-CLIENT', mandatory=False):
conf.env.VALADEFINES.append('XMMS_API_COLLECTIONS_TWO_DOT_ZERO')
conf.env.VALADEFINES.append('DEST_OS_' + conf.env.DEST_OS.upper())
conf.env.DEFINES.append('GETTEXT_PACKAGE=\"Abraca\"')
conf.define('APPNAME', APPNAME)
conf.define('VERSION', VERSION)
conf.write_config_header('build-config.h')
conf.recurse('external')
def build(bld):
bld.recurse('external src data po')