build: Cleanup and update of build scripts
Change-Id: I7fb5b8696d3b068249ae16b117bd27646d990dc3
diff --git a/tools/ping/wscript b/tools/ping/wscript
index 3e6755d..f0c5f5e 100644
--- a/tools/ping/wscript
+++ b/tools/ping/wscript
@@ -3,27 +3,29 @@
def build(bld):
- bld(features='cxx',
- name='ping-client-objects',
+ bld.objects(
+ target='ping-client-objects',
source=bld.path.ant_glob('client/*.cpp', excl='client/ndn-ping.cpp'),
use='core-objects')
- bld(features='cxx cxxprogram',
+ bld.program(
target='../../bin/ndnping',
+ name='ndnping',
source='client/ndn-ping.cpp',
use='ping-client-objects')
- bld(features='cxx',
- name='ping-server-objects',
+ bld.objects(
+ target='ping-server-objects',
source=bld.path.ant_glob('server/*.cpp', excl='server/ndn-ping-server.cpp'),
use='core-objects')
- bld(features='cxx cxxprogram',
+ bld.program(
target='../../bin/ndnpingserver',
+ name='ndnpingserver',
source='server/ndn-ping-server.cpp',
use='ping-server-objects')
## (for unit tests)
- bld(name='ping-objects',
+ bld(target='ping-objects',
use='ping-client-objects ping-server-objects')