File: wscript

package info (click to toggle)
xmms2 0.8%2Bdfsg-21
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 14,024 kB
  • sloc: ansic: 63,803; python: 15,537; cpp: 5,718; xml: 1,479; perl: 338; ruby: 243; makefile: 83; sh: 59; asm: 7
file content (31 lines) | stat: -rw-r--r-- 834 bytes parent folder | download | duplicates (3)
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