blob: 2620281c96d5061c0d50f3c210fb210631ae6c32 [file] [log] [blame]
# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
top = '..'
def build(bld):
# List all .cpp files (whole example should be in one .cpp)
for example in bld.path.ant_glob(['*.cpp']):
name = example.change_ext('').path_from(bld.path.get_bld())
bld(features=['cxx', 'cxxprogram'],
target=name,
source=[example] + bld.path.ant_glob(['%s/**/*.cpp' % name]),
use='NDN_CXX libndn-nac',
install_path=None
)
# List all directories files (example can has multiple .cpp in the directory)
for name in bld.path.ant_glob(['*'], dir=True, src=False):
name = subdir.path_from(bld.path)
bld(features=['cxx', 'cxxprogram'],
target="%s/%s" % (name, name),
source=bld.path.ant_glob(['%s/**/*.cpp' % name]),
use='NDN_CXX libndn-nac',
install_path=None,
includes='%s' % name,
)