build: rename HAVE_TESTS to WITH_TESTS
And rename a few waf targets for clarity and consistency
Change-Id: I7efad48a4edcbc311dba7981791249a4e0cc5678
diff --git a/tools/wscript b/tools/wscript
index 93cabd7..4e89967 100644
--- a/tools/wscript
+++ b/tools/wscript
@@ -16,7 +16,7 @@
# Sub-directory tools:
# tools/foo/**/*.cpp are compiled and linked into build/bin/foo.
# tools/foo/main.cpp must exist and must contain the main() function.
- # All other objects are collected into 'tools-foo-objects' and can be unit-tested.
+ # All other objects are collected into 'foo-objects' and can be unit-tested.
for subdir in bld.path.ant_glob('*', dir=True, src=False):
name = subdir.path_from(bld.path)
subWscript = subdir.find_node('wscript')
@@ -33,7 +33,7 @@
srcFiles = subdir.ant_glob('**/*.cpp', excl=['main.cpp'])
srcObjects = ''
if srcFiles:
- srcObjects = f'tools-{name}-objects'
+ srcObjects = f'{name}-objects'
bld.objects(target=srcObjects,
source=srcFiles,
use='ndn-cxx')