Bump version
[libcxml.git] / wscript
1 APPNAME = 'libcxml'
2 VERSION = '0.01beta1'
3
4 def options(opt):
5     opt.load('compiler_cxx')
6
7 def configure(conf):
8     conf.load('compiler_cxx')
9     conf.env.append_value('CXXFLAGS', ['-Wall', '-Wextra', '-O2'])
10
11     conf.check_cfg(package = 'libxml++-2.6', args = '--cflags --libs', uselib_store = 'LIBXML++', mandatory = True)
12
13     conf.check_cxx(fragment = """
14                    #include <boost/filesystem.hpp>\n
15                    int main() { boost::filesystem::copy_file ("a", "b"); }\n
16                    """,
17                    msg = 'Checking for boost filesystem library',
18                    libpath = '/usr/local/lib',
19                    lib = ['boost_filesystem', 'boost_system'],
20                    uselib_store = 'BOOST_FILESYSTEM')
21
22     conf.recurse('test')
23
24 def build(bld):
25
26     bld(source = 'libcxml.pc.in',
27         version = VERSION,
28         includedir = '%s/include' % bld.env.PREFIX,
29         libs = "-L${libdir} -lcxml",
30         install_path = '${LIBDIR}/pkgconfig')
31
32     bld.recurse('src')
33     bld.recurse('test')