-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwscript
47 lines (39 loc) · 1.75 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
#!/usr/bin/env python
# encoding: utf-8
# Copyright (C) 2012 Michael Fisher <[email protected]>
''' This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public Licence as published by
the Free Software Foundation, either version 3 of the Licence, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
file COPYING for more details. '''
VERSION = '1.0.1'
def options (opt):
opt.load ('compiler_c compiler_cxx')
def configure (conf):
conf.load ('compiler_c compiler_cxx')
conf.define('VERSION', VERSION)
conf.check(lib='boost_system', uselib_store='BOOST', mandatory=False)
conf.check(header_name='boost/spirit/home/classic/utility/chset.hpp',
uselib_store='BOOST', mandatory=True)
conf.check(header_name='boost/spirit/include/classic_dynamic.hpp',
uselib_store='BOOST', mandatory=True)
conf.check(header_name='boost/spirit/include/classic_core.hpp',
uselib_store='BOOST', mandatory=True)
conf.check(header_name='boost/spirit/include/classic_parse_tree.hpp',
uselib_store='BOOST', mandatory=True)
conf.check(header_name='boost/spirit/include/classic_utility.hpp',
uselib_store='BOOST', mandatory=False)
conf.check(header_name='boost/spirit/include/classic_ast.hpp',
uselib_store='BOOST', mandatory=True)
def build (bld):
glob = bld.path.ant_glob
bld.program (
includes = ['src'],
source = glob ('src/*.cpp'),
name = 'ttl2c',
target = 'bin/ttl2c',
use = ['BOOST']
)