//Change wscript in application or where you are using cplex code . first install cplex on your system then call the library .
// check out these links.
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
def configure(conf):
conf.env.append_value("CXXFLAGS", [
"-Wno-error",
"-m64",
"-O0",
"-fPIC",
"-fno-strict-aliasing",
"-fexceptions",
"-DNDEBUG",
"-DIL_STD",
"-I/opt/ibm/ILOG/CPLEX_Studio1210/concert/include",
"-I/opt/ibm/ILOG/CPLEX_Studio1210/cplex/include"])
conf.env.append_value("LINKFLAGS", [
"-L/opt/ibm/ILOG/CPLEX_Studio1210/cplex/lib/x86-64_linux/static_pic",
"-L/opt/ibm/ILOG/CPLEX_Studio1210/concert/lib/x86-64_linux/static_pic",
"-lilocplex",
"-lconcert",
"-lcplex",
"-lm",
"-lpthread"])
conf.env['lconcert'] = conf.check(mandatory=True, lib='concert', uselib_store='CONCERT')
conf.env['lilocplex'] = conf.check(mandatory=True, lib='ilocplex', uselib_store='ILOCPLEX')
conf.env['lcplex'] = conf.check(mandatory=True, lib='cplex', uselib_store='CPLEX')
def build(bld):
module = bld.create_ns3_module('applications', ['internet', 'config-store','stats'])
module.source = [
'model/bulk-send-application.cc',
'model/onoff-application.cc',
'model/packet-sink.cc',
'model/udp-client.cc',
'model/udp-server.cc',
'model/udp-offload-server.cc',
'model/udp-offload-client.cc',
'model/maxrate.cc',
'model/seq-ts-header.cc',
'model/seq-ts-size-header.cc',
'model/size-header.cc',
'model/udp-trace-client.cc',
'model/udp-offload-trace-client.cc',
'model/packet-loss-counter.cc',
'model/udp-echo-client.cc',
'model/udp-echo-server.cc',
'model/application-packet-probe.cc',
'model/three-gpp-http-client.cc',
'model/three-gpp-http-server.cc',
'model/three-gpp-http-header.cc',
'model/three-gpp-http-variables.cc',
'model/myheader.cc',
'model/mytag.cc',
'model/responseheader.cc',
'helper/bulk-send-helper.cc',
'helper/on-off-helper.cc',
'helper/packet-sink-helper.cc',
'helper/udp-client-server-helper.cc',
'helper/udp-offload-client-server-helper.cc',
'helper/udp-echo-helper.cc',
'helper/three-gpp-http-helper.cc',
]
applications_test = bld.create_ns3_module_test_library('applications')
applications_test.source = [
'test/three-gpp-http-client-server-test.cc',
'test/udp-client-server-test.cc'
]
headers = bld(features='ns3header')
headers.module = 'applications'
headers.source = [
'model/bulk-send-application.h',
'model/onoff-application.h',
'model/packet-sink.h',
'model/udp-client.h',
'model/udp-server.h',
'model/udp-offload-client.h',
'model/udp-offload-server.h',
'model/seq-ts-header.h',
'model/seq-ts-size-header.h',
'model/size-header.h',
'model/udp-trace-client.h',
'model/udp-offload-trace-client.h',
'model/packet-loss-counter.h',
'model/udp-echo-client.h',
'model/udp-echo-server.h',
'model/application-packet-probe.h',
'model/three-gpp-http-client.h',
'model/three-gpp-http-server.h',
'model/three-gpp-http-header.h',
'model/three-gpp-http-variables.h',
'model/mytag.h',
'model/myheader.h',
'model/responseheader.h',
'helper/bulk-send-helper.h',
'helper/on-off-helper.h',
'helper/packet-sink-helper.h',
'helper/udp-client-server-helper.h',
'helper/udp-offload-client-server-helper.h',
'helper/udp-echo-helper.h',
'helper/three-gpp-http-helper.h'
]
module.use.append("CONCERT")
module.use.append("ILOCPLEX")
module.use.append("CPLEX")
if (bld.env['ENABLE_EXAMPLES']):
bld.recurse('examples')
bld.ns3_python_bindings()