[meson.build,meson_options.txt] Add peerindex to meson

This commit is contained in:
Lorenzo Cogotti 2021-07-27 16:07:02 +02:00
parent e60c9bd4f3
commit 0c745d7f12
2 changed files with 23 additions and 0 deletions

View File

@ -134,3 +134,25 @@ if get_option('build-bgpgrep')
install_man(bgpgrep_man) install_man(bgpgrep_man)
endif endif
if get_option('build-peerindex')
peerindex = executable('peerindex',
sources : [
'tools/peerindex/peerindex.c'
],
include_directories : [ lonetix_incdir ],
dependencies : [ lonetix_dep ],
install : true
)
cdata = configuration_data({
'UTILITY': 'peerindex',
'VERSION': '"' + meson.project_version() + '"',
})
peerindex_man = configure_file(input : 'tools/peerindex/peerindex.1.in',
output : 'peerindex.1',
configuration : cdata,
install : false)
install_man(peerindex_man)
endif

View File

@ -3,3 +3,4 @@ option('build-doc', type : 'boolean', description : 'Build documentation using d
# TODO option('build-benchmarks', type : 'boolean', value : false, description : 'Build benchmarks') # TODO option('build-benchmarks', type : 'boolean', value : false, description : 'Build benchmarks')
# TODO option('build-tests', type : 'boolean', value : false, description : 'Build unit tests') # TODO option('build-tests', type : 'boolean', value : false, description : 'Build unit tests')
option('build-bgpgrep', type : 'boolean', description : 'Build bgpgrep MRT/BGP parsing and filting utility') option('build-bgpgrep', type : 'boolean', description : 'Build bgpgrep MRT/BGP parsing and filting utility')
option('build-peerindex', type : 'boolean', description : 'Build peerindex MRT TABLE_DUMPV2 Peer Index Table inspection tool')