-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwscript
36 lines (26 loc) · 1.04 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
# vim:ft=python
APPNAME = 'goocaa'
VERSION = '0.2'
top = '.'
out = 'build'
def options(opt):
opt.tool_options('compiler_cc')
opt.add_option('--with-debug', action='store_true', default=False, help='enable additional debugging')
def configure(conf):
import Options
if Options.options.with_debug:
conf.env.append_unique('CFLAGS', ['-Wall', '-g'])
conf.check_tool('compiler_cc')
conf.check_cfg(atleast_pkgconfig_version='0.0.0')
conf.check_cfg(package='libxml-2.0', args='--cflags --libs', uselib_store='LIBXML', mandatory=True)
conf.check_cfg(package='glib-2.0', args='--cflags --libs', uselib_store='GLIB', mandatory=True)
conf.check_cfg(package='libcurl', args='--cflags --libs', uselib_store='CURL', mandatory=True)
def build(bld):
t = bld(
features = ['c', 'cprogram'],
source = ['main.c', 'google.c', 'cache.c'],
target = 'goocaa',
install_path = '${PREFIX}/bin',
uselib=['NEON', 'LIBXML', 'GLIB', 'CURL'])
def dist(ctx):
ctx.algo = 'tar.gz'