Davide Pesavento | 25d4f1c | 2020-04-29 23:31:04 -0400 | [diff] [blame] | 1 | # -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | |
| 3 | top = '../../' |
| 4 | |
| 5 | def build(bld): |
| 6 | bld.objects(target='tool-ndnsec-objects', |
| 7 | source=bld.path.ant_glob('*.cpp', excl=['main.cpp']), |
| 8 | features='pch', |
| 9 | headers='ndnsec-pch.hpp', |
| 10 | use='ndn-cxx') |
Davide Pesavento | f3089c3 | 2021-05-25 21:28:21 -0400 | [diff] [blame^] | 11 | |
Davide Pesavento | 25d4f1c | 2020-04-29 23:31:04 -0400 | [diff] [blame] | 12 | bld.program(name='tool-ndnsec', |
| 13 | target=top + 'bin/ndnsec', |
| 14 | source=['main.cpp'], |
| 15 | use='tool-ndnsec-objects') |
Davide Pesavento | f3089c3 | 2021-05-25 21:28:21 -0400 | [diff] [blame^] | 16 | |
| 17 | for cmd in ('list', 'get-default', 'set-default', 'delete', |
| 18 | 'key-gen', 'sign-req', 'cert-gen', 'cert-install', |
| 19 | 'cert-dump', 'export', 'import', 'unlock-tpm'): |
| 20 | bld.symlink_as('${BINDIR}/ndnsec-%s' % cmd, 'ndnsec') |