Browse Source

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

master
Lorenzo Cogotti 1 year ago
parent
commit
0c745d7f12
  1. 22
      meson.build
  2. 1
      meson_options.txt

22
meson.build

@ -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

1
meson_options.txt

@ -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