Created and integrated levelized log
Change-Id: Ibfed76796a880bab2709b77b0c9540be7b75fad7
diff --git a/wscript b/wscript
index a4c72b3..ba4a4f6 100644
--- a/wscript
+++ b/wscript
@@ -29,13 +29,13 @@
conf.check_cfg(package='libndn-cxx', args=['--cflags', '--libs'],
uselib_store='NDN_CXX', mandatory=True)
- boost_libs = 'system random thread filesystem'
+ boost_libs = 'system random thread filesystem log log_setup'
if conf.options.with_tests:
conf.env['WITH_TESTS'] = 1
conf.define('WITH_TESTS', 1);
boost_libs += ' unit_test_framework'
- conf.check_boost(lib=boost_libs)
+ conf.check_boost(lib=boost_libs, mt=True)
if conf.env.BOOST_VERSION_NUMBER < 104800:
Logs.error("Minimum required boost version is 1.48.0")
Logs.error("Please upgrade your distribution or install custom boost libraries" +
@@ -48,8 +48,6 @@
conf.write_config_header('src/config.h')
def build (bld):
- feature_list = 'cxx'
-
bld(
features='cxx',
name='nTorrent',
@@ -64,12 +62,7 @@
target='ntorrent',
features='cxx cxxprogram',
source='src/main.cpp',
- use = 'BOOST nTorrent')
-
- if bld.env["WITH_TESTS"]:
- feature_list += ' cxxstlib'
- else:
- feature_list += ' cxxprogram'
+ use = 'nTorrent')
# Unit tests
if bld.env["WITH_TESTS"]:
@@ -77,7 +70,7 @@
target="unit-tests",
source = bld.path.ant_glob(['tests/**/*.cpp']),
features=['cxx', 'cxxprogram'],
- use = 'BOOST nTorrent',
+ use = 'nTorrent',
includes = "src .",
install_path = None
)