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 | |
Davide Pesavento | 550d8c9 | 2023-11-05 01:30:01 -0400 | [diff] [blame^] | 3 | top = '../..' |
Davide Pesavento | 25d4f1c | 2020-04-29 23:31:04 -0400 | [diff] [blame] | 4 | |
| 5 | def build(bld): |
Davide Pesavento | 550d8c9 | 2023-11-05 01:30:01 -0400 | [diff] [blame^] | 6 | bld.objects(target='tools-ndnsec-objects', |
Davide Pesavento | 25d4f1c | 2020-04-29 23:31:04 -0400 | [diff] [blame] | 7 | source=bld.path.ant_glob('*.cpp', excl=['main.cpp']), |
| 8 | features='pch', |
| 9 | headers='ndnsec-pch.hpp', |
Davide Pesavento | 5686c51 | 2023-09-07 22:08:46 -0400 | [diff] [blame] | 10 | use='BOOST_TOOLS ndn-cxx') |
Davide Pesavento | f3089c3 | 2021-05-25 21:28:21 -0400 | [diff] [blame] | 11 | |
Davide Pesavento | 550d8c9 | 2023-11-05 01:30:01 -0400 | [diff] [blame^] | 12 | bld.program(name='ndnsec', |
| 13 | target=f'{top}/bin/ndnsec', |
Davide Pesavento | 25d4f1c | 2020-04-29 23:31:04 -0400 | [diff] [blame] | 14 | source=['main.cpp'], |
Davide Pesavento | 550d8c9 | 2023-11-05 01:30:01 -0400 | [diff] [blame^] | 15 | use='tools-ndnsec-objects') |
Davide Pesavento | f3089c3 | 2021-05-25 21:28:21 -0400 | [diff] [blame] | 16 | |
Davide Pesavento | 97157b4 | 2021-05-27 21:00:43 -0400 | [diff] [blame] | 17 | # create convenience symlinks |
Davide Pesavento | f3089c3 | 2021-05-25 21:28:21 -0400 | [diff] [blame] | 18 | for cmd in ('list', 'get-default', 'set-default', 'delete', |
| 19 | 'key-gen', 'sign-req', 'cert-gen', 'cert-install', |
Davide Pesavento | a365164 | 2023-04-10 21:33:54 -0400 | [diff] [blame] | 20 | 'cert-dump', 'export', 'import', 'unlock-tpm'): |
Davide Pesavento | f3089c3 | 2021-05-25 21:28:21 -0400 | [diff] [blame] | 21 | bld.symlink_as('${BINDIR}/ndnsec-%s' % cmd, 'ndnsec') |