blob: 5fc7dbdd1a5bae969da22a511d72e8c9f7fefdbd [file] [log] [blame]
# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
top = '../..'
def build(bld):
bld.objects(target='ndnsec-objects',
source=bld.path.ant_glob('*.cpp', excl=['main.cpp']),
features='pch',
headers='ndnsec-pch.hpp',
use='BOOST_TOOLS ndn-cxx')
bld.program(name='ndnsec',
target=f'{top}/bin/ndnsec',
source=['main.cpp'],
use='ndnsec-objects')
# create convenience symlinks
for cmd in ('list', 'get-default', 'set-default', 'delete',
'key-gen', 'sign-req', 'cert-gen', 'cert-install',
'cert-dump', 'export', 'import', 'unlock-tpm'):
bld.symlink_as('${BINDIR}/ndnsec-%s' % cmd, 'ndnsec')