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

pull/2/head
Lorenzo Cogotti 3 years ago
parent e60c9bd4f3
commit 0c745d7f12

@ -134,3 +134,25 @@ if get_option('build-bgpgrep')
install_man(bgpgrep_man)
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

@ -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-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-peerindex', type : 'boolean', description : 'Build peerindex MRT TABLE_DUMPV2 Peer Index Table inspection tool')

Loading…
Cancel
Save