Project

General

Profile

Bug #2664 » patch_ndnsim_scenario.diff

Christian Kreuzberger, 03/24/2015 12:57 AM

View differences:

.waf-tools/default-compiler-flags.py
"""This class defines base flags that work for gcc and clang compiler"""
def getDebugFlags(self, conf):
flags = super(GccBasicFlags, self).getDebugFlags(conf)
flags['CXXFLAGS'] += ['-pedantic', '-Wall',
flags['CXXFLAGS'] += ['-Wall',
'-O0',
'-g3',
'-Werror',
......
def getOptimizedFlags(self, conf):
flags = super(GccBasicFlags, self).getOptimizedFlags(conf)
flags['CXXFLAGS'] += ['-pedantic', '-Wall', '-O2', '-g']
flags['CXXFLAGS'] += ['-Wall', '-O2', '-g']
return flags
class GccFlags(GccBasicFlags):
wscript
os.environ['PKG_CONFIG_PATH'] = ':'.join([
'/usr/local/lib/pkgconfig',
'/opt/local/lib/pkgconfig'])
conf.check_boost(lib='system iostreams')
boost_version = conf.env.BOOST_VERSION.split('_')
if int(boost_version[0]) < 1 or int(boost_version[1]) < 53:
Logs.error ("ndnSIM requires at least boost version 1.53")
Logs.error ("Please upgrade your distribution or install custom boost libraries (http://ndnsim.net/faq.html#boost-libraries)")
exit (1)
conf.check_cfg(package='libndn-cxx', args=['--cflags', '--libs'],
uselib_store='NDN_CXX', mandatory=True)
......
conf.define('NS3_ASSERT_ENABLE', 1)
def build (bld):
deps = 'NDN_CXX ' + ' '.join (['ns3_'+dep for dep in MANDATORY_NS3_MODULES + OTHER_NS3_MODULES]).upper ()
deps = 'BOOST BOOST_IOSTREAMS ' + ' '.join (['ns3_'+dep for dep in MANDATORY_NS3_MODULES + OTHER_NS3_MODULES]).upper ()
common = bld.objects (
target = "extensions",
(2-2/2)