Skip to content

Commit

Permalink
build: compiling the source code of ndnping and ndnpingserver (with t…
Browse files Browse the repository at this point in the history
…he exception of their compilation units that contain a main function)
  • Loading branch information
spirosmastorakis authored and cawka committed Sep 4, 2015
1 parent c5c08b9 commit 74269dc
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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']):
Expand All @@ -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']):
Expand All @@ -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):
Expand Down

0 comments on commit 74269dc

Please sign in to comment.