From 0c745d7f1255fdfaa98b059242228128b7ae5a71 Mon Sep 17 00:00:00 2001 From: Lorenzo Cogotti Date: Tue, 27 Jul 2021 16:07:02 +0200 Subject: [PATCH] [meson.build,meson_options.txt] Add peerindex to meson --- meson.build | 22 ++++++++++++++++++++++ meson_options.txt | 1 + 2 files changed, 23 insertions(+) diff --git a/meson.build b/meson.build index 13ddf10..35171d6 100644 --- a/meson.build +++ b/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 diff --git a/meson_options.txt b/meson_options.txt index ba906f0..a2c550b 100644 --- a/meson_options.txt +++ b/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')