Permalink
Browse files

build: compiling the source code of ndnping and ndnpingserver (with t…

…he exception of their compilation units that contain a main function)
  • Loading branch information...
spirosmastorakis authored and cawka committed Sep 3, 2015
1 parent c5c08b9 commit 74269dc4de6afe2b6e13a0bcc8c0faac350d8fa3
Showing with 16 additions and 4 deletions.
  1. +16 −4 wscript
20 wscript
@@ -68,11 +68,23 @@ def configure(conf):
def build (bld):
deps = ' '.join (['ns3_'+dep for dep in MANDATORY_NS3_MODULES + OTHER_NS3_MODULES]).upper ()
ndnTools = bld.objects (
target = "ndn-tools",
features = ["cxx"],
source = bld.path.ant_glob(['ndn-tools/core/**/*.cpp',
'ndn-tools/tools/ping/**/*.cpp'],
excl=['**/ndn-ping.cpp',
'**/ndn-ping-server.cpp']),
includes = "ndn-tools",
export_includes = "ndn-tools",
use = deps
)
common = bld.objects (
target = "extensions",
features = ["cxx"],
source = bld.path.ant_glob(['extensions/**/*.cc', 'extensions/**/*.cpp']),
use = deps,
use = deps + " ndn-tools"
)
for scenario in bld.path.ant_glob (['scenarios/*.cc']):
@@ -82,7 +94,8 @@ def build (bld):
features = ['cxx'],
source = [scenario],
use = deps + " extensions",
includes = "extensions"
includes = "extensions",
export_includes = "extensions"
)
for scenario in bld.path.ant_glob (['scenarios/*.cpp']):
@@ -91,8 +104,7 @@ def build (bld):
target = name,
features = ['cxx'],
source = [scenario],
use = deps + " extensions",
includes = "extensions"
use = deps + " extensions ndn-tools"
)
def shutdown (ctx):

0 comments on commit 74269dc

Please sign in to comment.