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
|
from waflib import Utils
def build(bld):
bld(features = 'c cprogram',
target = 'xmms2-mlib-updater',
source = ['main.c'],
includes = '. ../../.. ../../include',
uselib = 'glib2 gio2 gthread2',
use = 'xmmsclient-glib xmmsclient'
)
bld(features = 'subst',
target = 'xmms2-mlib-updater.sh',
source = 'xmms2-mlib-updater.sh.in',
install_path = '${SCRIPTDIR}',
chmod = Utils.O755,
PRG_PATH=bld.env.BINDIR
)
def configure(conf):
conf.check_cfg(package="gio-2.0", uselib_store='gio2',
args="--cflags --libs")
conf.check_cfg(package="gthread-2.0", uselib_store='gthread2',
args="--cflags --libs")
conf.check_cc(header_name="gio/gio.h", uselib="gio2", mandatory=False)
def options(opt):
pass
|