build: Require OpenSSL
refs: #2375 Change-Id: I0fe7c44b9e025bbe9a2e58cf0cab95069e668945
This commit is contained in:
1 parent
a2228c6e1f
commit
b45eed2d28
3 files changed
+10
-5
No files matched your search
@@ -2,4 +2,6 @@
|
||||
set -x
|
||||
set -e
|
||||
|
||||
rm -Rf ~/.ndn
|
||||
|
||||
./build/unit-tests-nlsr -l test_suite
|
||||
@@ -30,10 +30,11 @@ def check_openssl(self,*k,**kw):
|
||||
libcrypto = self.check_cxx(lib=['ssl', 'crypto'],
|
||||
msg='Checking for OpenSSL library',
|
||||
define_name='HAVE_%s' % var,
|
||||
global_define=True,
|
||||
uselib_store=var,
|
||||
mandatory=mandatory,
|
||||
cxxflags="-I%s/include" % root,
|
||||
linkflags="-L%s/lib" % root)
|
||||
includes="%s/include" % root,
|
||||
libpath="%s/lib" % root)
|
||||
else:
|
||||
libcrypto = self.check_cxx(lib=['ssl', 'crypto'],
|
||||
msg='Checking for OpenSSL library',
|
||||
|
||||
@@ -48,11 +48,13 @@ def configure(conf):
|
||||
'doxygen', 'sphinx_build'])
|
||||
|
||||
conf.check_cfg(package='libndn-cxx', args=['--cflags', '--libs'],
|
||||
uselib_store='NDN_CPP', mandatory=True)
|
||||
uselib_store='NDN_CXX', mandatory=True)
|
||||
|
||||
conf.check_cfg(package='liblog4cxx', args=['--cflags', '--libs'],
|
||||
uselib_store='LOG4CXX', mandatory=True)
|
||||
|
||||
conf.check_openssl(mandatory=True)
|
||||
|
||||
boost_libs = 'system chrono program_options iostreams thread regex filesystem'
|
||||
if conf.options.with_tests:
|
||||
conf.env['WITH_TESTS'] = 1
|
||||
@@ -98,7 +100,7 @@ def build(bld):
|
||||
name='nsync-objects',
|
||||
features='cxx',
|
||||
source=bld.path.ant_glob(['nsync/**/*.cc', 'nsync/**/*.proto']),
|
||||
use='BOOST NDN_CPP OPENSSL',
|
||||
use='BOOST NDN_CXX OPENSSL',
|
||||
includes='nsync',
|
||||
export_includes='nsync',
|
||||
)
|
||||
@@ -109,7 +111,7 @@ def build(bld):
|
||||
features='cxx',
|
||||
source=bld.path.ant_glob(['src/**/*.cpp'],
|
||||
excl=['src/main.cpp']),
|
||||
use='nsync-objects NDN_CPP BOOST LOG4CXX',
|
||||
use='nsync-objects NDN_CXX BOOST LOG4CXX',
|
||||
includes='. src',
|
||||
export_includes='. src',
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user