-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwscript
36 lines (27 loc) · 1.34 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
#! /usr/bin/env python
# encoding: utf-8
VERSION = '0.1'
APPNAME = 'kugaru'
top = '.'
out = 'build'
def options(opt):
opt.load('compiler_c compiler_cxx')
def configure(cnf):
cnf.load('compiler_c compiler_cxx')
cnf.env['INSTALL_DATA_DIR'] = '{0}/share/{1}'.format(cnf.env['PREFIX'], APPNAME)
cnf.check_cfg(package='glib-2.0', uselib_store='GLIB', args='--cflags --libs', mandatory=True)
cnf.check_cfg(package='gl', args='--cflags --libs', mandatory=True)
cnf.check_cfg(package='glu', args='--cflags --libs', mandatory=True)
cnf.check_cfg(package='openal', args='--cflags --libs', mandatory=True)
cnf.check_cfg(package='sdl', args='--cflags --libs', madatory=True)
cnf.check_cfg(package='libpng', args='--cflags --libs', mandatory=True)
cnf.check_cfg(package='zlib', args='--cflags --libs', mandatory=True)
cnf.check_cfg(package='vorbis', args='--cflags --libs', mandatory=True)
cnf.check_cfg(package='vorbisfile', args='--cflags --libs', mandatory=True)
cnf.check_cc(type_name='uint32_t', header='stdint.h', mandatory=True)
cnf.check_cc(type_name='uint64_t', header='stdint.h', mandatory=True)
cnf.check_cc(type_name='int32_t', header='stdint.h', mandatory=True)
cnf.check_cc(type_name='int64_t', header='stdint.h', mandatory=True)
cnf.recurse('src')
def build(bld):
bld.recurse('data src')