blob: 55f557ff0fe582f8bb99afa1004f3cc67432a940 [file] [log] [blame]
Davide Pesavento25d4f1c2020-04-29 23:31:04 -04001# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
2
3top = '../../'
4
5def 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 Pesaventof3089c32021-05-25 21:28:21 -040011
Davide Pesavento25d4f1c2020-04-29 23:31:04 -040012 bld.program(name='tool-ndnsec',
13 target=top + 'bin/ndnsec',
14 source=['main.cpp'],
15 use='tool-ndnsec-objects')
Davide Pesaventof3089c32021-05-25 21:28:21 -040016
Davide Pesavento97157b42021-05-27 21:00:43 -040017 # create convenience symlinks
Davide Pesaventof3089c32021-05-25 21:28:21 -040018 for cmd in ('list', 'get-default', 'set-default', 'delete',
19 'key-gen', 'sign-req', 'cert-gen', 'cert-install',
Davide Pesavento97157b42021-05-27 21:00:43 -040020 'cert-dump', 'export', 'import', 'unlock-tpm',
21 # deprecated aliases
22 'certgen', 'dump-certificate', 'install-cert',
23 'keygen', 'ls-identity'):
Davide Pesaventof3089c32021-05-25 21:28:21 -040024 bld.symlink_as('${BINDIR}/ndnsec-%s' % cmd, 'ndnsec')