blob: 5fc7dbdd1a5bae969da22a511d72e8c9f7fefdbd [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
Davide Pesavento550d8c92023-11-05 01:30:01 -04003top = '../..'
Davide Pesavento25d4f1c2020-04-29 23:31:04 -04004
5def build(bld):
Davide Pesavento31bca202024-02-25 23:10:26 -05006 bld.objects(target='ndnsec-objects',
Davide Pesavento25d4f1c2020-04-29 23:31:04 -04007 source=bld.path.ant_glob('*.cpp', excl=['main.cpp']),
8 features='pch',
9 headers='ndnsec-pch.hpp',
Davide Pesavento5686c512023-09-07 22:08:46 -040010 use='BOOST_TOOLS ndn-cxx')
Davide Pesaventof3089c32021-05-25 21:28:21 -040011
Davide Pesavento550d8c92023-11-05 01:30:01 -040012 bld.program(name='ndnsec',
13 target=f'{top}/bin/ndnsec',
Davide Pesavento25d4f1c2020-04-29 23:31:04 -040014 source=['main.cpp'],
Davide Pesavento31bca202024-02-25 23:10:26 -050015 use='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 Pesaventoa3651642023-04-10 21:33:54 -040020 'cert-dump', 'export', 'import', 'unlock-tpm'):
Davide Pesaventof3089c32021-05-25 21:28:21 -040021 bld.symlink_as('${BINDIR}/ndnsec-%s' % cmd, 'ndnsec')