if conf.options.static:
conf.env.HAVE_CXML = 1
+ conf.env.LIB_CXML = ['glibmm-2.4', 'glib-2.0', 'pcre', 'sigc-2.0', 'rt', 'xml++-2.6', 'xml2', 'pthread', 'lzma', 'dl', 'z']
conf.env.STLIB_CXML = ['cxml']
+ conf.check_cfg(package='libcxml', atleast_version='0.08', args='--cflags', uselib_store='CXML', mandatory=True)
else:
conf.check_cfg(package='libcxml', atleast_version='0.08', args='--cflags --libs', uselib_store='CXML', mandatory=True)
okmsg='yes',
errmsg='too old\nPlease install boost version 1.45 or higher.')
+ conf.check_cxx(fragment = """
+ #include <boost/filesystem.hpp>\n
+ int main() { boost::filesystem::copy_file ("a", "b"); }\n
+ """,
+ msg = 'Checking for boost filesystem library',
+ libpath = '/usr/local/lib',
+ lib = ['boost_filesystem', 'boost_system'],
+ uselib_store = 'BOOST_FILESYSTEM')
+
+ conf.check_cxx(fragment = """
+ #include <boost/locale.hpp>\n
+ int main() { boost::locale::conv::to_utf<char> ("a", "cp850"); }\n
+ """,
+ msg = 'Checking for boost locale library',
+ libpath = '/usr/local/lib',
+ lib = ['boost_locale', 'boost_system'],
+ uselib_store = 'BOOST_LOCALE')
+
conf.recurse('test')
def build(bld):
bld.recurse('src')
bld.recurse('test')
+ bld.recurse('tools')
bld.add_post_fun(post)